summaryrefslogtreecommitdiffstats
path: root/graphics/eog-plugins/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/eog-plugins/Makefile')
-rw-r--r--graphics/eog-plugins/Makefile65
1 files changed, 34 insertions, 31 deletions
diff --git a/graphics/eog-plugins/Makefile b/graphics/eog-plugins/Makefile
index c5ff187f9..cc4db53ca 100644
--- a/graphics/eog-plugins/Makefile
+++ b/graphics/eog-plugins/Makefile
@@ -1,63 +1,66 @@
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
-# $MCom: ports/trunk/graphics/eog-plugins/Makefile 18610 2013-06-30 16:33:05Z marcus $
+# $MCom: ports/trunk/graphics/eog-plugins3/Makefile 18610 2013-06-30 16:33:05Z marcus $
PORTNAME= eog-plugins
-PORTVERSION= 2.30.1
-PORTREVISION= 6
+PORTVERSION= 3.6.1
CATEGORIES= graphics gnome
MASTER_SITES= GNOME
-DIST_SUBDIR= gnome2
+DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= Plug-ins for the Eye of GNOME image viewer application
-BUILD_DEPENDS= eog:${PORTSDIR}/graphics/eog
-LIB_DEPENDS= libgdata.so.7:${PORTSDIR}/devel/libgdata06
-RUN_DEPENDS= eog:${PORTSDIR}/graphics/eog
+BUILD_DEPENDS= eog>=3.6.0:${PORTSDIR}/graphics/eog
+LIB_DEPENDS= libgdata.so.13:${PORTSDIR}/devel/libgdata \
+ libexif.so:${PORTSDIR}/graphics/libexif \
+ libpeas-1.0.so:${PORTSDIR}/devel/libpeas
+RUN_DEPENDS= eog>=3.6.0:${PORTSDIR}/graphics/eog
-CONFLICTS= eog-plugins-3.[0-9]*
-
-NO_STAGE= yes
-USE_BZIP2= yes
-USE_GNOME= gnomeprefix intlhack gtk20
-WANT_GNOME= yes
+USE_XZ= yes
+USE_GNOME= gnomeprefix intlhack gtk30
USES= gettext gmake pathfix pkgconfig
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.include <bsd.port.pre.mk>
+GLIB_SCHEMAS= org.gnome.eog.plugins.exif-display.gschema.xml
+
+OPTIONS_DEFINE= CHAMPLAIN PYTHON
+OPTIONS_DEFAULT=CHAMPLAIN PYTHON
+CHAMPLAIN_DESC= Champlain map plugin
+
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_CHAMPLAIN) || \
- (exists(${LOCALBASE}/lib/libchamplain-0.8.so)) || defined(WITH_CHAMPLIAN)
+.if ${PORT_OPTIONS:MCHAMPLAIN}
USE_GL= gl
-LIB_DEPENDS+= champlain-0.8.1:${PORTSDIR}/graphics/libchamplain08
+LIB_DEPENDS+= libchamplain-0.12.so:${PORTSDIR}/graphics/libchamplain
PLIST_SUB+= CHAMPLAIN=""
.else
-PLUST_SUB+= CHAMPLAIN="@comment "
+PLIST_SUB+= CHAMPLAIN="@comment "
.endif
-.if !defined(WITHOUT_EXIF) || (exists(${LOCALBASE}/lib/libexif.so.12) || \
- defined(WITH_EXIF))
-LIB_DEPENDS+= exif.12:${PORTSDIR}/graphics/libexif
-PLIST_SUB+= EXIF=""
-.else
-PLIST_SUB+= EXIF="@comment "
-.endif
-
-.if ${HAVE_GNOME:Mpygnome2}!=""
-USE_GNOME+= pygnome2
+.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS+=--enable-python
+USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
+GLIB_SCHEMAS+= org.gnome.eog.plugins.export-to-folder.gschema.xml \
+ org.gnome.eog.plugins.fullscreenbg.gschema.xml \
+ org.gnome.eog.plugins.pythonconsole.gschema.xml
.else
CONFIGURE_ARGS+=--disable-python
PLIST_SUB+= PYTHON="@comment "
.endif
+.if ! ${PORT_OPTIONS:MCHAMPLAIN}
post-patch:
- @${REINPLACE_CMD} -e 's|champlain-0.4|champlain-0.8|g' \
- -e 's|champlain-gtk-0.4|champlain-gtk-0.8|g' \
+ @${REINPLACE_CMD} -e 's|champlain-gtk|disabled-champlain-gtk|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} '/^DEFAULT_PLUGINS=/,/^$$/ s/map//' \
${WRKSRC}/configure
+.endif
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/eog/plugins/lib*.so
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>