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

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

Revision 1.142, Mon Jul 14 03:54:32 2008 UTC (10 years, 8 months ago) by tnn
Branch: MAIN
Changes since 1.141: +2 -3 lines

Update to glib2-2.16.4.
Overview of Changes from GLib 2.16.3 to GLib 2.16.4
===================================================
* Bug fixes:
 528752 Win32 build and SSL not working
 539074 Cannot get exit status with g_spawn_command_line_sync()
 316221 G_LOCK warns about breaking strict-aliasing rules
 519137 g_slice_dup macro needs cast for 64-bit platform
 536158 also bump GHashTable version when a node is removed via
        g_hash_table_iter_remove()/g_hash_table_iter_steal()
 529321 make check fails in glib/pcre
 314453 Nautilus crashes in Solaris when browsing the attached
        file
 502511 g_assert_cmphex prints invalid message
 538119 glib's mainloop leaks a pipe to sub-processes
 540459 there are no way of getting the real number of bytes
        written in GMemoryOutputStream
 540423 unrecoverable error after g_seekable_truncate(seekable,0,...)
 530196 _g_local_file_has_trash_dir() doesn't handle st_dev == 0
 528600 g_dummy_file_get_parent("scheme://example.com/")
 536641 Filesystem querying in gio does not list AFS and autofs
        file systems
 537392 Additional colon in xattr name
 528433 gdesktopappinfo snafu ...
 526320 should not list mounts that the user doesn't have permiss...
 527132 nautilus crash when making ftp connection
 532852 totem_pl_parser_parse_with_base: assertion `...
 459905 Bug in wcwidth data
 534085 g_unichar_iswide_cjk() has a totally wrong table

# $NetBSD: Makefile,v 1.142 2008/07/14 03:54:32 tnn Exp $

# When updating glib2, please apply patch-ak to configure.in
# Then run a matching version of autoconf to regen patch-aa.
DISTNAME=		glib-2.16.4
PKGNAME=		${DISTNAME:S/glib/glib2/}
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.gtk.org/pub/glib/2.16/ \
			ftp://ftp.cs.umn.edu/pub/gimp/pub/glib/2.16/ \
			${MASTER_SITE_GNOME:=sources/glib/2.16/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://developer.gnome.org/doc/API/2.0/glib/glib.html
COMMENT=		Some useful routines for C programming (glib2)

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		gmake msgfmt perl:run pkg-config
USE_LANGUAGES=		c c++ c99
USE_LIBTOOL=		yes
TEST_TARGET=		check

PKGCONFIG_OVERRIDE=	glib-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+=	glib-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gmodule-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+=	gmodule-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gmodule-export-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gmodule-no-export-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+=	gmodule-no-export-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gobject-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+=	gobject-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gthread-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+=	gthread-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gio-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gio-unix-2.0.pc.in

GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		PKGLOCALEDIR=${PKGLOCALEDIR:Q}
CONFIGURE_ARGS+=	--includedir=${PREFIX}/include/glib
CONFIGURE_ARGS+=	${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
CONFIGURE_ARGS.gnu-iconv+=	--with-libiconv=gnu
CONFIGURE_ARGS+=	--with-pcre=system
# need pcre utf8 + unicode-properties
BUILDLINK_API_DEPENDS.pcre+= pcre>=7.4nb1

# Avoid an ICE in gcc2 on sparc64
CONFIGURE_ENV+=		F77=${FALSE:Q}

CONFIGURE_ENV+=		PERL_PATH=${PERL5:Q}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
# configure detects wrongly
CONFIGURE_ENV+=		ac_cv_func_statfs=no
.endif

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

# Handle directories shared with devel/glib.
PRINT_PLIST_AWK+=	/^@dirrm include\/glib$$/ \
				{ print "@unexec $${RMDIR} %D/" $$2 \
				  " 2>/dev/null || $${TRUE}"; next; }

PLIST_VARS+=		fam

# Overridden in options.mk.
CONFIGURE_ARGS+=	--disable-fam

.if ${OPSYS} != "HPUX" && ${OPSYS} != "OSF1"
.include "options.mk"
.endif

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"

.if !empty(MACHINE_PLATFORM:MIRIX-5*)
CONFIGURE_ARGS+=	--disable-threads
.else
.include "../../mk/pthread.buildlink3.mk"
.endif
.include "../../devel/pcre/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"