From a9ecad33211b87e01aa1723c4bcdec27d69f3f78 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 12 Apr 2010 22:09:50 +0000 Subject: This one is final for 1.5.0 --- soundtouch/build/soundtouch.SlackBuild | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'soundtouch/build/soundtouch.SlackBuild') diff --git a/soundtouch/build/soundtouch.SlackBuild b/soundtouch/build/soundtouch.SlackBuild index 1790e70e..4d48afd1 100755 --- a/soundtouch/build/soundtouch.SlackBuild +++ b/soundtouch/build/soundtouch.SlackBuild @@ -148,9 +148,14 @@ cd ${PRGNAM} chown -R root:root . chmod -R u+w,go+r-w,a-s . -## set correct version for .so build -#LTVERSION=$(echo ${VERSION} | tr '.' ':') -#sed -i -e "s/-rpath \$(libdir)/-rpath \$(libdir) -version-number ${LTVERSION}/" source/SoundTouch/Makefile.in +# More breakage to follow: +ln -sf /usr/share/libtool/ltmain.sh config/ltmain.sh +rm -f config/m4/lt* +autoreconf -vif + +# Set correct version for .so build +LTVERSION=$(echo ${VERSION} | tr '.' ':') +sed -i -e "s/-rpath \$(libdir)/-rpath \$(libdir) -version-number ${LTVERSION}/" source/SoundTouch/Makefile.in # Patch Makefiles to force use of SLKCFLAGS if [ "$ARCH" == "i486" ]; then @@ -159,10 +164,6 @@ else sed -i -e 's/-O3 -msse/$(CFLAGS)/' source/SoundTouch/Makefile.* fi -# More breakage: -ln -sf /usr/share/libtool/ltmain.sh config/ltmain.sh -rm -f config/m4/lt* - echo Building ... export LDFLAGS="$SLKLDFLAGS" export CFLAGS="$SLKCFLAGS" @@ -173,6 +174,7 @@ export AUTOMAKE="automake --add-missing --foreign" --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-static \ --enable-shared \ --program-prefix= \ @@ -183,14 +185,11 @@ export AUTOMAKE="automake --add-missing --foreign" make ${NUMJOBS} 2>&1 | tee $OUTPUT/make-${PRGNAM}.log -# Install all the needed stuff to the package dir -# Use installwatch if available, to produce a logfile of the installation -# process that is more easily readable: -if $(which installwatch > /dev/null 2>&1); then - installwatch -o $OUTPUT/install-${PRGNAM}.log make DESTDIR=$PKG install -else - make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log -fi +# Install all the needed stuff to the package dir: +make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log + +# This does not hurt - there is API compatibility with the older release: +ln -s soundtouch-1.4.pc $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/soundtouch-1.0.pc # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3-65-gdbad