diff options
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 96afca0b3d3d..175cfb189d01 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 \ |