mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/openjpeg: Updated for version 1.3
This commit is contained in:
parent
7426eeed75
commit
abcf46cddb
2 changed files with 18 additions and 7 deletions
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue