summaryrefslogtreecommitdiff
path: root/repo/graphviz/graphviz.xibuild
blob: cc87d955a113528205a00c2d7a912a8ffce0e2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
}