summaryrefslogtreecommitdiff
path: root/repo/util/graphviz/graphviz.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/util/graphviz/graphviz.xibuild
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/util/graphviz/graphviz.xibuild')
-rw-r--r--repo/util/graphviz/graphviz.xibuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/repo/util/graphviz/graphviz.xibuild b/repo/util/graphviz/graphviz.xibuild
new file mode 100644
index 0000000..cc87d95
--- /dev/null
+++ b/repo/util/graphviz/graphviz.xibuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+MAKEDEPS="make flex swig m4 libtool libxaw bison lua tcl autoconf automake bash"
+DEPS="cairo expat glib libx11 musl pango zlib"
+
+PKG_VER=2.50.0
+SOURCE=https://gitlab.com/graphviz/graphviz/-/archive/$PKG_VER/graphviz-$PKG_VER.tar.gz
+DESC="Graph Visualization Tools"
+
+
+prepare () {
+ ./autogen.sh NOCONFIG
+}
+
+build () {
+ CONFIG_SHELL=/bin/bash \
+ LIBPOSTFIX=/ \
+ LUA=lua \
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-silent-rules \
+ --disable-static \
+ --disable-dependency-tracking \
+ --enable-ltdl \
+ --enable-sharp=no \
+ --enable-go=no \
+ --enable-guile=no \
+ --enable-java=no \
+ --enable-lua=yes \
+ --enable-ocaml=no \
+ --enable-perl=no \
+ --enable-php=no \
+ --enable-python=yes \
+ --enable-r=no \
+ --enable-ruby=no \
+ --enable-tcl=no \
+ --with-x \
+ --with-rsvg=yes \
+ --with-pangocairo=yes \
+ --with-gdk-pixbuf=yes \
+ --with-libgd=no \
+ --with-ipsepcola=yes
+
+ sed -i -e '/HAVE_SINCOS/d' config.h
+
+ make
+
+}
+
+package () {
+ make -j1 DESTDIR="$PKG_DEST" \
+ pkgconfigdir=/usr/lib/pkgconfig \
+ install
+
+ mkdir -p "$PKG_DEST"/usr/share/doc
+ mv "$PKG_DEST"/usr/share/graphviz/doc \
+ "$PKG_DEST"/usr/share/doc/graphviz
+
+}
+
+postinstall () {
+ dot -c
+}