# $OpenBSD: Makefile,v 1.6 2009/02/15 17:33:52 ajacoutot Exp $

COMMENT=		collection of extensions for Epiphany

GNOME_PROJECT=		epiphany-extensions
GNOME_VERSION=		2.24.3
PKGNAME=		${DISTNAME}p0

CATEGORIES=		www

HOMEPAGE=		http://projects.gnome.org/epiphany/extensions

MAINTAINER=		Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
			Antoine Jacoutot <ajacoutot@openbsd.org>

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=	Yes

MODULES=		lang/python \
			x11/gnome

WANTLIB=	nspr4 pcre plc4 plds4

BUILD_DEPENDS=	:gettext-*:devel/gettext \
		:xulrunner-devel->=1.8.1:devel/xulrunner,-devel \
		::textproc/rarian \
		:epiphany->=2.24.2:www/epiphany \
		:gnome-doc-utils->=0.3.2:x11/gnome/doc-utils
RUN_DEPENDS=	:gettext-*:devel/gettext \
		::textproc/rarian \
		:epiphany->=2.24.2:www/epiphany
LIB_DEPENDS=	xulrunner/gtkembedmoz,xulrunner/mozjs,xulrunner/xpcom:xulrunner->=1.8.1:devel/xulrunner

USE_X11=	Yes

LIBTOOL_FLAGS=	--tag=disable-static

MODGNOME_HELP_FILES=	Yes

FAKE_FLAGS+=	PYTHON="${MODPY_BIN}"

CONFIGURE_STYLE=gnu
CONFIGURE_ARGS=	${CONFIGURE_SHARED} \
		--disable-static \
		--with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/epiphany \
		--with-gecko=xulrunner \
		--disable-schemas-install \
		--disable-scrollkeeper \
		--enable-opensp=no

M=		${GNOME_VERSION:R}
SUBST_VARS=	M

.include <bsd.port.mk>
