1 TERMUX_PKG_HOMEPAGE
=http
://www.graphviz.org
/
2 TERMUX_PKG_DESCRIPTION
="Rich set of graph drawing tools"
3 TERMUX_PKG_MAINTAINER
="Dustin DeWeese @HackerFoo"
4 TERMUX_PKG_VERSION
=2.40.1
6 TERMUX_PKG_SRCURL
=http
://www.graphviz.org
/pub
/graphviz
/stable
/SOURCES
/graphviz-
$TERMUX_PKG_VERSION.
tar.gz
7 TERMUX_PKG_SHA256
=ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421
8 TERMUX_PKG_DEPENDS
="libandroid-glob,libcairo,pango,libexpat,libltdl,librsvg,libgd"
9 TERMUX_PKG_BUILD_IN_SRC
=yes
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="--with-poppler=no --enable-java=no --enable-perl=no
11 --enable-swig=no --enable-sharp=no --enable-guile=no --enable-lua=no --enable-ocaml=no
12 --enable-php=no --enable-python=no --enable-r=no --enable-ruby=no --enable-tcl=no
13 --with-pic --with-x=no --with-pangocairo=yes
14 --with-ltdl-include=$TERMUX_PREFIX/include --with-ltdl-lib=$TERMUX_PREFIX/lib"
15 TERMUX_PKG_RM_AFTER_INSTALL
="bin/*-config share/man/man1/*-config.1"
17 termux_step_pre_configure
() {
18 LDFLAGS
+=" -landroid-glob"
19 CPPFLAGS
+=" -D_typ_ssize_t=1"
22 termux_step_post_make_install
() {
23 # Some binaries (dot_builtins, gvpack) links against these:
25 for lib
in graphviz
/*.so.
*; do
26 ln -s
-f
$lib `basename $lib`
30 termux_step_create_debscripts
() {
31 echo "dot -c" > postinst
32 echo "exit 0" >> postinst