freebsd-ports/devel/geany-plugins/files/Makefile.common
Guido Falsi 4bd337ab28 devel/geany*: Update to 1.38
- Removed flavoring, upstream dropped gtk2 support, so the ports
  are now gtk3 only
- Removed geany-plugin-multiterm that is gtk2 only and cannot work
  with gtk3 only geany
- Use https scheme for main master site
2021-10-10 18:24:18 +02:00

52 lines
1.4 KiB
Text

.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
GNU_CONFIGURE= yes
USES+= gettext-tools gmake gnome libtool pkgconfig tar:bzip2
USE_GNOME+= gtk30 intltool
LIB_DEPENDS+= libgeany.so:devel/geany \
libharfbuzz.so:print/harfbuzz
# geany-plugins-l10n is not a plugin, thus special treatment
.if ${PORTNAME} == "geany-plugins-l10n"
GEANY_PLUGIN= po
po_SWITCH= --enable-nls
USES+= localbase
.else
.if ${PORTNAME} == "geany-plugin-markdown"
# required by this plugin on GCC only archs
USES+= compiler:c++11-lang
.endif
INSTALL_TARGET= install-strip
USE_GNOME+= cairo gdkpixbuf2
.endif
GEANY_PLUGIN?= ${PORTNAME:S,geany-plugin-,,}
${GEANY_PLUGIN}_DIR?= ${GEANY_PLUGIN}
${GEANY_PLUGIN}_SWITCH?= --enable-${${GEANY_PLUGIN}_DIR}
CONFIGURE_ARGS+= ${${GEANY_PLUGIN}_SWITCH}
BUILD_WRKSRC= ${WRKSRC}/${${GEANY_PLUGIN}_DIR}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
DATADIR= share/geany-plugins
DOCSDIR= share/doc/geany-plugins
.if ${GEANY_UTIL:M${GEANY_PLUGIN}}
LIB_DEPENDS+= libgeanypluginutils.so:devel/geany-plugin-utilslib
CONFIGURE_ARGS+= --enable-utilslib
pre-build:
(cd ${WRKSRC}/utils; ${DO_MAKE_BUILD} ${ALL_TARGET})
.endif
post-configure:
${FIND} ${BUILD_WRKSRC} -name Makefile | ${XARGS} \
${REINPLACE_CMD} -e '/^geanypluginsdir/s,${LOCALBASE},${PREFIX},'