put shebang in scripts
[termux-packages] / packages / graphviz / build.sh
CommitLineData
8f905a70 1TERMUX_PKG_HOMEPAGE=http://www.graphviz.org/
18911013 2TERMUX_PKG_DESCRIPTION="Rich set of graph drawing tools"
6dac3a7b
FF
3TERMUX_PKG_MAINTAINER="Dustin DeWeese @HackerFoo"
4TERMUX_PKG_VERSION=2.40.1
d946e67c 5TERMUX_PKG_REVISION=2
8f905a70 6TERMUX_PKG_SRCURL=http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-$TERMUX_PKG_VERSION.tar.gz
6dac3a7b 7TERMUX_PKG_SHA256=ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421
2249861c
FF
8TERMUX_PKG_DEPENDS="libandroid-glob,libcairo,pango,libexpat,libltdl,librsvg,libgd"
9TERMUX_PKG_BUILD_IN_SRC=yes
a56e45b1
FF
10TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
11--enable-guile=no
12--enable-java=no
13--enable-lua=no
14--enable-ocaml=no
15--enable-perl=no
16--enable-php=no
17--enable-python=no
18--enable-r=no
19--enable-ruby=no
20--enable-sharp=no
21--enable-swig=no
22--enable-tcl=no
23--with-ltdl-include=$TERMUX_PREFIX/include
24--with-ltdl-lib=$TERMUX_PREFIX/lib
25--with-pangocairo=yes
26--with-pic
27--with-poppler=no
28--with-x=no
29"
8f905a70
DD
30TERMUX_PKG_RM_AFTER_INSTALL="bin/*-config share/man/man1/*-config.1"
31
32termux_step_pre_configure() {
2249861c 33 LDFLAGS+=" -landroid-glob"
6dac3a7b 34 CPPFLAGS+=" -D_typ_ssize_t=1"
2249861c
FF
35}
36
37termux_step_post_make_install() {
38 # Some binaries (dot_builtins, gvpack) links against these:
39 cd $TERMUX_PREFIX/lib
40 for lib in graphviz/*.so.*; do
41 ln -s -f $lib `basename $lib`
42 done
43}
44
45termux_step_create_debscripts () {
aa605e89 46 echo "#!$TERMUX_PREFIX/bin/sh" > postinst
47 echo "dot -c" >> postinst
2249861c
FF
48 echo "exit 0" >> postinst
49 chmod 0755 postinst
8f905a70 50}