blob: 77bdfec641b0a7cf597d0c91d5ab9e2664dc6ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.86 2018/01/10 09:16:20 wiz Exp $
DISTNAME= gc-7.6.2
PKGNAME= ${DISTNAME:S/gc/boehm-gc/}
CATEGORIES= devel
MASTER_SITES= http://www.hboehm.info/gc/gc_source/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.hboehm.info/gc/
COMMENT= Garbage collection and memory leak detection for C and C++
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c c++
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-cplusplus
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/doc
PKGCONFIG_OVERRIDE= bdw-gc.pc.in
INSTALLATION_DIRS= ${PKGMANDIR}/man3
TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MDarwin-10.6*)
CFLAGS+= -D_XOPEN_SOURCE
.endif
.include "options.mk"
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/gc.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/gc.3
do-test:
cd ${WRKSRC} && \
${RM} -f gctest && ${MAKE_PROGRAM} gctest && ./gctest && \
${RM} -f test_cpp && ${MAKE_PROGRAM} test_cpp && ./test_cpp 10
.include "../../devel/libatomic_ops/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|