pkgsrc/devel/glib2/Makefile.common
wiz 759aaf039a 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
2018-08-19 18:32:27 +00:00

93 lines
2.9 KiB
Text

# $NetBSD: Makefile.common,v 1.66 2018/08/19 18:32:27 wiz Exp $
#
# used by devel/glib2/Makefile
# used by devel/gdbus-codegen/Makefile
# used by devel/glib2-tools/Makefile
# used by sysutils/gio-fam/Makefile
# When updating this package, please apply patch-ak to configure.in and
# then run a matching version of autoconf to regen patch-aa.
DISTNAME= glib-2.56.2
PKGNAME= ${DISTNAME:S/glib/glib2/}
CATEGORIES= # empty; redefined in Makefile
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= prlw1@cam.ac.uk
HOMEPAGE= https://developer.gnome.org/glib/
COMMENT= # empty; redefined in Makefile
LICENSE= gnu-lgpl-v2.1
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c c++ c99
USE_LIBTOOL= yes
TEST_TARGET= check
DISTINFO_FILE= ${.CURDIR}/../../devel/glib2/distinfo
PATCHDIR= ${.CURDIR}/../../devel/glib2/patches
GNU_CONFIGURE= yes
CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR}
CONFIGURE_ARGS+= --disable-fam # See sysutils/gio-fam.
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib
CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
CONFIGURE_ARGS+= --with-pcre=system
CONFIGURE_ARGS+= --disable-dtrace
CONFIGURE_ARGS+= --disable-man # Requires xsltproc and Docbook.
# Avoid unnecessary autotools invocation.
CONFIGURE_ARGS+= --disable-maintainer-mode
# Avoid linux dependency on libmount-dev
CONFIGURE_ARGS.Linux+= --disable-libmount
# When ICONV_TYPE=gnu ensure we explicitly use the GNU version, to avoid
# conflicts between iconv.h from converters/libiconv and builtin libiconv
# which may be non-GNU.
CONFIGURE_ARGS.gnu-iconv= --with-libiconv=gnu
CONFIGURE_ENV+= PERL_PATH=${PERL5:Q}
.include "../../mk/bsd.prefs.mk"
CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
CPPFLAGS+= -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\""
CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
.if ${OPSYS} == "FreeBSD"
SUBST_CLASSES+= thr
SUBST_STAGE.thr= pre-configure
SUBST_FILES.thr= gthread/Makefile.in
. if ${OS_VERSION:R} >= 5
SUBST_SED.thr+= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-lpthread|g"
. else
SUBST_SED.thr+= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g"
. endif
SUBST_MESSAGE.thr= Fixing libgthread.
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*)
CONFIGURE_ENV+= gt_cv_c_wchar_t=no
.endif
BUILDLINK_TRANSFORM.Darwin+= rm:-Werror=missing-prototypes
BUILDLINK_TRANSFORM.SunOS+= rm:-Werror=format=2
CONFIGURE_ENV.HPUX+= ac_cv_func_mmap_fixed_mapped=yes
.include "../../mk/dlopen.buildlink3.mk"
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
CONFIGURE_ARGS+= --disable-threads
.else
.include "../../mk/pthread.buildlink3.mk"
.endif
BUILD_DEFS+= VARBASE
SUBST_CLASSES+= dbusdb
SUBST_MESSAGE.dbusdb= Adjust dbus machine uuid path to dbus package
SUBST_STAGE.dbusdb= pre-configure
SUBST_FILES.dbusdb= gio/gdbusconnection.c
SUBST_FILES.dbusdb+= gio/gdbusprivate.c
SUBST_FILES.dbusdb+= po/glib20.pot
SUBST_FILES.dbusdb+= po/*.po
SUBST_SED.dbusdb= -e 's,/var/lib/dbus,${VARBASE}/db/dbus,g'