gobject-introspection is just required to build typelib.diff -r1.9 -r1.10 pkgsrc/textproc/json-glib/buildlink3.mk
(obache)
@@ -1,29 +1,25 @@ | @@ -1,29 +1,25 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.9 2013/04/21 14:04:20 rodent Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.10 2013/07/15 01:05:21 obache Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | BUILDLINK_TREE+= json-glib | 4 | BUILDLINK_TREE+= json-glib | |
5 | 5 | |||
6 | .if !defined(JSON_GLIB_BUILDLINK3_MK) | 6 | .if !defined(JSON_GLIB_BUILDLINK3_MK) | |
7 | JSON_GLIB_BUILDLINK3_MK:= | 7 | JSON_GLIB_BUILDLINK3_MK:= | |
8 | 8 | |||
9 | BUILDLINK_API_DEPENDS.json-glib+= json-glib>=0.6.2 | 9 | BUILDLINK_API_DEPENDS.json-glib+= json-glib>=0.6.2 | |
10 | BUILDLINK_ABI_DEPENDS.json-glib+= json-glib>=0.14.2nb3 | 10 | BUILDLINK_ABI_DEPENDS.json-glib+= json-glib>=0.14.2nb3 | |
11 | BUILDLINK_PKGSRCDIR.json-glib?= ../../textproc/json-glib | 11 | BUILDLINK_PKGSRCDIR.json-glib?= ../../textproc/json-glib | |
12 | 12 | |||
13 | pkgbase := json-glib | 13 | pkgbase := json-glib | |
14 | .include "../../mk/pkg-build-options.mk" | 14 | .include "../../mk/pkg-build-options.mk" | |
15 | 15 | |||
16 | .if !empty(PKG_BUILD_OPTIONS.json-glib:Mintrospection) | |||
17 | .include "../../devel/gobject-introspection/buildlink3.mk" | |||
18 | .endif | |||
19 | ||||
20 | .if !empty(PKG_BUILD_OPTIONS.json-glib:Mnls) | 16 | .if !empty(PKG_BUILD_OPTIONS.json-glib:Mnls) | |
21 | .include "../../converters/libiconv/buildlink3.mk" | 17 | .include "../../converters/libiconv/buildlink3.mk" | |
22 | .include "../../devel/gettext-lib/buildlink3.mk" | 18 | .include "../../devel/gettext-lib/buildlink3.mk" | |
23 | .endif | 19 | .endif | |
24 | 20 | |||
25 | .include "../../mk/pthread.buildlink3.mk" | 21 | .include "../../mk/pthread.buildlink3.mk" | |
26 | .include "../../devel/glib2/buildlink3.mk" | 22 | .include "../../devel/glib2/buildlink3.mk" | |
27 | .endif # JSON_GLIB_BUILDLINK3_MK | 23 | .endif # JSON_GLIB_BUILDLINK3_MK | |
28 | 24 | |||
29 | BUILDLINK_TREE+= -json-glib | 25 | BUILDLINK_TREE+= -json-glib |
@@ -1,23 +1,25 @@ | @@ -1,23 +1,25 @@ | |||
1 | # $NetBSD: options.mk,v 1.1 2013/04/21 14:04:20 rodent Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2013/07/15 01:05:21 obache Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.json-glib | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.json-glib | |
4 | PKG_SUPPORTED_OPTIONS= introspection nls tests | 4 | PKG_SUPPORTED_OPTIONS= introspection nls tests | |
5 | PKG_SUGGESTED_OPTIONS+= nls tests | 5 | PKG_SUGGESTED_OPTIONS+= nls tests | |
6 | PLIST_VARS+= introspection nls | 6 | PLIST_VARS+= introspection nls | |
7 | 7 | |||
8 | .include "../../mk/bsd.options.mk" | 8 | .include "../../mk/bsd.options.mk" | |
9 | 9 | |||
10 | .if !empty(PKG_OPTIONS:Mintrospection) | 10 | .if !empty(PKG_OPTIONS:Mintrospection) | |
11 | BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=0.9.5 | |||
12 | BUILDLINK_DEPMETHOD.gobject-introspection+= build | |||
11 | .include "../../devel/gobject-introspection/buildlink3.mk" | 13 | .include "../../devel/gobject-introspection/buildlink3.mk" | |
12 | CONFIGURE_ARGS+= --enable-introspection=yes | 14 | CONFIGURE_ARGS+= --enable-introspection=yes | |
13 | PLIST.introspection= yes | 15 | PLIST.introspection= yes | |
14 | .else | 16 | .else | |
15 | CONFIGURE_ARGS+= --enable-introspection=no | 17 | CONFIGURE_ARGS+= --enable-introspection=no | |
16 | .endif | 18 | .endif | |
17 | 19 | |||
18 | .if !empty(PKG_OPTIONS:Mnls) | 20 | .if !empty(PKG_OPTIONS:Mnls) | |
19 | .include "../../converters/libiconv/buildlink3.mk" | 21 | .include "../../converters/libiconv/buildlink3.mk" | |
20 | .include "../../devel/gettext-lib/buildlink3.mk" | 22 | .include "../../devel/gettext-lib/buildlink3.mk" | |
21 | PLIST.nls= yes | 23 | PLIST.nls= yes | |
22 | .else | 24 | .else | |
23 | CONFIGURE_ARGS+= --disable-nls | 25 | CONFIGURE_ARGS+= --disable-nls |