summaryrefslogtreecommitdiff
path: root/libraries/openjpeg/openjpeg.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2012-08-19 13:08:47 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2012-08-20 11:15:18 +0200
commitfa6b6880cd0b27773d7fecc62a1c8ab14050c90d (patch)
tree4ec53a5b5aa7341621d69df28d2dab7dae3d4a7d /libraries/openjpeg/openjpeg.SlackBuild
parente41a8ced82d30bb5958c24d46665a57c99db71d7 (diff)
downloadslackbuilds-fa6b6880cd0b27773d7fecc62a1c8ab14050c90d.tar.gz
libraries/openjpeg: Updated for version 1.5.0
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries/openjpeg/openjpeg.SlackBuild')
-rw-r--r--libraries/openjpeg/openjpeg.SlackBuild27
1 files changed, 9 insertions, 18 deletions
diff --git a/libraries/openjpeg/openjpeg.SlackBuild b/libraries/openjpeg/openjpeg.SlackBuild
index 8c2ffc460c..4f911a08d8 100644
--- a/libraries/openjpeg/openjpeg.SlackBuild
+++ b/libraries/openjpeg/openjpeg.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for openjpeg
-# Copyright 2008-2011 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2008-2012 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openjpeg
-VERSION=1.4
-BUILD=${BUILD:-3}
+VERSION=1.5.0
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,8 +40,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-SRC_VERSION=$(echo $VERSION | tr . _)
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -61,18 +59,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${PRGNAM}_v${SRC_VERSION}_sources_r697
-tar xvf $CWD/${PRGNAM}_v${SRC_VERSION}_sources_r697.tgz
-cd ${PRGNAM}_v${SRC_VERSION}_sources_r697
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Fix header symlink paths (like upstream svn revision 725)
-patch -p1 -i $CWD/openjpeg_fix_header_symlinks.patch
-
-# Fix unresolved symbols to libm (like upstream svn revision 729)
-patch -p0 -d libopenjpeg -i $CWD/openjpeg_link_libm.patch
-
mkdir -p build
cd build
cmake \
@@ -82,13 +74,12 @@ cd build
-DOPENJPEG_INSTALL_LIB_DIR="lib$LIBDIRSUFFIX" \
-DOPENJPEG_INSTALL_MAN_DIR="man/" \
-DOPENJPEG_INSTALL_DOC_DIR="doc/$PRGNAM-$VERSION/" \
- -DLIB_SUFFIX="$LIBDIRSUFFIX" \
- -DBUILD_JP3D:BOOL=ON \
-DBUILD_JPWL:BOOL=ON \
-DBUILD_MJ2:BOOL=ON \
- -DBUILD_INDEXER_JPIP:BOOL=ON \
+ -DBUILD_JPIP:BOOL=OFF \
..
- make VERBOSE=1
+
+ make
make install DESTDIR=$PKG
cd -