summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorIskar Enev <iskar.enev@gmail.com>2010-05-13 00:29:05 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:29:05 +0200
commit76230a4354ebd6b370432be713ad5b69b85fb028 (patch)
tree0314c072e60011caeb67bc0a05e2031c005de41c /libraries
parent9de561d1999da02f43f1f7f0cb5c1655db878874 (diff)
downloadslackbuilds-76230a4354ebd6b370432be713ad5b69b85fb028.tar.gz
libraries/cryptopp: Updated for version 5.6.0
Diffstat (limited to 'libraries')
-rw-r--r--libraries/cryptopp/cryptopp.SlackBuild15
-rw-r--r--libraries/cryptopp/cryptopp.info2
-rw-r--r--libraries/cryptopp/slack-desc21
3 files changed, 23 insertions, 15 deletions
diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild
index 519bc84b4a..5f01e1ca9d 100644
--- a/libraries/cryptopp/cryptopp.SlackBuild
+++ b/libraries/cryptopp/cryptopp.SlackBuild
@@ -16,17 +16,19 @@ 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
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-
cd $TMP
rm -rf $PRGNAM-$VERSION
unzip -a -d $PRGNAM-$VERSION $CWD/${PRGNAM}$(echo $VERSION | tr -d .).zip
@@ -38,12 +40,17 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix Makefile to install correctly on x86_64.
+sed -i -e "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile
+
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make install PREFIX=$PKG/usr
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -54,4 +61,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}
diff --git a/libraries/cryptopp/cryptopp.info b/libraries/cryptopp/cryptopp.info
index 496ea853a9..6935271b60 100644
--- a/libraries/cryptopp/cryptopp.info
+++ b/libraries/cryptopp/cryptopp.info
@@ -3,6 +3,8 @@ VERSION="5.6.0"
HOMEPAGE="http://www.cryptopp.com/"
DOWNLOAD="http://www.cryptopp.com/cryptopp560.zip"
MD5SUM="36f35789ad60489d58003d3c849807e8"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="Iskar Enev"
EMAIL="iskar.enev@gmail.com"
APPROVED="dsomero"
diff --git a/libraries/cryptopp/slack-desc b/libraries/cryptopp/slack-desc
index a13500dffb..200655ab6f 100644
--- a/libraries/cryptopp/slack-desc
+++ b/libraries/cryptopp/slack-desc
@@ -5,16 +5,15 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
- |-----handy-ruler------------------------------------------------------|
+ |-----handy-ruler------------------------------------------------------|
cryptopp: cryptopp (library of cryptographic schemes)
cryptopp:
-cryptopp: Crypto++ Library is a free C++ class library of cryptographic
-cryptopp: schemes.
-cryptopp:
-cryptopp:
-cryptopp:
-cryptopp:
-cryptopp:
-cryptopp:
-cryptopp:
-
+cryptopp: Crypto++ Library is a free C++ class library of cryptographic schemes.
+cryptopp:
+cryptopp:
+cryptopp:
+cryptopp:
+cryptopp:
+cryptopp:
+cryptopp:
+cryptopp: