2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://netpbm.sourceforge.net/
|
2017-12-05 22:33:04 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Toolkit for manipulation of graphic images of different formats"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="LGPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-09-29 17:09:46 +02:00
|
|
|
TERMUX_PKG_VERSION=1:10.73.37
|
2020-05-11 23:10:49 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/netpbm/super_stable/${TERMUX_PKG_VERSION:2}/netpbm-${TERMUX_PKG_VERSION:2}.tgz
|
2021-09-29 17:09:46 +02:00
|
|
|
TERMUX_PKG_SHA256=e8826b5bc9a283220a60e8a24c6f5a854f5825c15e4f5171e77b6884f191fafd
|
2019-04-14 14:51:46 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libpng, libxml2, libjpeg-turbo, libtiff, zlib"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="netpbm-dev"
|
|
|
|
TERMUX_PKG_REPLACES="netpbm-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_configure() {
|
2015-06-13 01:03:31 +02:00
|
|
|
# Put the android libpng-config script in the path (before the host one):
|
|
|
|
TERMUX_PKG_LIBPNG_CONFIG_DIR=$TERMUX_PKG_TMPDIR/libpng-config
|
|
|
|
mkdir -p $TERMUX_PKG_LIBPNG_CONFIG_DIR
|
|
|
|
cp $TERMUX_PREFIX/bin/libpng-config $TERMUX_PKG_LIBPNG_CONFIG_DIR/
|
|
|
|
export PATH=$TERMUX_PKG_LIBPNG_CONFIG_DIR:$PATH
|
|
|
|
|
|
|
|
# See $SRC/doc/INSTALL about netpbm build system. For automatic builds it recommends just copying config.mk.in
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
cp config.mk.in config.mk
|
|
|
|
echo "AR = $AR" >> config.mk
|
|
|
|
echo "RANLIB = $RANLIB" >> config.mk
|
|
|
|
echo "CC = $CC" >> config.mk
|
|
|
|
echo "CFLAGS = $CFLAGS" >> config.mk
|
2017-03-30 23:15:05 +02:00
|
|
|
echo "CFLAGS_SHLIB = -fPIC" >> config.mk
|
2015-06-13 01:03:31 +02:00
|
|
|
echo "LDFLAGS = $LDFLAGS" >> config.mk
|
|
|
|
echo "STATICLIB_TOO = n" >> config.mk
|
|
|
|
echo "INTTYPES_H = <inttypes.h>" >> config.mk
|
|
|
|
export STRIPPROG=$STRIP
|
|
|
|
|
|
|
|
echo "CC_FOR_BUILD = cc" >> config.mk
|
|
|
|
echo "LD_FOR_BUILD = cc" >> config.mk
|
|
|
|
echo "CFLAGS_FOR_BUILD = " >> config.mk
|
|
|
|
echo "LDFLAGS_FOR_BUILD = " >> config.mk
|
2017-10-06 07:48:04 +02:00
|
|
|
echo "JPEGLIB = ${TERMUX_PREFIX}/lib/libjpeg.so" >> config.mk
|
2017-12-01 23:13:24 +01:00
|
|
|
echo "TIFFLIB = ${TERMUX_PREFIX}/lib/libtiff.so" >> config.mk
|
|
|
|
echo "TIFFLIB_NEEDS_Z = N" >> config.mk
|
2017-02-24 22:36:19 +01:00
|
|
|
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/standardppmdfont.c lib/
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2015-06-13 01:03:31 +02:00
|
|
|
rm -Rf /tmp/netpbm
|
|
|
|
make -j 1 package pkgdir=/tmp/netpbm
|
|
|
|
./installnetpbm
|
|
|
|
}
|