[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.241, Sun Aug 19 18:32:27 2018 UTC (7 months ago) by wiz
Branch: MAIN
Changes since 1.240: +1 -2 lines

glib2: update to 2.56.2.

Overview of changes in GLib 2.56.2
==================================

* Support version 2 of the NetworkMonitor portal interface

* Bug fixes:
 740791 gio: cannot specify the source when joining a multicast group...
 755721 g_inotify_file_monitor_start called with nullpointer for dirn...
 773435 After g_get_home_dir() fails, a second use deadlocks
 793727 Use-after-free in emit_network_changed() of gnetworkmonitorba...
 794380 Build failure of gcocoanotificationbackend.c on OS X < 10.9
 794801 /network-monitor/add_networks fails if there is a proxy and g...
 795138 gobject build failure with gcc <= 4.7
 795234 Fix Jenkins CI build failures for network tests
 795406 Glib fails to build for Android
 795429 glib-genmarshal shows redundant "time" warning message agains...
 795711 gitlab-ci: update meson
 795735 Fix comparison for GVariant property values
 795802 gdbus-codegen doesn't accept --output-directory with --output...
 #1240 W32: g_get_system_data_dirs() works differently for C++ applic...
#1401 g_clear_handle_id: clear_func is nullable, despite documentatin...
#1452 GFileInfo: unable to retrieve correct modification time of link...
#1458 g_volume_get_mount returns NULL value after g_volume_mount_fini...

* Translation updates
 Russian
 Slovenian

# $NetBSD: Makefile,v 1.241 2018/08/19 18:32:27 wiz Exp $

.include "Makefile.common"

CATEGORIES=		devel gnome

COMMENT=		Some useful routines for C programming (glib2)

USE_TOOLS+=		msgfmt perl:run readlink

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_WRKREF_SKIP+=		bin/gtester-report

# need pcre utf8 + unicode-properties
BUILDLINK_API_DEPENDS.pcre+=	pcre>=8.31
# 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 empty(ABI:U:M64)
# 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

# XXX: Kludge to avoid uncoditionally pick up some gtkdoc-* tools if gtk-doc
# XXX: package is installed and then fails in the installation phase.
CONFIGURE_ENV+=	ac_cv_prog_GTKDOC_CHECK= \
		ac_cv_path_GTKDOC_CHECK_PATH= \
		ac_cv_path_GTKDOC_REBASE= \
		ac_cv_path_GTKDOC_MKPDF=

# to run gdbus-codegen to generate gdbus-daemon-generated.{h,c}
TOOL_DEPENDS+=		${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
PYTHON_FOR_BUILD_ONLY?=	yes
.include "../../lang/python/pyversion.mk"

.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"