aboutsummaryrefslogtreecommitdiff
path: root/development/cppcms/cppcms.SlackBuild
diff options
context:
space:
mode:
authorCristiano Urban <cristiano.urban.slack@gmail.com>2017-07-18 16:32:10 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-22 06:56:02 +0700
commit761acf322d8e3afc7791bb5303588a4047dca666 (patch)
tree0e14771cc7ebee3b55ec467beabcc9ab1d995496 /development/cppcms/cppcms.SlackBuild
parent620777f1f9a6c5136e582aa3cd01107b9641c26e (diff)
development/cppcms: Updated for version 1.1.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/cppcms/cppcms.SlackBuild')
-rw-r--r--development/cppcms/cppcms.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/development/cppcms/cppcms.SlackBuild b/development/cppcms/cppcms.SlackBuild
index e7c11019a3021..5926ad6487eb7 100644
--- a/development/cppcms/cppcms.SlackBuild
+++ b/development/cppcms/cppcms.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cppcms
-VERSION=${VERSION:-1.0.5}
+VERSION=${VERSION:-1.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -76,13 +76,18 @@ else
FLAG="ON"
fi
+# LIB_SUFFIX isn't supported :(
+sed -i \
+ -e "s/set(LIBDIR lib /set(LIBDIR lib$LIBDIRSUFFIX /" \
+ -e "s/PREFIX \"lib\")/PREFIX \"lib$LIBDIRSUFFIX\")/" \
+ CMakeLists.txt
+
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DDISABLE_STATIC=$FLAG \
-DCMAKE_BUILD_TYPE=Release ..
make