mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 00:20:40 -04:00
- Added new "workbench" plugin - Added utilslib special plugin to install an extra library and some code to handle the dependency in the common Makefile - Update project home pages to use https (thanks to amdmi3) - Projectorganizer plugin dropped custom icons, using stock ones now
51 lines
1.4 KiB
Text
51 lines
1.4 KiB
Text
# $FreeBSD$
|
|
|
|
.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
|
|
LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/geany:devel/geany
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES+= gettext-tools gmake libtool pkgconfig tar:bzip2
|
|
USE_GNOME+= cairo gdkpixbuf2 gtk20 intltool
|
|
|
|
# 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
|
|
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}
|
|
|
|
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},'
|