[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.5, Thu Aug 1 05:48:08 2002 UTC (16 years, 7 months ago) by jlam
Branch: MAIN
CVS Tags: netbsd-1-6-RELEASE-base, netbsd-1-6, buildlink2-base
Changes since 1.4: +8 -3 lines

Adjust to new pthread.buildlink.mk: remove USE_PTHREAD and replace with
appropriate PTHREAD_OPTS incantation, and move the checks for the value
of PTHREAD_TYPE below the inclusion of pthread.buildlink.mk.

# $NetBSD: Makefile,v 1.5 2002/08/01 05:48:08 jlam Exp $
#

DISTNAME=		glib-2.0.4
PKGNAME=		${DISTNAME:S/glib/glib2/}
PKGREVISION=		1
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.gtk.org/pub/gtk/v2.0/ \
			ftp://ftp.cs.umn.edu/pub/gimp/gtk/v2.0/ \
			http://www.ameth.org/gimp/pub/gtk/v2.0/ \
			${MASTER_SITE_GNOME:=stable/sources/glib/}

MAINTAINER=		packages@netbsd.org
HOMEPAGE=		http://www.gtk.org/docs/glib_toc.html
COMMENT=		Some useful routines for C programming

BUILD_USES_MSGFMT=	yes
GNU_CONFIGURE=		yes
USE_BUILDLINK_ONLY=	yes
USE_GMAKE=		yes
USE_LIBTOOL=		yes
LIBTOOL_OVERRIDE=	${WRKSRC}/libtool
USE_PERL5=		yes
CONFIGURE_ARGS+=	--includedir=${PREFIX}/include/glib
MAKE_ENV+=		PKGLOCALEDIR="${PKGLOCALEDIR}"

# GLib needs a working pre-emptive pthreads implementation
PTHREAD_OPTS+=		native

test: build
	cd ${WRKSRC} &&  ${MAKE_ENV} ${MAKE_PROGRAM} check 2>&1 | \
		tee ${WRKDIR}/check.log

.include "../../converters/libiconv/buildlink.mk"
.include "../../devel/gettext-lib/buildlink.mk"
.include "../../devel/pkgconfig/buildlink.mk"
.include "../../mk/pthread.buildlink.mk"

.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
CPPFLAGS+=		-I${BUILDLINK_DIR}/PTL/include
.  include "../../devel/ptl2/buildlink.mk"
.endif

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