Mon Sep 8 08:33:59 2014 UTC ()
Put back CONFIGURE_ARGS.gnu-iconv, it is required for the ICONV_TYPE=gnu
case to avoid conflicts between the native libiconv and iconv.h from GNU
libiconv and ensure only GNU libiconv is used.  Discussed with prlw1.


(jperkin)
diff -r1.37 -r1.38 pkgsrc/devel/glib2/Makefile.common

cvs diff -r1.37 -r1.38 pkgsrc/devel/glib2/Makefile.common (expand / switch to unified diff)

--- pkgsrc/devel/glib2/Makefile.common 2014/09/05 20:49:55 1.37
+++ pkgsrc/devel/glib2/Makefile.common 2014/09/08 08:33:59 1.38
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.common,v 1.37 2014/09/05 20:49:55 prlw1 Exp $ 1# $NetBSD: Makefile.common,v 1.38 2014/09/08 08:33:59 jperkin Exp $
2# 2#
3# used by devel/glib2/Makefile 3# used by devel/glib2/Makefile
4# used by devel/gdbus-codegen/Makefile 4# used by devel/gdbus-codegen/Makefile
5# used by sysutils/gio-fam/Makefile 5# used by sysutils/gio-fam/Makefile
6 6
7# When updating this package, please apply patch-ak to configure.in and 7# When updating this package, please apply patch-ak to configure.in and
8# then run a matching version of autoconf to regen patch-aa. 8# then run a matching version of autoconf to regen patch-aa.
9DISTNAME= glib-2.40.0 9DISTNAME= glib-2.40.0
10PKGNAME= ${DISTNAME:S/glib/glib2/} 10PKGNAME= ${DISTNAME:S/glib/glib2/}
11CATEGORIES= # empty; redefined in Makefile 11CATEGORIES= # empty; redefined in Makefile
12MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/${PKGVERSION_NOREV:R}/} 12MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/${PKGVERSION_NOREV:R}/}
13EXTRACT_SUFX= .tar.xz 13EXTRACT_SUFX= .tar.xz
14 14
@@ -30,26 +30,28 @@ PATCHDIR= ${.CURDIR}/../../devel/glib2/ @@ -30,26 +30,28 @@ PATCHDIR= ${.CURDIR}/../../devel/glib2/
30 30
31GNU_CONFIGURE= yes 31GNU_CONFIGURE= yes
32CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR} 32CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR}
33CONFIGURE_ARGS+= --disable-fam # See sysutils/gio-fam. 33CONFIGURE_ARGS+= --disable-fam # See sysutils/gio-fam.
34CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib 34CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib
35CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv} 35CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
36CONFIGURE_ARGS+= --with-pcre=system 36CONFIGURE_ARGS+= --with-pcre=system
37CONFIGURE_ARGS+= --disable-dtrace 37CONFIGURE_ARGS+= --disable-dtrace
38CONFIGURE_ARGS+= --disable-man # Requires xsltproc and Docbook. 38CONFIGURE_ARGS+= --disable-man # Requires xsltproc and Docbook.
39CONFIGURE_ARGS+= --disable-modular-tests 39CONFIGURE_ARGS+= --disable-modular-tests
40# Avoid unnecessary autotools invocation. 40# Avoid unnecessary autotools invocation.
41CONFIGURE_ARGS+= --disable-maintainer-mode 41CONFIGURE_ARGS+= --disable-maintainer-mode
42 42
 43CONFIGURE_ARGS.gnu-iconv= --with-libiconv=gnu
 44
43CONFIGURE_ENV+= PERL_PATH=${PERL5:Q} 45CONFIGURE_ENV+= PERL_PATH=${PERL5:Q}
44 46
45.include "../../mk/bsd.prefs.mk" 47.include "../../mk/bsd.prefs.mk"
46 48
47 49
48CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" 50CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
49CPPFLAGS+= -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\"" 51CPPFLAGS+= -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\""
50CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\"" 52CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
51 53
52.if ${OPSYS} == "FreeBSD" 54.if ${OPSYS} == "FreeBSD"
53SUBST_CLASSES+= thr 55SUBST_CLASSES+= thr
54SUBST_STAGE.thr= post-patch 56SUBST_STAGE.thr= post-patch
55SUBST_FILES.thr= gthread/Makefile.in 57SUBST_FILES.thr= gthread/Makefile.in