summaryrefslogtreecommitdiff
path: root/development/cppcms/cppcms.SlackBuild
diff options
context:
space:
mode:
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 e7c11019a3..5926ad6487 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