diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-13 00:31:17 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:31:17 +0200 |
commit | a9b4456c30f5dff844f13fc6553d73cc64bb1c0d (patch) | |
tree | e005a0121131eb68cc2458bbcd0d0d6ef6723291 /libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild | |
parent | 512377c6253906f863e1f71dc072103dcd326eb5 (diff) | |
download | slackbuilds-a9b4456c30f5dff844f13fc6553d73cc64bb1c0d.tar.gz |
libraries/libmusicbrainz3: Updated for version 3.0.2
Diffstat (limited to 'libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild')
-rw-r--r-- | libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild b/libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild index ae29c396b8..26e53edae4 100644 --- a/libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild +++ b/libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild @@ -5,12 +5,13 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=libmusicbrainz3 -SRCNAM=libmusicbrainz VERSION=${VERSION:-3.0.2} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCNAM=libmusicbrainz + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -18,10 +19,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -44,6 +48,7 @@ patch -p1 < $CWD/patches/pkgconfig-private.patch mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release .. @@ -66,4 +71,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |