termux-packages/packages/gmic/build.sh

32 lines
956 B
Bash
Raw Normal View History

2017-12-05 22:33:04 +01:00
TERMUX_PKG_HOMEPAGE=https://gmic.eu
TERMUX_PKG_DESCRIPTION="Full-featured framework for image processing"
TERMUX_PKG_LICENSE="CeCILL-2.1"
2019-05-08 01:23:51 +02:00
TERMUX_PKG_VERSION=2.6.1
TERMUX_PKG_REVISION=2
2019-05-08 01:23:51 +02:00
TERMUX_PKG_SHA256=48de7045a36eb718d55b0dfd68a797380b5390af99c9737a4dfba0fb678ed2b4
2017-12-05 22:33:04 +01:00
TERMUX_PKG_SRCURL=https://gmic.eu/files/source/gmic_$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_DEPENDS="graphicsmagick, libcurl, fftw, libpng, libjpeg-turbo, libtiff, zlib"
2017-08-10 02:50:42 +02:00
TERMUX_PKG_NO_DEVELSPLIT=yes
TERMUX_PKG_BUILD_IN_SRC=yes
2017-10-14 23:33:02 +02:00
termux_step_configure() {
2017-08-10 02:50:42 +02:00
return 0;
}
2017-10-14 23:33:02 +02:00
termux_step_make() {
2017-08-10 02:50:42 +02:00
cd src/
2019-05-07 00:02:58 +02:00
if [ $TERMUX_ARCH = "arm" ]; then
make cli LIBS=" -lunwind -L/data/data/com.termux/files/usr/lib -lfftw3 -lfftw3_threads -lcurl -lpng16 -lz -ljpeg -ltiff -lGraphicsMagick++ -lGraphicsMagick"
else
make cli
fi
2017-08-10 02:50:42 +02:00
}
2017-10-14 23:33:02 +02:00
2017-08-10 02:50:42 +02:00
termux_step_make_install() {
cp src/gmic $TERMUX_PREFIX/bin/gmic
cp src/*.h $TERMUX_PREFIX/include/
gunzip man/gmic.1.gz
cp man/gmic.1 $TERMUX_PREFIX/share/man/man1
}