system/rhash: Added static option.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Симон Болоканов 2015-03-04 22:08:35 +07:00 committed by Willy Sudiarto Raharjo
parent 8498815ade
commit 5889454814
2 changed files with 16 additions and 5 deletions

View file

@ -1,4 +1,6 @@
RHash (Recursive Hasher) is a console utility for computing and verifying hash sums of files.
Supports lots of algorithms.
Note: If you do not want to build with OpenSSL support pass OPENSSL=no to the script.
Notes:
If you want to build with NO OpenSSL support, pass OPENSSL=no to the script.
If you need static libraries, pass STATICLIB=yes to the script.

View file

@ -25,21 +25,30 @@
# Changelog:
# v1.3.3 - Re-done the sript and send it to SBo
# 27.02.2015 - no headers!? - thanks to Marcel Saegebarth for spotting this
# 27.2.2015 - no headers!? - thanks to Marcel Saegebarth for spotting this
# 3.3.2015 - added STATICLIB per Marcel Saegebarth request
# П.П. Честит ден на Освобождението, българи!
PRGNAM=rhash
VERSION=${VERSION:-1.3.3}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
# Shall we compile with OpenSSL support?
OPENSSL=${OPENSSL:-yes}
# Shall we install static libraries?
STATICLIB=${STATICLIB:-no}
if [ "$OPENSSL" = "yes" ]; then
OPTCFLAGS="-DOPENSSL_RUNTIME -rdynamic"
OPTLDFLAGS="-ldl"
fi
if [ "$STATICLIB" = "yes" ]; then
INSTALLSTATICLIB="install-lib-static"
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@ -97,7 +106,7 @@ make ADDCFLAGS="${SLKCFLAGS} -DUSE_GETTEXT ${OPTCFLAGS}" \
PREFIX=/usr \
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
DESTDIR=$PKG \
install-lib-shared
install-lib-shared $INSTALLSTATICLIB
# Install headers
make -C librhash \
@ -108,7 +117,7 @@ make -C librhash \
# Install locales
make PREFIX=/usr \
DESTDIR=$PKG \
compile-gmo install-gmo
install-gmo
# Don't clobber the default config
mv -v $PKG/etc/rhashrc $PKG/etc/rhashrc.new