Package: netpbm11-shlibs Version: 11.3.4 Revision: 2 Description: Graphics manipulation programs and libraries License: OSI-Approved Maintainer: Hanspeter Niederstrasser BuildDepends: << fink (>= 0.30.0), fink-package-precedence, libiconv-dev, libjasper.1, libjbig, libjpeg8.2-turbo, libpng16, libtiff6, libxml2 (>= 2.9.1-1), pkgconfig, x11-dev << Conflicts: netpbm (<< 9.25-1) BuildConflicts: libjpeg9, libjpeg9-32bit Source: http://www.snaggledworks.com/fink/src/netpbm-%v.tar.bz2 Source-Checksum: SHA256(105318c09ff34f4f5aed95018fd5adfafd9667852dce77ecb73f55904f7cf714) PatchFile: %n.patch PatchFile-MD5: cd8509829e40c3b5f4d4c5583778289f PatchScript: << #!/bin/sh -ev sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1 cat config.mk.in Makefile.config.fink >config.mk ### put LDFLAGS for 3rd party libs after NETPBMLIB to avoid having ### -L%p/lib pull in an installed -lnetpbm perl -pi -e 's|\$\(LDFLAGS_TARGET\) \$\(shell \$\(LIBOPT\) \$\(NETPBMLIB\)\)|\$\(shell \$\(LIBOPT\) \$\(NETPBMLIB\)\) \$\(LDFLAGS_TARGET\) -Wl,-headerpad_max_install_names|g' common.mk # comment out known test failure: perl -pi -e 's|^ppmpat-random.test|#$&|g' test/Test-Order # known test failure perl -pi -e 's|^stdin-pam3.test|#$&|g' test/Test-Order # on macOS12+, /usr/bin/python was removed, so use python3 [ -x /usr/bin/python ] || pyversion=3 perl -pi -e "s|/usr/bin/python|/usr/bin/python$pyversion|g" buildtools/makeman perl -pi -e "s|\@python|\@python$pyversion|g" buildtools/manpage.mk << UseMaxBuildJobs: false CompileScript: << make -w fink-package-precedence --depfile-ext='\.d' --prohibit-bdep=netpbm,netpbm10,netpbm11 . << InfoTest: << TestDepends: gawk, ghostscript ### can't run test on just built files, so have to make the internal ### package in InstallScript, and then make the tests. So touch this ### file to say we need to 'make check' in install script. TestScript: touch %b/INSTALL_MAKE_CHECK << InstallScript: << #!/bin/sh -ev # pkgdir = where 'make package' sends everything # resultdir = test results location on 'make check' # tmpdir = temporary directory mkdir %b/.tmp make package pkgdir=%b/package resultdir=%b/test-out tmpdir=%b/.tmp SYMLINK='ln -s' # run tests now if needed if [ -f %b/INSTALL_MAKE_CHECK ]; then chmod u+x %b/test/*.test #install_name_tool -id %b/package/lib/libnetpbm.11.dylib %b/package/lib/libnetpbm.11.dylib # find programs that link to the library pushd %b/package/bin for f in `find . -type f -print0 | perl -0nE 'say if -f and -s _ and -B _'`; do install_name_tool -change %p/lib/libnetpbm.11.dylib %b/package/lib/libnetpbm.11.dylib $f done popd # testrandom also needs to be fixed #install_name_tool -change %p/lib/libnetpbm.11.dylib %b/package/lib/libnetpbm.11.dylib %b/test/testrandom # run the tests make check pkgdir=%b/package resultdir=%b/test-out tmpdir=%b/.tmp || exit 2 #install_name_tool -id %p/lib/libnetpbm.11.dylib %b/package/lib/libnetpbm.11.dylib pushd %b/package/bin # restore the programs to look for dylib in %p for f in `find . -type f -print0 | perl -0nE 'say if -f and -s _ and -B _'`; do install_name_tool -change %b/package/lib/libnetpbm.11.dylib %p/lib/libnetpbm.11.dylib $f done popd #install_name_tool -change %b/package/lib/libnetpbm.11.dylib %p/lib/libnetpbm.11.dylib %b/test/testrandom fi install -d -m 755 %i/share %i/share/netpbm printf "package\n%i\n\n\n\n%i/share/netpbm\n\n\n\n" | ./installnetpbm # create the manpages mkdir netpbmdoc pushd netpbmdoc make USERGUIDE=../../netpbm-userguide-%v/ -f ../buildtools/manpage.mk manpages make USERGUIDE=../../netpbm-userguide-%v/ MANDIR=%i/share/man -f ../buildtools/manpage.mk installman popd rm -rf %i/share/man/web #mv %i/bin/doc.url %i/share/netpbm perl -pi -e 's|%i|%p|g' %i/lib/pkgconfig/netpbm.pc %i/bin/netpbm-config << SplitOff: << Package: netpbm11 Depends: %N (= %v-%r) Conflicts: << netpbm, netpbm10, netpbm11 << # Replaces netpbm-bin because man3 and man5 dirs were # previously installed in the wrong SplitOff until 10.47.44-2 # netpbm-config was in netpbm-bin until 10.63.01-2. Replaces: << netpbm-bin (<< 10.63.01-2), netpbm, netpbm10, netpbm11 << BuildDependsOnly: True Files: << bin/netpbm-config include lib/libnetpbm.dylib lib/pkgconfig share/man/man3 << DocFiles: README doc/* << SplitOff2: << Package: netpbm-bin Depends: << %N (= %v-%r), libiconv, libjasper.1-shlibs, libjbig-shlibs, libjpeg8.2-turbo-shlibs, libpng16-shlibs, libtiff6-shlibs, libxml2-shlibs (>= 2.9.1-1), x11-shlibs << # Replaces netpbm10 because man3 and man5 dirs were previously installed # in the wrong SplitOff. Replaces: netpbm10 (<< 10.47.44-2) Files: << bin share/man/man1 share/man/man5 share/netpbm << DocFiles: README doc/* << Shlibs: %p/lib/libnetpbm.11.dylib 12.0.0 %n (>= 10.62.07-1) DocFiles: README doc/* DescPort: << Security patches thanks to Tomoaki Okayama: CVE-2005-2978: netpbm-10.26.12-pnmtopng-CAN-2005-2978.patch (from SUSE) CVE-2005-3662: netpbm-10.26.12-pnmtopng-overflow.patch (from SUSE) << Homepage: http://netpbm.sourceforge.net DescPackaging: << Tarball generated with these commands (%v and svn-revision taken from file version.mk): svn export -r 4606 http://svn.code.sf.net/p/netpbm/code/advanced/ netpbm-11.3.4 svn export -r 4606 http://svn.code.sf.net/p/netpbm/code/userguide/ netpbm-userguide-11.3.4 tar cfj netpbm-11.3.4.tar.bz2 --exclude='\.svn' netpbm-11.3.4 netpbm-userguide-11.3.4 pkg-config needed to find X11 for pamx executable nieder: Data files are put into %p/share/netpbm and belong to -bin SplitOff. This matches Debian's layout. <<