2017-12-05 23:03:50 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.graphviz.org/
|
2016-10-29 23:58:19 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Rich set of graph drawing tools"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="EPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-07-21 21:25:51 +02:00
|
|
|
TERMUX_PKG_VERSION=2.44.1
|
2021-10-13 15:14:43 +02:00
|
|
|
TERMUX_PKG_REVISION=3
|
2020-03-28 17:49:29 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www2.graphviz.org/Packages/stable/portable_source/graphviz-$TERMUX_PKG_VERSION.tar.gz
|
2020-07-21 21:25:51 +02:00
|
|
|
TERMUX_PKG_SHA256=8e1b34763254935243ccdb83c6ce108f531876d7a5dfd443f255e6418b8ea313
|
2019-06-19 20:40:23 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-glob, libc++, libcairo, pango, libexpat, libltdl, librsvg, libgd, zlib"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="graphviz-dev"
|
|
|
|
TERMUX_PKG_REPLACES="graphviz-dev"
|
2017-09-20 22:19:47 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="libtool"
|
2017-08-11 14:32:26 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--enable-guile=no
|
|
|
|
--enable-java=no
|
|
|
|
--enable-lua=no
|
|
|
|
--enable-ocaml=no
|
|
|
|
--enable-perl=no
|
|
|
|
--enable-php=no
|
|
|
|
--enable-python=no
|
|
|
|
--enable-r=no
|
|
|
|
--enable-ruby=no
|
|
|
|
--enable-sharp=no
|
|
|
|
--enable-swig=no
|
|
|
|
--enable-tcl=no
|
|
|
|
--with-ltdl-include=$TERMUX_PREFIX/include
|
|
|
|
--with-ltdl-lib=$TERMUX_PREFIX/lib
|
|
|
|
--with-pangocairo=yes
|
|
|
|
--with-pic
|
|
|
|
--with-poppler=no
|
|
|
|
--with-x=no
|
|
|
|
"
|
2016-10-29 22:33:37 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/*-config share/man/man1/*-config.1"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2020-03-28 17:49:29 +01:00
|
|
|
./autogen.sh NOCONFIG
|
|
|
|
export HOSTCC="gcc"
|
2016-10-29 23:27:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
# Some binaries (dot_builtins, gvpack) links against these:
|
|
|
|
cd $TERMUX_PREFIX/lib
|
2020-03-28 17:49:29 +01:00
|
|
|
for lib in graphviz/*.so*; do
|
2019-02-12 09:41:30 +01:00
|
|
|
ln -s -f $lib $(basename $lib)
|
2016-10-29 23:27:16 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_create_debscripts() {
|
2017-08-15 07:09:08 +02:00
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
|
|
|
|
echo "dot -c" >> postinst
|
2016-10-29 23:27:16 +02:00
|
|
|
echo "exit 0" >> postinst
|
|
|
|
chmod 0755 postinst
|
2016-10-29 22:33:37 +02:00
|
|
|
}
|