diff options
author | Eric Hameleers <alien@slackware.com> | 2007-06-24 10:56:35 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-06-24 10:56:35 +0000 |
commit | 713ce33f8b036bbadfb8771fc9273d9882660574 (patch) | |
tree | 143faab856e6a2f5f618a0762b327bb34d51ddd8 /soundtouch | |
parent | b0556e1ea460a6cf5fb04b6c1736e614331ad0b0 (diff) | |
download | asb-713ce33f8b036bbadfb8771fc9273d9882660574.tar.gz asb-713ce33f8b036bbadfb8771fc9273d9882660574.tar.xz |
Final version using sed to patch Makefile.in files instead of *.am
so that we do not have to run autoreconf. Also applied other stuff from
the FC5 spec file
Diffstat (limited to 'soundtouch')
-rwxr-xr-x | soundtouch/build/soundtouch.SlackBuild | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/soundtouch/build/soundtouch.SlackBuild b/soundtouch/build/soundtouch.SlackBuild index c80fdf09..85f234c4 100755 --- a/soundtouch/build/soundtouch.SlackBuild +++ b/soundtouch/build/soundtouch.SlackBuild @@ -149,20 +149,27 @@ cd ${PRGNAM}-${VERSION} chown -R root:root . chmod -R u+w,go+r-w,a-s . -# The .am files and .m4 file have CRLF at the line ends: -find . -name "*.m4" -exec sed -i -e 's/\r$//' {} \; -find . -name "Makefile.*" -exec sed -i -e 's/\r$//' {} \; +# 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 gcc flags: -patch -l -p1 -b -z .optflags < $SRCDIR/${PRGNAM}_optflags.patch \ - 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log +# Patch Makefiles to force use of SLKCFLAGS +if [ "$ARCH" == "i486" ]; then + sed -i -e 's/-O3 -msse/$(CFLAGS) -msse/' source/SoundTouch/Makefile.* +else + sed -i -e 's/-O3 -msse/$(CFLAGS)/' source/SoundTouch/Makefile.* +fi +sed -i 's/-O3/$(CFLAGS)/' source/example/*/Makefile.* + +# Clean up the documentation files: +chmod -x README.html +sed -i -e 's/\r//' README.html COPYING.TXT echo Building ... export LDFLAGS="$SLKLDFLAGS" export CFLAGS="$SLKCFLAGS" export CXXFLAGS="$SLKCFLAGS" export AUTOMAKE="automake --add-missing --foreign" -autoreconf -fisv && rm -f `find . -name "*~"` && rm -f ChangeLog ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ @@ -174,6 +181,10 @@ autoreconf -fisv && rm -f `find . -name "*~"` && rm -f ChangeLog --program-suffix="" \ --build=$ARCH-slackware-linux \ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log +# Don't use rpath - thanks FC ;-) +sed -i -e 's/^hardcode_libdir_flag_spec=.*/hardcode_libdir_flag_spec=""/g' libtool +sed -i -e 's/^runpath_var=LD_RUN_PATH/runpath_var=DIE_RPATH_DIE/g' libtool + make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log # |