diff options
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 a50aa1b69fb53..cc29a42e965c8 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 |