diff options
author | B. Watson <yalhcru@gmail.com> | 2016-08-03 08:16:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-03 08:16:34 +0700 |
commit | ae1ee4b3c6b6ebbef415d8c2a57d8c17e7bdac74 (patch) | |
tree | ca9acc92b71e2628934ca5aa0b0f16a3ec480c99 | |
parent | f015337d7dc1f2952520c54193a61790b9fb9ca3 (diff) | |
download | slackbuilds-ae1ee4b3c6b6ebbef415d8c2a57d8c17e7bdac74.tar.gz |
libraries/libpng-legacy12: Added (old PNG library).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/libpng-legacy12/README | 14 | ||||
-rw-r--r-- | libraries/libpng-legacy12/libpng-legacy12.SlackBuild | 69 | ||||
-rw-r--r-- | libraries/libpng-legacy12/libpng-legacy12.info | 10 | ||||
-rw-r--r-- | libraries/libpng-legacy12/slack-desc | 19 |
4 files changed, 112 insertions, 0 deletions
diff --git a/libraries/libpng-legacy12/README b/libraries/libpng-legacy12/README new file mode 100644 index 0000000000..aff297407c --- /dev/null +++ b/libraries/libpng-legacy12/README @@ -0,0 +1,14 @@ +libpng-legacy12 (old PNG library for compatibility with old software) + +PNG (Portable Network Graphics) is an extensible file format for the +lossless, portable, well-compressed storage of raster images. + +This build provides libpng12.so, occasionally needed for running older +binary-only software. It can safely be installed without conflicting +with Slackware's own libpng (which is version 1.6). + +Rather than compiling libpng-1.2, this build simply repackages the latest +official binary from Slackware 14.1's patches/. + +If you're looking for libpng-1.4, it's already provided in Slackware's +aaa_elflibs package (as libpng14.so). diff --git a/libraries/libpng-legacy12/libpng-legacy12.SlackBuild b/libraries/libpng-legacy12/libpng-legacy12.SlackBuild new file mode 100644 index 0000000000..b5f2fd7ab7 --- /dev/null +++ b/libraries/libpng-legacy12/libpng-legacy12.SlackBuild @@ -0,0 +1,69 @@ +#!/bin/sh + +# Slackware build script for libpng-legacy12 + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=libpng-legacy12 +VERSION=${VERSION:-1.2.56} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +UPSTREAM_VER=${UPSTREAM_VER:-1.4.19} +UPSTREAM_BUILD=${UPSTREAM_BUILD:-1} +UPSTREAM_TAG=${UPSTREAM_TAG:-_slack14.1} + +# N.B. do NOT change i486 to i586 here, since this is a repack +# of a Slack 14.1 package. +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +# We reset ARCH to i486 if it's i586 or i686, to match Slack 14.1's ARCH. +case "$ARCH" in + i?86) LIBDIRSUFFIX=""; ARCH=i486 ;; + x86_64) LIBDIRSUFFIX="64" ;; + *) echo "Warning: unrecognized ARCH '$ARCH'" ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +UPSTREAM=libpng-$UPSTREAM_VER-$ARCH-$UPSTREAM_BUILD$UPSTREAM_TAG + +set -e + +rm -rf $PKG +mkdir -p $TMP/$PRGNAM $PKG $OUTPUT +rm -rf $TMP/$PRGNAM +mkdir -p $TMP/$PRGNAM +cd $TMP/$PRGNAM +tar xvf $CWD/$UPSTREAM.txz + +# Include only the shared lib, plus SBo-specific docs. +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX +cp -a \ + ./usr/lib$LIBDIRSUFFIX/libpng12.so.*.*.* \ + ./usr/lib$LIBDIRSUFFIX/libpng12.la \ + $PKG/usr/lib$LIBDIRSUFFIX + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# make our doinst.sh from upstream's +grep libpng12.so ./install/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libpng-legacy12/libpng-legacy12.info b/libraries/libpng-legacy12/libpng-legacy12.info new file mode 100644 index 0000000000..cdfe9e18d1 --- /dev/null +++ b/libraries/libpng-legacy12/libpng-legacy12.info @@ -0,0 +1,10 @@ +PRGNAM="libpng-legacy12" +VERSION="1.2.56" +HOMEPAGE="http://ftp.slackware.com/pub/slackware/slackware-14.1/patches/source/libpng/" +DOWNLOAD="http://ftp.slackware.com/pub/slackware/slackware-14.1/patches/packages/libpng-1.4.19-i486-1_slack14.1.txz" +MD5SUM="d8c14f7ac31bf20da7b5595f3d0aabe5" +DOWNLOAD_x86_64="http://ftp.slackware.com/pub/slackware/slackware64-14.1/patches/packages/libpng-1.4.19-x86_64-1_slack14.1.txz" +MD5SUM_x86_64="f9ba7be319844c661e43bea5eb878b7a" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/libraries/libpng-legacy12/slack-desc b/libraries/libpng-legacy12/slack-desc new file mode 100644 index 0000000000..97cd19cef8 --- /dev/null +++ b/libraries/libpng-legacy12/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +libpng-legacy12: libpng-legacy12 (old PNG library for compatibility with old software) +libpng-legacy12: +libpng-legacy12: PNG (Portable Network Graphics) is an extensible file format for the +libpng-legacy12: lossless, portable, well-compressed storage of raster images. +libpng-legacy12: +libpng-legacy12: This build provides libpng12.so, occasionally needed for running +libpng-legacy12: older binary-only software. It can safely be installed without +libpng-legacy12: conflicting with Slackware's own libpng (which is version 1.6). +libpng-legacy12: +libpng-legacy12: +libpng-legacy12: |