void-packages/srcpkgs/gc/template
2015-05-19 16:51:32 +02:00

33 lines
814 B
Bash

# Template file for 'gc'
pkgname=gc
version=7.4.2
revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool"
makedepends="libatomic_ops-devel"
case "$XBPS_TARGET_MACHINE" in
*-musl)
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP'
esac
short_desc="A garbage collector for C and C++"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.hboehm.info/gc/"
license="GPL-2"
distfiles="http://www.hboehm.info/gc/gc_source/gc-${version}.tar.gz"
checksum=63320ad7c45460e4a40e03f5aa4c6893783f21a16416c3282b994f933312afa2
pre_configure() {
autoreconf -fi
}
gc-devel_package() {
depends="gc>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}