diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-19 07:14:41 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-19 20:29:58 -0500 |
commit | 502183b0d2316f2e93f7df18ce776ec9d44fc076 (patch) | |
tree | ac53fc6df5a481fb6d8a12645bc830022d4d45d8 /audio/kid3/kid3.SlackBuild | |
parent | dbf250c88eb958524070a239f34b761e4ffe89d0 (diff) |
audio/kid3: Updated for version 20120816_a1403e8.
Updated deps info, now autodetected
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/kid3/kid3.SlackBuild')
-rw-r--r-- | audio/kid3/kid3.SlackBuild | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/audio/kid3/kid3.SlackBuild b/audio/kid3/kid3.SlackBuild index 96afca0b3d3de..175cfb189d010 100644 --- a/audio/kid3/kid3.SlackBuild +++ b/audio/kid3/kid3.SlackBuild @@ -3,7 +3,7 @@ # Written by Michales Michaloudes korgie@gmail.com PRGNAM=kid3 -VERSION=${VERSION:-2.0.1} +VERSION=${VERSION:-20120816_a1403e8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -21,12 +21,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ $MP4TAG = "no" ]; then - MP4TAG="-DWITH_MP4V2=no" -else - MP4TAG="" -fi - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -41,13 +35,34 @@ else LIBDIRSUFFIX="" fi +# Autodetection of kde4 +if [ -f /usr/bin/kde4 ]; then + KDE4="ON" +else + KDE4="OFF" +fi + +# Autodetection of libmp4v2 +if [ -h /usr/lib$LIBDIRSUFFIX/libmp4v2.so ]; then + MP4TAG="ON" +else + MP4TAG="OFF" +fi + +# Autodetection of chromaprint +if pkg-config --exists libchromaprint ; then + CHROMA="ON" +else + CHROMA="OFF" +fi + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -66,7 +81,9 @@ cmake . \ -DMAN_INSTALL_DIR=/usr/man \ -DSYSCONF_INSTALL_DIR=/etc \ -DINCLUDE_INSTALL_DIR=/usr/include \ - $MP4TAG + -DWITH_CHROMAPRINT="$CHROMA" \ + -DWITH_MP4V2="$MP4TAG" \ + -DWITH_KDE="$KDE4" # breaks compilation #-DBUILD_SHARED_LIBS:BOOL=ON \ |