blob: f79ed3c2219f644da74bde692556796d0dffcb71 (
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
|
# $NetBSD: Makefile,v 1.204 2012/05/15 09:20:15 adam Exp $
.include "Makefile.common"
.include "options.mk"
CATEGORIES= devel
COMMENT= Some useful routines for C programming (glib2)
USE_TOOLS+= msgfmt perl:run
PKGCONFIG_OVERRIDE+= glib-2.0.pc.in
PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in
PKGCONFIG_OVERRIDE+= gmodule-export-2.0.pc.in
PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0.pc.in
PKGCONFIG_OVERRIDE+= gobject-2.0.pc.in
PKGCONFIG_OVERRIDE+= gthread-2.0.pc.in
PKGCONFIG_OVERRIDE+= gio-2.0.pc.in
PKGCONFIG_OVERRIDE+= gio-unix-2.0.pc.in
PKGCONFIG_OVERRIDE+= gio-windows-2.0.pc.in
FILES_SUBST+= GIO_MODULES_DIR=${PREFIX}/lib/gio/modules
FILES_SUBST+= GIO_QUERYMODULES=${PREFIX}/bin/gio-querymodules
FILES_SUBST+= GLIB_COMPILE_SCHEMAS=${PREFIX}/bin/glib-compile-schemas
FILES_SUBST+= GLIB_SCHEMAS_DIR=${PREFIX}/share/glib-2.0/schemas
# gtester is the glib unit testing and reporting framework
# agc doesn't want glib2 to depend on python so we install it
# in a broken and useless state.
CHECK_INTERPRETER_SKIP+= bin/gtester-report
CHECK_INTERPRETER_SKIP+= bin/gdbus-codegen
# need pcre utf8 + unicode-properties
BUILDLINK_API_DEPENDS.pcre+= pcre>=8.11
# to avoid pkg-config dependency, explicitly specify pcre location
CONFIGURE_ARGS+= PCRE_CFLAGS=-I${BUILDLINK_PREFIX.pcre}/include
CONFIGURE_ARGS+= PCRE_LIBS="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib -L${BUILDLINK_PREFIX.pcre}/lib -lpcre"
# needs gz_header structure
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.2.1
LIBS.SunOS+= -lnsl -lsocket
CPPFLAGS.SunOS+= -DBSD_COMP
.if ${OBJECT_FMT} == "ELF"
.include "../../devel/libelf/buildlink3.mk"
.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|