diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-13 00:32:35 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:32:35 +0200 |
commit | abcf46cddbc7967f9dbc04e82370225f1e7887ba (patch) | |
tree | 1c9087b659e866a19521a74bca04e068807637b0 /libraries/openjpeg | |
parent | 7426eeed75f1f879650c74e071461da6c00269cb (diff) |
libraries/openjpeg: Updated for version 1.3
Diffstat (limited to 'libraries/openjpeg')
-rw-r--r-- | libraries/openjpeg/openjpeg.SlackBuild | 17 | ||||
-rw-r--r-- | libraries/openjpeg/openjpeg.info | 8 |
2 files changed, 18 insertions, 7 deletions
diff --git a/libraries/openjpeg/openjpeg.SlackBuild b/libraries/openjpeg/openjpeg.SlackBuild index 907d49e1d4440..b2e85a93dad1a 100644 --- a/libraries/openjpeg/openjpeg.SlackBuild +++ b/libraries/openjpeg/openjpeg.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for openjpeg -# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -37,10 +37,13 @@ SRC_VERSION=$(echo $VERSION | tr . _) 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" fi set -e @@ -54,6 +57,9 @@ cd OpenJPEG_v$SRC_VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +#fix correctly installing libraries in lib$LIBDIRSUFFIX +sed -i "s/lib)/lib\${LIB_SUFFIX})/" libopenjpeg/CMakeLists.txt + mkdir -p build cd build cmake \ @@ -62,6 +68,7 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_EXAMPLES:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ + -DLIB_SUFFIX="$LIBDIRSUFFIX" \ .. make make install DESTDIR=$PKG @@ -71,8 +78,10 @@ mkdir -p $PKG/usr/include mv $PKG/openjpeg $PKG/usr/include/ ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -83,4 +92,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/openjpeg/openjpeg.info b/libraries/openjpeg/openjpeg.info index 7ff19d02fc8f9..1788911b5c3a3 100644 --- a/libraries/openjpeg/openjpeg.info +++ b/libraries/openjpeg/openjpeg.info @@ -2,7 +2,9 @@ PRGNAM="openjpeg" VERSION="1.3" HOMEPAGE="http://www.openjpeg.org" DOWNLOAD="http://www.openjpeg.org/openjpeg_v1_3.tar.gz" +DOWNLOAD_x86_64="" MD5SUM="f9a3ccfa91ac34b589e9bf7577ce8ff9" -MAINTAINER="ppr:kut" -EMAIL="HMWiesinger@gmx.at" -APPROVED="Michiel" +MD5SUM_x86_64="" +MAINTAINER="pprkut" +EMAIL="pprkut@liwjatan.at" +APPROVED="Michiel,rworkman" |