| 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 |
| 5 | TERMUX_PKG_SRCURL=http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-$TERMUX_PKG_VERSION.tar.gz |
| 6 | TERMUX_PKG_SHA256=ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421 |
| 7 | TERMUX_PKG_DEPENDS="libandroid-glob,libcairo,pango,libexpat,libltdl,librsvg,libgd" |
| 8 | TERMUX_PKG_BUILD_IN_SRC=yes |
| 9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-poppler=no --enable-java=no --enable-perl=no |
| 10 | --enable-swig=no --enable-sharp=no --enable-guile=no --enable-lua=no --enable-ocaml=no |
| 11 | --enable-php=no --enable-python=no --enable-r=no --enable-ruby=no --enable-tcl=no |
| 12 | --with-pic --with-x=no --with-pangocairo=yes |
| 13 | --with-ltdl-include=$TERMUX_PREFIX/include --with-ltdl-lib=$TERMUX_PREFIX/lib" |
| 14 | TERMUX_PKG_RM_AFTER_INSTALL="bin/*-config share/man/man1/*-config.1" |
| 15 | |
| 16 | termux_step_pre_configure() { |
| 17 | LDFLAGS+=" -landroid-glob" |
| 18 | CPPFLAGS+=" -D_typ_ssize_t=1" |
| 19 | } |
| 20 | |
| 21 | termux_step_post_make_install() { |
| 22 | # Some binaries (dot_builtins, gvpack) links against these: |
| 23 | cd $TERMUX_PREFIX/lib |
| 24 | for lib in graphviz/*.so.*; do |
| 25 | ln -s -f $lib `basename $lib` |
| 26 | done |
| 27 | } |
| 28 | |
| 29 | termux_step_create_debscripts () { |
| 30 | echo "dot -c" > postinst |
| 31 | echo "exit 0" >> postinst |
| 32 | chmod 0755 postinst |
| 33 | } |