void-packages/srcpkgs/graphviz/template
Leah Neukirchen 9973b3d20a graphviz: update to 2.44.0.
Revert cmake, which only installed half of the files.

Adopted.
2020-04-28 21:48:21 +02:00

50 lines
1.2 KiB
Bash

# Template file for 'graphviz'
pkgname=graphviz
version=2.44.0
revision=1
wrksrc="graphviz-stable_release_${version}"
build_style=gnu-configure
make_build_args="HOSTCC=$BUILD_CC"
hostmakedepends="automake flex libltdl-devel libtool perl pkg-config"
makedepends="libpng-devel gd-devel gtk+-devel librsvg-devel libltdl-devel
libXaw-devel"
short_desc="Graph Visualization Software"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
homepage="http://www.graphviz.org"
distfiles="https://gitlab.com/graphviz/graphviz/-/archive/stable_release_${version}/graphviz-stable_release_${version}.tar.gz"
checksum=71e1f5bcd88a3be8eaf2db88ab2b0881cbaedb362eeb8683c8679f69ebf4b244
LDFLAGS="-lm"
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --with-gts"
makedepends+=" gts-devel"
fi
pre_configure() {
./autogen.sh NOCONFIG
}
post_install() {
vlicense epl-v10.txt LICENSE
rm -rf ${DESTDIR}/usr/share/graphviz/doc
}
graphviz-libs_package() {
short_desc+=" - runtime libraries"
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
}
}