summaryrefslogtreecommitdiff
path: root/libraries/yajl
diff options
context:
space:
mode:
authorEugene Suter <easuter@gmail.com>2011-07-10 23:39:52 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 19:51:01 -0300
commit5a3d8719ef5fa933e33162138338618053606e2e (patch)
tree380fd09659fe8f60c5bf8caf92ca01a57cd26169 /libraries/yajl
parentcc1639d8ed97dea7e5cfd7b29b7df2edc8b7a1f4 (diff)
downloadslackbuilds-5a3d8719ef5fa933e33162138338618053606e2e.tar.gz
libraries/yajl: Updated for version 2.0.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/yajl')
-rw-r--r--libraries/yajl/yajl.SlackBuild30
-rw-r--r--libraries/yajl/yajl.info12
2 files changed, 26 insertions, 16 deletions
diff --git a/libraries/yajl/yajl.SlackBuild b/libraries/yajl/yajl.SlackBuild
index ba28f56da2..14301e2e20 100644
--- a/libraries/yajl/yajl.SlackBuild
+++ b/libraries/yajl/yajl.SlackBuild
@@ -5,7 +5,7 @@
# Written by Eugene Wissner <belka.ew@gmail.com>
PRGNAM=yajl
-VERSION=${VERSION:-1.0.9}
+VERSION=${VERSION:-2.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -24,22 +24,26 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+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 lloyd-$PRGNAM-f4b2b1a
+tar xvf $CWD/lloyd-$PRGNAM-$VERSION-0-gf4b2b1a.tar.gz
+cd lloyd-$PRGNAM-f4b2b1a
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -47,12 +51,18 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr
+mkdir build
+cd build
+ cmake .. \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX:STRING="$LIBDIRSUFFIX" \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-make -j1 DESTDIR=$PKG install
+ make DESTDIR=$PKG install
+cd -
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/libraries/yajl/yajl.info b/libraries/yajl/yajl.info
index 66111e22b3..0166918dab 100644
--- a/libraries/yajl/yajl.info
+++ b/libraries/yajl/yajl.info
@@ -1,10 +1,10 @@
PRGNAM="yajl"
-VERSION="1.0.9"
+VERSION="2.0.1"
HOMEPAGE="http://lloyd.github.com/yajl/"
-DOWNLOAD="http://github.com/downloads/lloyd/yajl/yajl-1.0.9.tar.gz"
-MD5SUM="8643ff2fef762029e51c86882a4d0fc6"
+DOWNLOAD="http://download.github.com/lloyd-yajl-2.0.1-0-gf4b2b1a.tar.gz"
+MD5SUM="df6a751e7797b9c2182efd91b5d64017"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-MAINTAINER="Eugene Wissner"
-EMAIL="belka.ew@gmail.com"
-APPROVED="Erik Hanson"
+MAINTAINER="Eugene Suter"
+EMAIL="easuter@gmail.com"
+APPROVED="Niels Horn"