From 088b293fccb0703a65efb91215832800562f0234 Mon Sep 17 00:00:00 2001 From: V'yacheslav Stetskevych Date: Mon, 12 Jul 2010 12:36:43 -0500 Subject: libraries/libjpeg-turbo: Updated for version 1.0.0. Signed-off-by: Erik Hanson --- libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild') diff --git a/libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild b/libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild index a50aa1b69f..cc29a42e96 100644 --- a/libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild +++ b/libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild @@ -23,10 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libjpeg-turbo -VERSION=${VERSION:-0.0.93} +VERSION=${VERSION:-1.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# The default is to install the package to /opt/$PRGNAM, but you can override +# it here. Set PREFIX to /usr to overwrite the conventional libjpeg. +PREFIX=${PREFIX:-/opt/$PRGNAM} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -69,23 +73,20 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# In order to install libjpeg-turbo globally, run ./configure like this -# (To revert back, simply reinstall slackware's libjpeg package): -# ./configure \ -# --prefix=/usr \ -# --libdir=/usr/lib${LIBDIRSUFFIX} -# Otherwise, use LD_LIBRARY_PATH to override it for individual applications. - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure +./configure \ + --prefix=$PREFIX \ + --libdir=$PREFIX/lib${LIBDIRSUFFIX} make make install-strip DESTDIR=$PKG +find $PKG$PREFIX/man -type f -exec gzip -9 {} \; + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - BUILDING.txt ChangeLog.txt LGPL.txt LICENSE.txt README* \ + *.txt README* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3