[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.96, Sat Apr 8 21:23:23 2006 UTC (12 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.95: +2 -2 lines

Update to 2.10.2:

Overview of Changes from GLib 2.10.1 to GLib 2.10.2
===================================================

* Bugs fixed:
 322476 Missing check for .dylib                      [Anders Carlsson]
 332841 Segmentation Fault when %llu is passed to
        vasnprintf and HAVE_SNPRINTF is not defined  [Michael McDonald]
 333098 Add support for write FDs to GIOChannel      [Markus Brinkmann]
 334519 Memleak in goption.c::parse_short_option         [Chris Wilson]
 334471 g_parse_debug_string reads beyond buffer      [Morten Welinder]
 334611 g_option_context_parse() should not set program
        name to '<Unknown>' if it is already set      [Chong Kai Xiong]
 335207 g_main_context_unref calls g_source_destroy_internal
        with incorrect arguments                         [Chris Wilson]
 335216 Slight performance gains (GList, GAsyncQueue)    [Chris Wilson]
 335209 Use of unitialised memory in g_mem_profile       [Chris Wilson]
 334943 make check FAIL: threadpool-test
 336085 g_option_context_new parameter lacks better
        explanation                                  [Claudio Saavedra]
 335215 Some breakages with GThreadPool                  [Chris Wilson]
 333879	gthread/gthread-win32.c: IsDebuggerPresent needs
        '#define _WIN32_WINDOWS 0x0401'                [Kazuki Iwamoto]
 334440 dlerror() portability issue causes crash on (old)
        a.out NetBSD platform                           [ITOH Yasufumi]
 333916 g_timer_elapsed docs should mention that
        microseconds may be NULL                    [Christian Neumair]
 334646 goption + error out params                   [Christian Persch]
 335294 Documentation should not reference G_HAVE_GINT64,
        as it's deprecated.                            [Richard Laager]

* Translation updates (dz,et,he,hi,ka,or,pt_BR,ro,tr)

# $NetBSD: Makefile,v 1.96 2006/04/08 21:23:23 wiz Exp $

DISTNAME=		glib-2.10.2
PKGNAME=		${DISTNAME:S/glib/glib2/}
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.gtk.org/pub/gtk/v2.10/ \
			ftp://ftp.cs.umn.edu/pub/gimp/gtk/v2.10/ \
			${MASTER_SITE_GNOME:=sources/glib/2.10/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		wiz@NetBSD.org
HOMEPAGE=		http://www.gtk.org/docs/glib_toc.html
COMMENT=		Some useful routines for C programming (glib2)

PKG_INSTALLATION_TYPES=	overwrite pkgviews

BUILD_USES_MSGFMT=	yes

USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		gmake perl:run pkg-config
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

GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		PKGLOCALEDIR=${PKGLOCALEDIR:Q}
CONFIGURE_ARGS+=	--enable-gtk-doc=no
CONFIGURE_ARGS+=	--includedir=${PREFIX}/include/glib
CONFIGURE_ARGS+=	--with-html-dir=${PREFIX}/share/doc
CONFIGURE_ARGS+=	${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}

CONFIGURE_ARGS.gnu-iconv+=	--with-libiconv=gnu

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

CONFIGURE_ENV+=		PERL_PATH=${PERL5:Q}

.include "options.mk"

.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

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

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.if !empty(LOWER_OPSYS:Mirix5*)
CONFIGURE_ARGS+=	--disable-threads
.else
.include "../../mk/pthread.buildlink3.mk"
.endif

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