| @@ -1,69 +1,69 @@ | | | @@ -1,69 +1,69 @@ |
1 | # $NetBSD: Makefile,v 1.36 2016/04/17 10:04:01 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.37 2017/05/05 01:19:35 mef Exp $ |
2 | | | 2 | |
3 | DISTNAME= pkg-config-0.29.1 | | 3 | DISTNAME= pkg-config-0.29.2 |
4 | CATEGORIES= devel | | 4 | CATEGORIES= devel |
5 | MASTER_SITES= http://pkgconfig.freedesktop.org/releases/ | | 5 | MASTER_SITES= http://pkgconfig.freedesktop.org/releases/ |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= http://pkgconfig.freedesktop.org/ | | 8 | HOMEPAGE= http://pkgconfig.freedesktop.org/ |
9 | COMMENT= System for managing library compile/link flags | | 9 | COMMENT= System for managing library compile/link flags |
10 | LICENSE= gnu-gpl-v2 | | 10 | LICENSE= gnu-gpl-v2 |
11 | | | 11 | |
12 | USE_LIBTOOL= yes | | 12 | USE_LIBTOOL= yes |
13 | GNU_CONFIGURE= yes | | 13 | GNU_CONFIGURE= yes |
14 | CONFIGURE_ARGS+= --with-internal-glib | | 14 | CONFIGURE_ARGS+= --with-internal-glib |
15 | CONFIGURE_ARGS+= --disable-host-tool | | 15 | CONFIGURE_ARGS+= --disable-host-tool |
16 | CONFIGURE_ARGS+= --disable-maintainer-mode | | 16 | CONFIGURE_ARGS+= --disable-maintainer-mode |
17 | | | 17 | |
18 | # old name of the package | | 18 | # old name of the package |
19 | CONFLICTS= pkgconfig-[0-9]* | | 19 | CONFLICTS= pkgconfig-[0-9]* |
20 | | | 20 | |
21 | .include "../../mk/bsd.prefs.mk" | | 21 | .include "../../mk/bsd.prefs.mk" |
22 | | | 22 | |
23 | # configure bails out in subdir after re-parsing the cache | | 23 | # configure bails out in subdir after re-parsing the cache |
24 | CONFIGURE_ARGS.IRIX+= --cache-file=/dev/null | | 24 | CONFIGURE_ARGS.IRIX+= --cache-file=/dev/null |
25 | | | 25 | |
26 | .if ${OPSYS} == "NetBSD" | | 26 | .if ${OPSYS} == "NetBSD" |
27 | .if ${MACHINE_ARCH} == "i386" && !empty(OS_VERSION:M[12345].*) | | 27 | .if ${MACHINE_ARCH} == "i386" && !empty(OS_VERSION:M[12345].*) |
28 | # Built-in GLib wants __sync_bool_compare_and_swap_4 | | 28 | # Built-in GLib wants __sync_bool_compare_and_swap_4 |
29 | CFLAGS+= -march=i486 | | 29 | CFLAGS+= -march=i486 |
30 | .endif | | 30 | .endif |
31 | post-configure: | | 31 | post-configure: |
32 | cd ${WRKSRC}/glib; \ | | 32 | cd ${WRKSRC}/glib; \ |
33 | ${GREP} -v HAVE_DTRACE config.h >config.h.new; \ | | 33 | ${GREP} -v HAVE_DTRACE config.h >config.h.new; \ |
34 | ${MV} config.h.new config.h | | 34 | ${MV} config.h.new config.h |
35 | .endif | | 35 | .endif |
36 | | | 36 | |
37 | .if ${OS_VARIANT} == "SCOOSR5" | | 37 | .if ${OS_VARIANT} == "SCOOSR5" |
38 | # SCO OpenServer 5.0.7/3.2 has no IPv6 support. | | 38 | # SCO OpenServer 5.0.7/3.2 has no IPv6 support. |
39 | CONFIGURE_ENV+= glib_cv_value_AF_INET6=yes | | 39 | CONFIGURE_ENV+= glib_cv_value_AF_INET6=yes |
40 | .endif | | 40 | .endif |
41 | | | 41 | |
42 | CONFIGURE_ARGS.SunOS+= --disable-dtrace | | 42 | CONFIGURE_ARGS.SunOS+= --disable-dtrace |
43 | CFLAGS.SunOS+= -DENABLE_NLS # required due to __EXTENSIONS__ | | 43 | CFLAGS.SunOS+= -DENABLE_NLS # required due to __EXTENSIONS__ |
44 | | | 44 | |
45 | CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv} | | 45 | CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv} |
46 | CONFIGURE_ARGS.gnu-iconv= --with-libiconv=gnu | | 46 | CONFIGURE_ARGS.gnu-iconv= --with-libiconv=gnu |
47 | | | 47 | |
48 | PKGCONFIG_EXTRA_PATHS= # empty | | 48 | PKGCONFIG_EXTRA_PATHS= # empty |
49 | | | 49 | |
50 | .if ${LOCALBASE} != ${X11BASE} | | 50 | .if ${LOCALBASE} != ${X11BASE} |
51 | PKGCONFIG_EXTRA_PATHS+= ${X11BASE}/lib/pkgconfig | | 51 | PKGCONFIG_EXTRA_PATHS+= ${X11BASE}/lib/pkgconfig |
52 | .endif | | 52 | .endif |
53 | | | 53 | |
54 | .if ${LOCALBASE} != "/usr" | | 54 | .if ${LOCALBASE} != "/usr" |
55 | PKGCONFIG_EXTRA_PATHS+= /usr/lib/pkgconfig | | 55 | PKGCONFIG_EXTRA_PATHS+= /usr/lib/pkgconfig |
56 | .endif | | 56 | .endif |
57 | | | 57 | |
58 | .if !empty(PKGCONFIG_EXTRA_PATHS) | | 58 | .if !empty(PKGCONFIG_EXTRA_PATHS) |
59 | # First part of the value is taken from configure.in | | 59 | # First part of the value is taken from configure.in |
60 | CONFIGURE_ARGS+= --with-pc-path='$${libdir}/pkgconfig:$${datadir}/pkgconfig:${PKGCONFIG_EXTRA_PATHS:ts::Q}' | | 60 | CONFIGURE_ARGS+= --with-pc-path='$${libdir}/pkgconfig:$${datadir}/pkgconfig:${PKGCONFIG_EXTRA_PATHS:ts::Q}' |
61 | .endif | | 61 | .endif |
62 | | | 62 | |
63 | # needed for fifth test case | | 63 | # needed for fifth test case |
64 | BUILDLINK_PASSTHRU_DIRS+= /private-dep /public-dep /requires-test | | 64 | BUILDLINK_PASSTHRU_DIRS+= /private-dep /public-dep /requires-test |
65 | TEST_TARGET= check | | 65 | TEST_TARGET= check |
66 | | | 66 | |
67 | .include "../../converters/libiconv/buildlink3.mk" | | 67 | .include "../../converters/libiconv/buildlink3.mk" |
68 | .include "../../mk/dlopen.buildlink3.mk" | | 68 | .include "../../mk/dlopen.buildlink3.mk" |
69 | .include "../../mk/bsd.pkg.mk" | | 69 | .include "../../mk/bsd.pkg.mk" |