aboutsummaryrefslogtreecommitdiff
path: root/libraries/cryptopp/cryptopp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/cryptopp/cryptopp.SlackBuild')
-rw-r--r--libraries/cryptopp/cryptopp.SlackBuild29
1 files changed, 27 insertions, 2 deletions
diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild
index 8c6384b77c186..88572443eff80 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 <slackbuilds@mareichelt.de> 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