1 TERMUX_PKG_HOMEPAGE
=http
://netpbm.sourceforge.net
/
2 TERMUX_PKG_DESCRIPTION
="Toolkit for manipulation of graphic images, including conversion of images between a variety of different formats"
3 # The netpbm releases are described at http://netpbm.sourceforge.net/release.html
4 # and are divided among (1) Development, (2) Advanced, (3) Stable and (4) Super Stable.
5 # Only Super Stable is distributed as a tar ball, but is outdated and does not compile with modern libpng.
6 # So use revisions from http://svn.code.sf.net/p/netpbm/code/advanced for packages.
7 TERMUX_PKG_VERSION
=3084
9 TERMUX_PKG_SHA256
=07ab08350a3afcf11e500893f3ad49c1cd7143f389c83af9cc20aa8450c5bfe4
10 TERMUX_PKG_SRCURL
=https
://dl.bintray.com
/termux
/upstream
/netpbm-advanced-r
${TERMUX_PKG_VERSION}.
tar.gz
11 TERMUX_PKG_DEPENDS
="libpng, libxml2, libjpeg-turbo, libtiff"
12 TERMUX_PKG_BUILD_IN_SRC
=yes
14 termux_step_configure
() {
15 # Put the android libpng-config script in the path (before the host one):
16 TERMUX_PKG_LIBPNG_CONFIG_DIR
=$TERMUX_PKG_TMPDIR/libpng-config
17 mkdir
-p
$TERMUX_PKG_LIBPNG_CONFIG_DIR
18 cp $TERMUX_PREFIX/bin
/libpng-config
$TERMUX_PKG_LIBPNG_CONFIG_DIR/
19 export PATH
=$TERMUX_PKG_LIBPNG_CONFIG_DIR:$PATH
21 # See $SRC/doc/INSTALL about netpbm build system. For automatic builds it recommends just copying config.mk.in
23 cp config.mk.
in config.mk
24 echo "AR = $AR" >> config.mk
25 echo "RANLIB = $RANLIB" >> config.mk
26 echo "CC = $CC" >> config.mk
27 echo "CFLAGS = $CFLAGS" >> config.mk
28 echo "CFLAGS_SHLIB = -fPIC" >> config.mk
29 echo "LDFLAGS = $LDFLAGS" >> config.mk
30 echo "STATICLIB_TOO = n" >> config.mk
31 echo "INTTYPES_H = <inttypes.h>" >> config.mk
32 export STRIPPROG
=$STRIP
34 echo "CC_FOR_BUILD = cc" >> config.mk
35 echo "LD_FOR_BUILD = cc" >> config.mk
36 echo "CFLAGS_FOR_BUILD = " >> config.mk
37 echo "LDFLAGS_FOR_BUILD = " >> config.mk
38 echo "JPEGLIB = ${TERMUX_PREFIX}/lib/libjpeg.so" >> config.mk
39 echo "TIFFLIB = ${TERMUX_PREFIX}/lib/libtiff.so" >> config.mk
40 echo "TIFFLIB_NEEDS_Z = N" >> config.mk
42 cp $TERMUX_PKG_BUILDER_DIR/standardppmdfont.c lib
/
45 termux_step_make_install
() {
47 make -j
1 package pkgdir
=/tmp
/netpbm