# libpng14/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. This package installs an old version of "libpng" (specifically, re- lease 1.4.12). By default, the old version isn't used. It's provided for the benefit of packages that may require it. Those packages will need to specify "setpaths = libpng14" at the "cfg"-file level. #--------------------------------------------------------------------- 2. The upstream version of "libpng" 1.4.X omits some legacy functions and this breaks various programs. This distro's version of "libpng" 1.4.X restores the following legacy functions: png_check_sig png_read_data png_set_dither png_set_gray_1_2_4_to_8 #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.20 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.00 hours (or 000.23 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.28 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.01 hours (or 000.32 minutes) - HP EliteBook 8560w 32GB RAM 00.02 hours (or 001.45 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] build = default dontfind = libpng, libpng12 license = See "license.txt" under installed tree makejail = yes nosyslinks = yes setpaths = libpng14 tmpsize = 5M #--------------------------------------------------------------------- [depends] actools gawk grep sed zlib #--------------------------------------------------------------------- [configure] MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --disable-dependency-tracking \ --enable-shared=yes \ --enable-static=no \ --mandir=$MANBASE \ --with-libpng-compat #--------------------------------------------------------------------- [postbuild] BINDIR=$PKGDIR_PROD/bin DOCDIR=$PKGDIR_PROD/doc LIBDIR=$PKGDIR_PROD/lib XSTDLIB=$PRODTREE/libpng/lib mkdir -p $DOCDIR $LIBDIR cp -p LICENSE $DOCDIR/license.txt cd $BINDIR ln -s libpng{,12}-config cd $LIBDIR ln -nsf libpng.so{,.3} ln -nsf libpng{14,12}.so ln -nsf $LIBDIR/libpng14.so.14.12.0 $XSTDLIB/ cd $XSTDLIB ln -nsf libpng14.so.14.12{.0,} ln -nsf libpng14.so.14{.12,} #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/libpng url_home = http://www.libpng.org/pub/png/libpng.html url_lfs = http://www.linuxfromscratch.org/blfs/view/stable/\ general/libpng.html url_tarball = http://downloads.sourceforge.net/\ libpng/libpng-1.4.12.tar.bz2