freebsd-ports/graphics/eog-plugins/Makefile
Ruslan Makhmatkhanov 307093f543 Let gnome3 stack be built with python 3.5
This mostly fixing packaging for python3.5, but there is
also py35 waf fix for py3-cairo, that was obtained from Ubuntu
repository.

PR:		204075
Approved by:	maintainer timeout (22 days)
2015-11-18 22:13:53 +00:00

76 lines
1.9 KiB
Makefile

# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
PORTNAME= eog-plugins
PORTVERSION= 3.16.1
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
PORTSCOUT= limitw:1,even
USE_GNOME= intltool 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}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}libpeas>=0:${PORTSDIR}/devel/py3-libpeas
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.pre.mk>
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION}
.include <bsd.port.post.mk>