55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
# Template file for 'graphviz'
|
|
pkgname=graphviz
|
|
version=2.40.1
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--disable-rpath --enable-ltdl --disable-ltdl-install
|
|
--disable-swig --disable-sharp --disable-guile --disable-io --disable-java
|
|
--disable-lua --disable-ocaml --disable-perl --disable-php --disable-python
|
|
--disable-r --disable-ruby --disable-tcl --without-included-ltdl --with-qt=no
|
|
--without-devil --without-glut --without-ghoscript --with-libgd"
|
|
hostmakedepends="automake libtool flex pkg-config libltdl-devel"
|
|
makedepends="libpng-devel gd-devel gtk+-devel librsvg-devel libltdl-devel
|
|
libXaw-devel"
|
|
short_desc="Graph Visualization Software"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="EPL-1.0"
|
|
homepage="http://www.graphviz.org"
|
|
# XXX: No version in the URL!
|
|
distfiles="https://graphviz.gitlab.io/pub/${pkgname}/stable/SOURCES/${pkgname}.tar.gz"
|
|
checksum=ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421
|
|
replaces="graphviz-libs<2.38.0_3"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
configure_args+=" --with-gts"
|
|
makedepends+=" gts-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
sed -i '/typedef.*ssize_t/d' lib/vmalloc/vmhdr.h
|
|
}
|
|
|
|
post_install() {
|
|
vlicense ${FILESDIR}/LICENSE
|
|
}
|
|
|
|
graphviz-libs_package() {
|
|
short_desc+=" - runtime libraries"
|
|
replaces="graphviz<2.28.0_6"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
graphviz-devel_package() {
|
|
depends="graphviz-libs>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|