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="
23 --with-ltdl-include=$TERMUX_PREFIX/include
24 --with-ltdl-lib=$TERMUX_PREFIX/lib
30 TERMUX_PKG_RM_AFTER_INSTALL="bin/*-config share/man/man1/*-config.1"
32 termux_step_pre_configure() {
33 LDFLAGS+=" -landroid-glob"
34 CPPFLAGS+=" -D_typ_ssize_t=1"
37 termux_step_post_make_install() {
38 # Some binaries (dot_builtins, gvpack) links against these:
40 for lib in graphviz/*.so.*; do
41 ln -s -f $lib `basename $lib`
45 termux_step_create_debscripts () {
46 echo "#!$TERMUX_PREFIX/bin/sh" > postinst
47 echo "dot -c" >> postinst
48 echo "exit 0" >> postinst