aboutsummaryrefslogtreecommitdiff
path: root/development/JSONObject/JSONObject.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/JSONObject/JSONObject.SlackBuild')
-rw-r--r--development/JSONObject/JSONObject.SlackBuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/development/JSONObject/JSONObject.SlackBuild b/development/JSONObject/JSONObject.SlackBuild
index 31723deb58da8..17769bca2a148 100644
--- a/development/JSONObject/JSONObject.SlackBuild
+++ b/development/JSONObject/JSONObject.SlackBuild
@@ -23,8 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=JSONObject
-SRCNAM=json
-VERSION=${VERSION:-1.0.1}
+VERSION=${VERSION:-1.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,9 +59,13 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.gz
-cd $SRCNAM-$VERSION
+rm -rf $PRGNAM-$VERSION
+if [ -f $CWD/v$VERSION.tar.gz ]; then
+ tar xvf $CWD/v$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+fi
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -72,17 +75,15 @@ find . \
mkdir -p build
cd build
+ LDFLAGS="-lboost_system" \
cmake \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DINSTALL_MAN_DIR=man \
-DBUILD_SHARED_LIBS=ON \
- -DENABLE_PRECOMPILED_HEADERS=OFF \
- -DLIB_SUFFIX=$LIBDIRSUFFIX \
-DLIB_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX \
..
- make
+ make VERBOSE=1
make install DESTDIR=$PKG
cd ..