[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2

File: [cvs.NetBSD.org] / pkgsrc / devel / glib2 / Makefile (download)

Revision 1.213, Fri Apr 19 22:21:41 2013 UTC (5 years, 11 months ago) by prlw1
Branch: MAIN
Changes since 1.212: +1 -2 lines

Update glib to 2.36.1

Among many bugfixes, changes and translations:

 * GIO now has kqueue support for GFileMonitor (BSDs, Mac OS)
 * GTask (the new GAsyncResult implementation) has landed
 * We now install a public "gnetworking.h" header that can be used to
   include the relevant OS-dependent networking headers. This does not
   really abstract away unix-vs-windows however; error codes, in
   particular, are incompatible.

See NEWS file http://git.gnome.org/browse/glib/plain/NEWS?id=2.36.1 for details.

Patches removed:
- patch-aj:
    Per PR pkg/41601: Bug 133344 is closed and compile tested by Joern Clausen
- patch-at:
    Fixed in b26fb3ae (Bug 687600)
- patch-cf:
    Adds sys/param.h - if still needed, should go into gnetworking.h.in
    XXX might still be needed
- patch-cg:
    Fixed (or changed anyway) in 6f8f1f70 and 52a81a7d (Bug 688681)
- patch-ci:
    Fixed in a33aaad0 (Bug 637013)
- patch-glib_goption.c:
    Fixed in f9a6a974
- patch-glib_tests_include.c:
    Fixed in d2b7ee62 (Bug 672406)

Patches changed:
- patch-ak:
    First chunk fixed in 5fbdd3aa (Bug 691011)
- patch-ap:
    Added NetBSD support to g_credentials_get_unix_pid()
    First chunk fixed in b377e696 (Bug 623187)
- patch-aq:
    First chunk fixed in b8c13a01 (Bug 688109)

Patches added:
- patch-gio_glocalfile.c (Reported as Bug 698348)

# $NetBSD: Makefile,v 1.213 2013/04/19 22:21:41 prlw1 Exp $

.include "Makefile.common"

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"
. if ${OPSYS} == "SunOS"
.  if ${ABI} == 32
# Solaris libelf in 32-bit mode does not support largefile.  We patch files
# individually to force _FILE_OFFSET_BITS=32 but need to turn back on -lelf
# after configure disabled it.
CONFIGURE_ENV+=		LIBELF_LIBS='-lelf'
.  endif
. else
.include "../../devel/libelf/buildlink3.mk"
. endif
.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"