diff options
author | V'yacheslav Stetskevych <slava18@gmail.com> | 2010-07-12 12:36:43 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-07-15 20:12:36 -0500 |
commit | 088b293fccb0703a65efb91215832800562f0234 (patch) | |
tree | 41d30075ad9b8850d99855b9d16da0c9a2d171af /libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild | |
parent | 83d04180130ecde0bac67d6039e2a37ac8fbd602 (diff) | |
download | slackbuilds-088b293fccb0703a65efb91215832800562f0234.tar.gz |
libraries/libjpeg-turbo: Updated for version 1.0.0.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild')
-rw-r--r-- | libraries/libjpeg-turbo/libjpeg-turbo.SlackBuild | 21 |
1 files changed, 11 insertions, 10 deletions
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 |