2011-06-27 01:44:38 +02:00
|
|
|
# Template file for 'gc'
|
|
|
|
pkgname=gc
|
2014-06-16 08:58:20 +02:00
|
|
|
version=7.4.2
|
2013-11-19 11:01:28 +01:00
|
|
|
revision=1
|
2012-07-02 11:51:25 +02:00
|
|
|
build_style=gnu-configure
|
2014-06-16 08:58:20 +02:00
|
|
|
hostmakedepends="automake pkg-config libtool"
|
2014-01-30 11:31:47 +01:00
|
|
|
makedepends="libatomic_ops-devel"
|
2015-05-19 16:38:52 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl)
|
|
|
|
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP'
|
|
|
|
esac
|
2011-06-27 01:44:38 +02:00
|
|
|
short_desc="A garbage collector for C and C++"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-06-16 08:58:20 +02:00
|
|
|
homepage="http://www.hboehm.info/gc/"
|
2011-06-27 01:44:38 +02:00
|
|
|
license="GPL-2"
|
2014-06-16 08:58:20 +02:00
|
|
|
distfiles="http://www.hboehm.info/gc/gc_source/gc-${version}.tar.gz"
|
|
|
|
checksum=63320ad7c45460e4a40e03f5aa4c6893783f21a16416c3282b994f933312afa2
|
2013-04-12 13:13:49 +02:00
|
|
|
|
2013-08-24 16:25:58 +02:00
|
|
|
pre_configure() {
|
2014-06-16 08:58:20 +02:00
|
|
|
autoreconf -fi
|
2013-08-24 16:25:58 +02:00
|
|
|
}
|
|
|
|
|
2013-04-12 13:13:49 +02:00
|
|
|
gc-devel_package() {
|
2013-11-19 11:01:28 +01:00
|
|
|
depends="gc>=${version}_${revision}"
|
2013-08-24 16:25:58 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove "usr/lib/*.a"
|
2013-08-24 16:25:58 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-11-19 11:01:28 +01:00
|
|
|
vmove usr/lib/pkgconfig
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|