diff options
Diffstat (limited to 'editors/gedit-plugins/Makefile')
-rw-r--r-- | editors/gedit-plugins/Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/editors/gedit-plugins/Makefile b/editors/gedit-plugins/Makefile new file mode 100644 index 000000000..4fe24a0b4 --- /dev/null +++ b/editors/gedit-plugins/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: gedit-plugins +# Date created: 19 September 2003 +# Whom: Adam Weinberger <adamw@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gedit-plugins +PORTVERSION= 2.31.3 +CATEGORIES= editors gnome +MASTER_SITES= GNOME +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Plugins for GEdit 2 + +BUILD_DEPENDS= gedit:${PORTSDIR}/editors/gedit \ + gucharmap:${PORTSDIR}/deskutils/gucharmap +RUN_DEPENDS= gedit:${PORTSDIR}/editors/gedit \ + gucharmap:${PORTSDIR}/deskutils/gucharmap + +USE_LDCONFIG= yes +USE_BZIP2= yes +USE_GMAKE= yes +USE_GETTEXT= yes +USE_AUTOTOOLS= libtool:22 +USE_GNOME= gnomehack gnomeprefix intlhack gtk30 gconf2 gtksourceview2 +WANT_GNOME= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +GLIB_SCHEMAS= org.gnome.gedit.drawspaces.gschema.xml + +OPTIONS= PYTHON "Build plugins that depend on python" off + +.if defined(PACKAGE_BUILDING) +.undef WITHOUT_GNOME +WITH_GNOME= yes +.endif + +.include <bsd.port.pre.mk> + +.if ${HAVE_GNOME:Mpygtksourceview}!="" && ${ARCH}!="sparc64" || defined(WITH_PYTHON) +USE_PYTHON= yes +.include "${PORTSDIR}/Mk/bsd.python.mk" +USE_GNOME+= pygtksourceview +BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte \ + ${PYTHON_SITELIBDIR}/gtksourceview2.so:${PORTSDIR}/x11-toolkits/py-gtksourceview +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte \ + ${PYTHON_SITELIBDIR}/gtksourceview2.so:${PORTSDIR}/x11-toolkits/py-gtksourceview +CONFIGURE_ARGS+=--enable-python +PLIST_SUB+= PYTHON="" +.else +CONFIGURE_ARGS+=--disable-python +PLIST_SUB+= PYTHON="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e 's| \\t\\r\\n\\f|[:space:]|g' \ + ${WRKSRC}/configure + +pre-install: + @${INSTALL_DATA} ${WRKSRC}/plugins/drawspaces/org.gnome.gedit.drawspaces.gschema.xml \ + ${PREFIX}/share/glib-2.0/schemas/ + +.include <bsd.port.post.mk> |