09e627a363
Thanks to Gustau Pérez <gustau.perez@gmail.com> for helping to keep thes ports updated. Obtained from: GNOME dev repo
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
# $FreeBSD$
|
|
# $MCom: ports/trunk/graphics/eog-plugins/Makefile 20061 2014-11-10 21:57:05Z gusi $
|
|
|
|
PORTNAME= eog-plugins
|
|
PORTVERSION= 3.14.2
|
|
CATEGORIES= graphics gnome
|
|
MASTER_SITES= GNOME
|
|
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:${PORTSDIR}/devel/libgdata \
|
|
libexif.so:${PORTSDIR}/graphics/libexif \
|
|
libpeas-1.0.so:${PORTSDIR}/devel/libpeas
|
|
RUN_DEPENDS= eog:${PORTSDIR}/graphics/eog
|
|
|
|
USE_GNOME= gnomeprefix intlhack gtk30
|
|
USES= gettext gmake libtool pathfix pkgconfig tar:xz
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
INSTALL_TARGET= install-strip
|
|
|
|
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 ${PORT_OPTIONS:MCHAMPLAIN}
|
|
USE_GL= gl
|
|
LIB_DEPENDS+= libchamplain-0.12.so:${PORTSDIR}/graphics/libchamplain
|
|
PLIST_SUB+= CHAMPLAIN=""
|
|
.else
|
|
PLIST_SUB+= CHAMPLAIN="@comment "
|
|
.endif
|
|
|
|
PLIST_SUB+= PYVER=${PYTHON_VER:S|.||}
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
CONFIGURE_ARGS+=--enable-python
|
|
USES+= python:3
|
|
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-gtk|disabled-champlain-gtk|g' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} '/^DEFAULT_PLUGINS=/,/^$$/ s/map//' \
|
|
${WRKSRC}/configure
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|