| @@ -1,62 +1,62 @@ | | | @@ -1,62 +1,62 @@ |
1 | # $NetBSD: Makefile,v 1.228 2016/04/07 18:33:05 prlw1 Exp $ | | 1 | # $NetBSD: Makefile,v 1.229 2016/04/09 06:11:15 richard Exp $ |
2 | | | 2 | |
3 | .include "Makefile.common" | | 3 | .include "Makefile.common" |
4 | | | 4 | |
5 | CATEGORIES= devel gnome | | 5 | CATEGORIES= devel gnome |
6 | | | 6 | |
7 | COMMENT= Some useful routines for C programming (glib2) | | 7 | COMMENT= Some useful routines for C programming (glib2) |
8 | | | 8 | |
9 | USE_TOOLS+= msgfmt perl:run readlink | | 9 | USE_TOOLS+= msgfmt perl:run readlink |
10 | | | 10 | |
11 | PKGCONFIG_OVERRIDE+= glib-2.0.pc.in | | 11 | PKGCONFIG_OVERRIDE+= glib-2.0.pc.in |
12 | PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in | | 12 | PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in |
13 | PKGCONFIG_OVERRIDE+= gmodule-export-2.0.pc.in | | 13 | PKGCONFIG_OVERRIDE+= gmodule-export-2.0.pc.in |
14 | PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0.pc.in | | 14 | PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0.pc.in |
15 | PKGCONFIG_OVERRIDE+= gobject-2.0.pc.in | | 15 | PKGCONFIG_OVERRIDE+= gobject-2.0.pc.in |
16 | PKGCONFIG_OVERRIDE+= gthread-2.0.pc.in | | 16 | PKGCONFIG_OVERRIDE+= gthread-2.0.pc.in |
17 | PKGCONFIG_OVERRIDE+= gio-2.0.pc.in | | 17 | PKGCONFIG_OVERRIDE+= gio-2.0.pc.in |
18 | PKGCONFIG_OVERRIDE+= gio-unix-2.0.pc.in | | 18 | PKGCONFIG_OVERRIDE+= gio-unix-2.0.pc.in |
19 | PKGCONFIG_OVERRIDE+= gio-windows-2.0.pc.in | | 19 | PKGCONFIG_OVERRIDE+= gio-windows-2.0.pc.in |
20 | | | 20 | |
21 | FILES_SUBST+= GIO_MODULES_DIR=${PREFIX}/lib/gio/modules | | 21 | FILES_SUBST+= GIO_MODULES_DIR=${PREFIX}/lib/gio/modules |
22 | FILES_SUBST+= GIO_QUERYMODULES=${PREFIX}/bin/gio-querymodules | | 22 | FILES_SUBST+= GIO_QUERYMODULES=${PREFIX}/bin/gio-querymodules |
23 | FILES_SUBST+= GLIB_COMPILE_SCHEMAS=${PREFIX}/bin/glib-compile-schemas | | 23 | FILES_SUBST+= GLIB_COMPILE_SCHEMAS=${PREFIX}/bin/glib-compile-schemas |
24 | FILES_SUBST+= GLIB_SCHEMAS_DIR=${PREFIX}/share/glib-2.0/schemas | | 24 | FILES_SUBST+= GLIB_SCHEMAS_DIR=${PREFIX}/share/glib-2.0/schemas |
25 | | | 25 | |
26 | # gtester is the glib unit testing and reporting framework | | 26 | # gtester is the glib unit testing and reporting framework |
27 | # agc doesn't want glib2 to depend on python so we install it | | 27 | # agc doesn't want glib2 to depend on python so we install it |
28 | # in a broken and useless state. | | 28 | # in a broken and useless state. |
29 | CHECK_INTERPRETER_SKIP+= bin/gtester-report | | 29 | CHECK_INTERPRETER_SKIP+= bin/gtester-report |
30 | CHECK_INTERPRETER_SKIP+= bin/gdbus-codegen | | 30 | CHECK_INTERPRETER_SKIP+= bin/gdbus-codegen |
31 | | | 31 | |
32 | # need pcre utf8 + unicode-properties | | 32 | # need pcre utf8 + unicode-properties |
33 | BUILDLINK_API_DEPENDS.pcre+= pcre>=8.31 | | 33 | BUILDLINK_API_DEPENDS.pcre+= pcre>=8.31 |
34 | # to avoid pkg-config dependency, explicitly specify pcre location | | 34 | # to avoid pkg-config dependency, explicitly specify pcre location |
35 | CONFIGURE_ARGS+= PCRE_CFLAGS=-I${BUILDLINK_PREFIX.pcre}/include | | 35 | CONFIGURE_ARGS+= PCRE_CFLAGS=-I${BUILDLINK_PREFIX.pcre}/include |
36 | CONFIGURE_ARGS+= PCRE_LIBS="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib -L${BUILDLINK_PREFIX.pcre}/lib -lpcre" | | 36 | CONFIGURE_ARGS+= PCRE_LIBS="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib -L${BUILDLINK_PREFIX.pcre}/lib -lpcre" |
37 | | | 37 | |
38 | # needs gz_header structure | | 38 | # needs gz_header structure |
39 | BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.2.1 | | 39 | BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.2.1 |
40 | | | 40 | |
41 | LIBS.SunOS+= -lnsl -lsocket | | 41 | LIBS.SunOS+= -lnsl -lsocket |
42 | CPPFLAGS.SunOS+= -DBSD_COMP | | 42 | CPPFLAGS.SunOS+= -DBSD_COMP |
43 | | | 43 | |
44 | .if ${OBJECT_FMT} == "ELF" | | 44 | .if ${OBJECT_FMT} == "ELF" |
45 | . if ${OPSYS} == "SunOS" | | 45 | . if ${OPSYS} == "SunOS" |
46 | . if ${ABI} == 32 | | 46 | . if empty(ABI:U:M64) |
47 | # Solaris libelf in 32-bit mode does not support largefile. We patch files | | 47 | # Solaris libelf in 32-bit mode does not support largefile. We patch files |
48 | # individually to force _FILE_OFFSET_BITS=32 but need to turn back on -lelf | | 48 | # individually to force _FILE_OFFSET_BITS=32 but need to turn back on -lelf |
49 | # after configure disabled it. | | 49 | # after configure disabled it. |
50 | CONFIGURE_ENV+= LIBELF_LIBS='-lelf' | | 50 | CONFIGURE_ENV+= LIBELF_LIBS='-lelf' |
51 | . endif | | 51 | . endif |
52 | . else | | 52 | . else |
53 | . include "../../devel/libelf/buildlink3.mk" | | 53 | . include "../../devel/libelf/buildlink3.mk" |
54 | . endif | | 54 | . endif |
55 | .endif | | 55 | .endif |
56 | | | 56 | |
57 | .include "../../converters/libiconv/buildlink3.mk" | | 57 | .include "../../converters/libiconv/buildlink3.mk" |
58 | .include "../../devel/gettext-lib/buildlink3.mk" | | 58 | .include "../../devel/gettext-lib/buildlink3.mk" |
59 | .include "../../devel/pcre/buildlink3.mk" | | 59 | .include "../../devel/pcre/buildlink3.mk" |
60 | .include "../../devel/zlib/buildlink3.mk" | | 60 | .include "../../devel/zlib/buildlink3.mk" |
61 | .include "../../devel/libffi/buildlink3.mk" | | 61 | .include "../../devel/libffi/buildlink3.mk" |
62 | .include "../../mk/bsd.pkg.mk" | | 62 | .include "../../mk/bsd.pkg.mk" |