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

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

Revision 1.50, Fri May 27 08:19:27 2016 UTC (3 years, 1 month ago) by prlw1
Branch: MAIN
CVS Tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2
Changes since 1.49: +2 -2 lines

Update glib2 to 2.48.1

Overview of changes in GLib 2.48.1
==================================

Bugs fixed:
 731988 glocalfile: Avoid a potential NULL pointer dereference
 747107 GVariant varargs documentation: g_variant_get() example
 747478 g_system_thread_set_name() is not implemented for gthread-win32
 748474 g_get_language_names() is not thread-safe
 748530 gthread: W32 implementation of g_get_num_processors() has lame fallback
 748806 GVariant: Better introduction to the concepts and its uses
 749606 tests: always remove app.desktop
 758174 Fix documentation typos
 758738 Usage of GType properties causes crashes due to gulong/gpointer mismatch
 762994 Race condition in GIO/AppFileChooser crashes Firefox/Gtk3
 763379 codegen: Add support for g_autoptr to gdbus-codegen generated objects
 763821 build: Also dist Systemtap files always for gobject/
 764092 gstrfuncs: Document the behaviour of g_strjoinv()
 764574 build: Fix all statfs() tests failing
 764575 tests: Fix compilation errors due to Y2K format problems
 764685 GApplication documentation about handling command-line options is confusing
 764754 '-' in application id: unbreak bus activation and notifications
 765959 socket: set fd field to -1 after closing socket
 765990 Visual Studio: Define inline only when necessary

Translations updated:
 Basque language
 Catalan
 Vietnamese
 zh_CN

# $NetBSD: Makefile.common,v 1.50 2016/05/27 08:19:27 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.48.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

# glib-2.48.0 dropped support for OSX < 10.9.0 just to add notification
# support, so we just disable that feature for older releases.
.if !empty(MACHINE_PLATFORM:MDarwin-[0-9].*) || \
    !empty(MACHINE_PLATFORM:MDarwin-1[012].*)
SUBST_CLASSES+=		gcocoa
SUBST_STAGE.gcocoa=	pre-configure
SUBST_FILES.gcocoa=	configure
SUBST_FILES.gcocoa+=	gio/Makefile.in gio/giomodule.c
SUBST_SED.gcocoa=	-e 's,10.9.0,10.0.0,g'
SUBST_SED.gcocoa+=	-e 's,gcocoanotificationbackend.c,,g'
SUBST_SED.gcocoa+=	-e '/gcocoanotificationbackend/d'
SUBST_SED.gcocoa+=	-e '/g_type_ensure.*g_cocoa_notification/d'
.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=	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'