From cece546129c2819a463f7d38dac21ed3bc1586cf Mon Sep 17 00:00:00 2001 From: markus reichelt Date: Tue, 31 May 2011 21:47:56 -0400 Subject: libraries/cryptopp: Updated for version 5.6.1. Signed-off-by: dsomero --- libraries/cryptopp/cryptopp.SlackBuild | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'libraries/cryptopp/cryptopp.SlackBuild') diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild index 8c6384b77c18..88572443eff8 100644 --- a/libraries/cryptopp/cryptopp.SlackBuild +++ b/libraries/cryptopp/cryptopp.SlackBuild @@ -2,9 +2,15 @@ # Slackware build script for cryptopp # Written by Iskar Enev (iskar.enev@gmail.com) +# +# Maintained by markus reichelt 0xCCEEF115 +# 2011 Apr 02 - adapt GNUmakefile to v5.6.1 +# create proper html documentation (optional via DOC=yes) +# in case you also want man pages installed along html doc, +# read comments below and adapt accordingly PRGNAM=cryptopp -VERSION=${VERSION:-5.6.0} +VERSION=${VERSION:-5.6.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,7 +59,10 @@ find . \ -exec chmod 644 {} \; # Fix Makefile to install correctly on x86_64. -sed -i -e "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile +sed -i "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile + +# Fix Makefile to remove copying of non-existent *.so (else make install will fail) +sed -i "/*.so/d" GNUmakefile make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make install PREFIX=$PKG/usr @@ -65,6 +74,22 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +if [ "$DOC" = "yes" ]; then + # Fix Doxyfile to create man pages + # sed -i "s/GENERATE_MAN = NO/GENERATE_MAN = YES/" Doxyfile + # sed -i "s/MAN_LINKS = NO/MAN_LINKS = YES/" Doxyfile + + doxygen Doxyfile + + cp -a doc/html $PKG/usr/doc/$PRGNAM-$VERSION + + # uncomment the following to also have man 3 pages prepared and installed + # cp -a doc/man $PKG/usr + # rm $PKG/usr/man/man3/_* + # find $PKG/usr/man -type f -exec gzip -9 {} \; + # for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +fi + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -- cgit v1.2.3