bdf696f96b
Among many bugfixes, changes and translations: * GIO now has kqueue support for GFileMonitor (BSDs, Mac OS) * GTask (the new GAsyncResult implementation) has landed * We now install a public "gnetworking.h" header that can be used to include the relevant OS-dependent networking headers. This does not really abstract away unix-vs-windows however; error codes, in particular, are incompatible. See NEWS file http://git.gnome.org/browse/glib/plain/NEWS?id=2.36.1 for details. Patches removed: - patch-aj: Per PR pkg/41601: Bug 133344 is closed and compile tested by Joern Clausen - patch-at: Fixed in b26fb3ae (Bug 687600) - patch-cf: Adds sys/param.h - if still needed, should go into gnetworking.h.in XXX might still be needed - patch-cg: Fixed (or changed anyway) in 6f8f1f70 and 52a81a7d (Bug 688681) - patch-ci: Fixed in a33aaad0 (Bug 637013) - patch-glib_goption.c: Fixed in f9a6a974 - patch-glib_tests_include.c: Fixed in d2b7ee62 (Bug 672406) Patches changed: - patch-ak: First chunk fixed in 5fbdd3aa (Bug 691011) - patch-ap: Added NetBSD support to g_credentials_get_unix_pid() First chunk fixed in b377e696 (Bug 623187) - patch-aq: First chunk fixed in b8c13a01 (Bug 688109) Patches added: - patch-gio_glocalfile.c (Reported as Bug 698348)
92 lines
2.7 KiB
Text
92 lines
2.7 KiB
Text
# $NetBSD: Makefile.common,v 1.27 2013/04/19 22:21:41 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.36.1
|
|
PKGNAME= ${DISTNAME:S/glib/glib2/}
|
|
CATEGORIES= # empty; redefined in Makefile
|
|
MASTER_SITES= ftp://ftp.gtk.org/pub/glib/${PKGVERSION_NOREV:R}/ \
|
|
${MASTER_SITE_GNOME:=sources/glib/${PKGVERSION_NOREV:R}/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://developer.gnome.org/glib/
|
|
COMMENT= # empty; redefined in Makefile
|
|
LICENSE= gnu-lgpl-v2
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
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
|
|
|
|
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} == "HPUX"
|
|
CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=yes
|
|
.endif
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
.else
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.endif
|
|
|
|
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'
|
|
|
|
pre-configure:
|
|
${TOUCH} ${WRKSRC}/configure ${WRKSRC}/aclocal.m4 ${WRKSRC}/config.h.in
|