# $OpenBSD: Makefile,v 1.12 2009/01/04 21:41:16 jasper Exp $

SHARED_ONLY=	Yes

COMMENT=	Python bindings for glib2 gobject

V=		2.16.0
DISTNAME=	pygobject-${V}
PKGNAME=	py-gobject-${V}
SHARED_LIBS +=  pyglib-2.0       0.0             # .0.0

CATEGORIES=	devel x11

HOMEPAGE=	http://www.pygtk.org/

# LGPLv2.1
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB=	pcre

MASTER_SITES=	${MASTER_SITE_GNOME:=sources/pygobject/${V:R}/}
EXTRACT_SUFX=	.tar.bz2

MODULES=	devel/gettext lang/python
LIB_DEPENDS=	gio-2.0.>=1800.0,glib-2.0.>=1800.0,gmodule-2.0.>=2.1800,gobject-2.0.>=1800.0,gthread-2.0.>=1800.0::devel/glib2

USE_LIBTOOL=	Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV=	PYTHON="${MODPY_BIN}"

REGRESS_DEPENDS=	:${PKGNAME}:${BUILD_PKGPATH}

# The regression tests require a running instance of X.
# You will also need to set the XAUTHORITY environment variable to point 
# to the appropriate .Xauthority file. 
REGRESS_IS_INTERACTIVE= Yes
REGRESS_FLAGS=DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}

.include <bsd.port.mk>
