Browse Source

l/vamp-plugin-sdk: Updated for Slackware-13.0.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
9972138659
  1. 20
      l/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild

20
l/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild

@ -34,15 +34,16 @@ ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://ovh.dl.sourceforge.net/sourceforge/vamp/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-vamp-plugin-sdk}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-vamp-plugin-sdk}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -90,8 +91,17 @@ CXXFLAGS=$CPUOPT \
make -j $JOBS
make install DESTDIR=$PKG
# Remove static libraries
find $PKG/usr/lib -name '*.a' -delete
# On Slackware64, move libraries to the right place
# (configure's --libdir is ignored by generated Makefiles)
if [ "x$ARCH" = xx86_64 ]; then
mv $PKG/usr/lib $PKG/usr/lib64
fi
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
@ -106,7 +116,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save