# $OpenBSD: Makefile,v 1.21 2011/07/26 15:36:26 ajacoutot Exp $

COMMENT=		plugins for EOG

GNOME_PROJECT=		eog-plugins
GNOME_VERSION=		2.30.2
REVISION=		4

CATEGORIES=		graphics

HOMEPAGE=		http://live.gnome.org/EyeOfGnome/Plugins

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

WANTLIB += GL ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp gdata
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 gnutls
WANTLIB += cairo clutter-glx-1.0 clutter-gtk-0.10 dbus-1
WANTLIB += drm exif expat fontconfig freetype gconf-2 gcrypt gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gpg-error gthread-2.0 gtk-x11-2.0 json-glib-1.0 m pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs
WANTLIB += soup-2.4 sqlite3 tasn1 xcb xml2 z gnome-keyring proxy
WANTLIB += soup-gnome-2.4 xcb-render xcb-shm
WANTLIB += champlain-0.8 champlain-gtk-0.8 gmp hogweed nettle

MODULES=		devel/gettext \
			lang/python \
			x11/gnome

LIB_DEPENDS=    	devel/libgdata \
			geo/libchamplain/core>=0.8.0 \
			security/gnutls
BUILD_DEPENDS=		${RUN_DEPENDS}
# Depend on the same x.yy version of eog
RUN_DEPENDS=		x11/gnome/eog>=2.30.0 \
			x11/gnome/py-gnome

MODGCONF2_SCHEMAS_DIR=	eog-plugins
AUTOCONF_VERSION=	2.68
CONFIGURE_STYLE= 	autoconf
CONFIGURE_ARGS+=	--with-plugins=all
CONFIGURE_ENV+=		CPPFLAGS="-I${LOCALBASE}/include" \
			LDFLAGS="-L${LOCALBASE}/lib"

pre-configure:
	perl -pi -e 's,champlain-0.4,champlain-0.8,g;' \
		-e 's,champlain-gtk-0.4,champlain-gtk-0.8,g' \
		${WRKSRC}/configure

.include <bsd.port.mk>
