aboutsummaryrefslogtreecommitdiff
path: root/system/encfs/encfs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/encfs/encfs.SlackBuild')
-rw-r--r--system/encfs/encfs.SlackBuild38
1 files changed, 21 insertions, 17 deletions
diff --git a/system/encfs/encfs.SlackBuild b/system/encfs/encfs.SlackBuild
index 01958f3b0f28e..aaf0e3538f7fd 100644
--- a/system/encfs/encfs.SlackBuild
+++ b/system/encfs/encfs.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for encfs
-# Copyright 2007-2016 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2007-2017 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=encfs
-VERSION=${VERSION:-1.8.1}
+VERSION=${VERSION:-1.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,28 +69,32 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-autoreconf -vif
+# Fix building against openssl 1.1
+patch -p1 -i $CWD/encfs-openssl-1.1.patch
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --with-boost-libdir=/usr/lib$LIBDIRSUFFIX \
- --disable-static \
- --build=$ARCH-slackware-linux
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=lib$LIBDIRSUFFIX \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DUSE_INTERNAL_TINYXML=OFF \
+ -DINSTALL_LIBENCFS=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ ..
+ make
+ make install/strip DESTDIR=$PKG
+cd -
-make
-make install-strip DESTDIR=$PKG
+mv $PKG/usr/share/man $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING* INSTALL.md PERFORMANCE.md README.md \
- README-NLS TRANSLATORS \
+ README-NLS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild