Browse Source

l/cryptopp: Compiled release library (NDEBUG).

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
2a64f5610e
  1. 20
      l/cryptopp/cryptopp.SlackBuild

20
l/cryptopp/cryptopp.SlackBuild

@ -32,7 +32,7 @@ WGET=${WGET:-http://downloads.sourceforge.net/cryptopp/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-cryptopp}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -55,19 +55,6 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
@ -80,7 +67,10 @@ mkdir $TMP/$NAMESRC
cd $TMP/$NAMESRC
echo "Building $ARCHIVE..."
unzip -a $CWD/$ARCHIVE
make -j $JOBS CFLAGS="$CPUOPT" CXXFLAGS="$CPUOPT"
if [ "x$ARCH" = xx86_64 ]; then
sed -i 's/^# CXXFLAGS += -fPIC/CXXFLAGS += -fPIC/' GNUmakefile
fi
make -j $JOBS
make install PREFIX=/$PKG/usr
# Strip binaries

Loading…
Cancel
Save