libraries/cryptopp: Updated for version 5.6.0

This commit is contained in:
Iskar Enev 2010-05-13 00:29:05 +02:00 committed by David Somero
parent 9de561d199
commit 76230a4354
3 changed files with 23 additions and 15 deletions

View file

@ -16,17 +16,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
unzip -a -d $PRGNAM-$VERSION $CWD/${PRGNAM}$(echo $VERSION | tr -d .).zip 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 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -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 CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make install PREFIX=$PKG/usr make install PREFIX=$PKG/usr
( cd $PKG ( 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 "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@ -54,4 +61,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG 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}

View file

@ -3,6 +3,8 @@ VERSION="5.6.0"
HOMEPAGE="http://www.cryptopp.com/" HOMEPAGE="http://www.cryptopp.com/"
DOWNLOAD="http://www.cryptopp.com/cryptopp560.zip" DOWNLOAD="http://www.cryptopp.com/cryptopp560.zip"
MD5SUM="36f35789ad60489d58003d3c849807e8" MD5SUM="36f35789ad60489d58003d3c849807e8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Iskar Enev" MAINTAINER="Iskar Enev"
EMAIL="iskar.enev@gmail.com" EMAIL="iskar.enev@gmail.com"
APPROVED="dsomero" APPROVED="dsomero"

View file

@ -5,16 +5,15 @@
# make exactly 11 lines for the formatting to be correct. It's also # make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'. # customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
cryptopp: cryptopp (library of cryptographic schemes) cryptopp: cryptopp (library of cryptographic schemes)
cryptopp: cryptopp:
cryptopp: Crypto++ Library is a free C++ class library of cryptographic cryptopp: Crypto++ Library is a free C++ class library of cryptographic schemes.
cryptopp: schemes. cryptopp:
cryptopp: cryptopp:
cryptopp: cryptopp:
cryptopp: cryptopp:
cryptopp: cryptopp:
cryptopp: cryptopp:
cryptopp: cryptopp:
cryptopp: cryptopp: