aboutsummaryrefslogtreecommitdiff
path: root/libraries/libwebsocketpp/libwebsocketpp.SlackBuild
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2015-01-24 00:22:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-01-24 00:22:54 +0700
commit3d95b52e6fe5de688f54f74173645b87fd889696 (patch)
treebfde63af8dcc677532636affaed5fd96de7e2958 /libraries/libwebsocketpp/libwebsocketpp.SlackBuild
parentc638929834ccd79ea4225706ac54ec00d5feb044 (diff)
libraries/libwebsocketpp: Updated for version 0.5.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libwebsocketpp/libwebsocketpp.SlackBuild')
-rw-r--r--libraries/libwebsocketpp/libwebsocketpp.SlackBuild37
1 files changed, 24 insertions, 13 deletions
diff --git a/libraries/libwebsocketpp/libwebsocketpp.SlackBuild b/libraries/libwebsocketpp/libwebsocketpp.SlackBuild
index a6cddb99e2ba2..03c4b11982d77 100644
--- a/libraries/libwebsocketpp/libwebsocketpp.SlackBuild
+++ b/libraries/libwebsocketpp/libwebsocketpp.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-# SlackBuild script for "libwebsocketpp".
+# Slackware build script for "libwebsocketpp".
-# Copyright 2012 Marcel Saegebarth <marc@mos6581.de>
+# Copyright 2013-2015 Marcel Saegebarth <marc@mos6581.de>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -24,9 +24,10 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+SRCNAM=websocketpp
PRGNAM=libwebsocketpp
-VERSION=${VERSION:-20120917}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.5.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -61,25 +62,35 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -p0 < $CWD/libwebsocketpp.patch
+sed -i "s|lib/cmake/websocketpp|lib${LIBDIRSUFFIX}/cmake/websocketpp|" CMakeLists.txt
-make -j1 CXXFLAGS="$SLKCFLAGS"
-make -j1 install prefix=$PKG/usr libdir=lib$LIBDIRSUFFIX SHARED=1
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
+make
+make install DESTDIR=$PKG
+cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- dependencies.txt readme.txt license.txt todo.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ COPYING changelog.md readme.md roadmap.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install