160547fc2f
Required e.g. for building asymptote. Closes #390. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'gc'
|
|
pkgname=gc
|
|
version=7.6.4
|
|
revision=2
|
|
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 -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR'
|
|
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=b94c1f2535f98354811ee644dccab6e84a0cf73e477ca03fb5a3758fb1fecd1c
|
|
|
|
post_extract() {
|
|
sed -i '1i#include <sys/select.h>' pthread_stop_world.c
|
|
}
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
mkdir -p ${DESTDIR}/usr/include/gc/
|
|
mv ${wrksrc}/include/* ${DESTDIR}/usr/include/gc/
|
|
mv ${DESTDIR}/usr/include/gc/extra/* ${DESTDIR}/usr/include/
|
|
rmdir ${DESTDIR}/usr/include/gc/extra
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|