98f0b6033c
Highlights from the release notes: * Don't redefine typedefs to avoid build problems on OpenBSD * Improve the default application algorithm * Bump the number of children a GType can have * GUnixMountMonitor now properly supports multiple main contexts * many documentation improvements and cleanups. We are now approaching a point where the documentation is 100% complete and the xml will build without warnings. This will probably be enabled by default in the next cycle. * new support for HTTP proxies in GIO * new GTask:completed property * use "private" futexes in order to further improve the performance of the contended case of GMutex and g_bit_lock() * GApplication now has an "is-busy" property, allowing one to query the effective busy state. * new GSimpleIOStream class to construct a GIOStream from an arbitrary GInputStream and GOutputStream * GApplication: new API for marking 'busy' state according to the value of a boolean property on another object * GOptionGroup: add binding support (boxed type, annotation fixes, etc.) * GType now has type declaration macros G_DECLARE_DERIVABLE_TYPE, G_DECLARE_FINAL_TYPE and G_DECLARE_INTERFACE, which significantly reduce the boilerplate needed for GObject types and interfaces. * g_autoptr and g_auto are macros for declaring variables with automatic cleanup. They only work with gcc and clang. * GListModel is a new interface that represents a dynamic list of GObjects. * GListStore is a GSequence-based implementation of GListModel. * Support thread names on OS X * g_simple_action_set_state_hint: New function to set the state hint of GSimpleActions * g_win32_check_windows_version: New function to check Windows version * g_settings_schema_list_children and g_settings_schema_key_get_name * add g_set_object() convenience function * GNetworkMonitor: check if NM is not running and don't crash * fix some races with g_mkdir_with_parents * fix some warnings in MSVC * avoid use of G_STRLOC in G_OBJECT_WARN_INVALID_PSPEC in order to save on static strings * fix some content type vs. mime issues * documentation improvements * GSocket: avoid unnecessary g_socket_wait_condition() for blocking sockets * Implement GContentType on OSX * New function: g_strv_contains * New function: g_network_address_new_loopback * New function: g_socket_send_messages * A new GNetworkMonitor implementation using NetworkManager provides more detailed connectivity information * GQueue now accepts NULL as a sibling in g_queue_insert_before() and g_queue_insert_after() * Need to disable SSLv3 in glib-networking * GObject gained a debug option to provide instance counts. To use it, set GOBJECT_DEBUG=instance-count and call g_type_get_instance_count(). * GOption now has a strict POSIX mode in which it stops parsing arguments as soon as a non-option argument is encountered. * ... and many other bug fixes. * Many translations updated. For full details see: https://git.gnome.org/browse/glib/tree/NEWS?h=glib-2-44
99 lines
2.9 KiB
Text
99 lines
2.9 KiB
Text
# $NetBSD: Makefile.common,v 1.45 2015/06/10 23:00:05 prlw1 Exp $
|
|
#
|
|
# used by devel/glib2/Makefile
|
|
# used by devel/gdbus-codegen/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.44.1
|
|
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= http://developer.gnome.org/glib/
|
|
COMMENT= # empty; redefined in Makefile
|
|
LICENSE= gnu-lgpl-v2
|
|
|
|
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.
|
|
CONFIGURE_ARGS+= --disable-modular-tests
|
|
# Avoid unnecessary autotools invocation.
|
|
CONFIGURE_ARGS+= --disable-maintainer-mode
|
|
|
|
# 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= post-patch
|
|
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
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
BUILDLINK_TRANSFORM+= rm:-Werror=missing-prototypes
|
|
.endif
|
|
|
|
.if ${OPSYS} == "HPUX"
|
|
CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=yes
|
|
.endif
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
BUILDLINK_TRANSFORM+= rm:-Werror=format=2
|
|
.endif
|
|
|
|
.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= post-patch
|
|
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'
|