blob: 080607340efb1fffb92a039c81fb8a3d4422b245 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.32 2015/10/15 09:47:56 wiz Exp $
DISTNAME= pkg-config-0.29
CATEGORIES= devel
MASTER_SITES= http://pkgconfig.freedesktop.org/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pkgconfig.freedesktop.org/
COMMENT= System for managing library compile/link flags
LICENSE= gnu-gpl-v2
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-internal-glib
CONFIGURE_ARGS+= --disable-host-tool
CONFIGURE_ARGS+= --disable-maintainer-mode
# old name of the package
CONFLICTS= pkgconfig-[0-9]*
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "IRIX"
# configure bails out in subdir after re-parsing the cache
CONFIGURE_ARGS+= --cache-file=/dev/null
.endif
.if ${OPSYS} == "NetBSD"
post-configure:
cd ${WRKSRC}/glib; \
${GREP} -v HAVE_DTRACE config.h >config.h.new; \
${MV} config.h.new config.h
.endif
.if ${OS_VARIANT} == "SCOOSR5"
# SCO OpenServer 5.0.7/3.2 has no IPv6 support.
CONFIGURE_ENV+= glib_cv_value_AF_INET6=yes
.endif
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --disable-dtrace
.endif
CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
CONFIGURE_ARGS.gnu-iconv= --with-libiconv=gnu
PKGCONFIG_EXTRA_PATHS= # empty
.if ${LOCALBASE} != ${X11BASE}
PKGCONFIG_EXTRA_PATHS+= ${X11BASE}/lib/pkgconfig
.endif
.if ${LOCALBASE} != "/usr"
PKGCONFIG_EXTRA_PATHS+= /usr/lib/pkgconfig
.endif
.if !empty(PKGCONFIG_EXTRA_PATHS)
# First part of the value is taken from configure.in
CONFIGURE_ARGS+= --with-pc-path='$${libdir}/pkgconfig:$${datadir}/pkgconfig:${PKGCONFIG_EXTRA_PATHS:ts::Q}'
.endif
# needed for fifth test case
BUILDLINK_PASSTHRU_DIRS+= /private-dep /public-dep /requires-test
TEST_TARGET= check
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|