# $FreeBSD: head/devel/geany-plugins/files/Makefile.common 412346 2016-04-01 14:00:51Z mat $ .include "${.CURDIR}/../../devel/geany-plugins/files/bsd.geany-plugins.mk" MASTER_SITES= http://plugins.geany.org/geany-plugins/ DISTNAME= geany-plugins-${PORTVERSION} DISTINFO_FILE= ${.CURDIR}/../../devel/geany-plugins/distinfo BUILD_DEPENDS+= ${LOCALBASE}/bin/geany:devel/geany RUN_DEPENDS+= ${LOCALBASE}/bin/geany:devel/geany GNU_CONFIGURE= yes USES+= gettext-tools gmake libtool pkgconfig tar:bzip2 USE_GNOME+= gtk20 intltool # geany-plugins-l10n is not a plugin, thus special treatment .if ${PORTNAME} == "geany-plugins-l10n" GEANY_PLUGIN= po po_SWITCH= --enable-nls CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib .else INSTALL_TARGET= install-strip .endif GEANY_PLUGIN?= ${PORTNAME:S,geany-plugin-,,} ${GEANY_PLUGIN}_DIR?= ${GEANY_PLUGIN} ${GEANY_PLUGIN}_SWITCH?= --enable-${${GEANY_PLUGIN}_DIR} CONFIGURE_ARGS+= ${${GEANY_PLUGIN}_SWITCH} .if defined(VERBOSE_BUILD) || defined(PACKAGE_BUILDING) CONFIGURE_ARGS+= --disable-silent-rules .endif BUILD_WRKSRC= ${WRKSRC}/${${GEANY_PLUGIN}_DIR} INSTALL_WRKSRC= ${BUILD_WRKSRC} DATADIR= share/geany-plugins DOCSDIR= share/doc/geany-plugins post-configure: ${FIND} ${BUILD_WRKSRC} -name Makefile | ${XARGS} \ ${REINPLACE_CMD} -e '/^geanypluginsdir/s,${LOCALBASE},${PREFIX},'