Changeset View
Changeset View
Standalone View
Standalone View
devel/geany-plugins/Makefile
# Created by: Aldis Berjoza <aldis@bsdroot.lv> | # Created by: Aldis Berjoza <aldis@bsdroot.lv> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= geany-plugins | PORTNAME= geany-plugins | ||||
PORTVERSION= ${GEANY_VER} | PORTVERSION= ${GEANY_VER} | ||||
PORTREVISION= 1 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
DISTFILES= # none | DISTFILES= # none | ||||
MAINTAINER= madpilot@FreeBSD.org | MAINTAINER= madpilot@FreeBSD.org | ||||
COMMENT= Geany plugins (meta port) | COMMENT= Geany plugins (meta port) | ||||
FLAVORS= gtk3 gtk2 | |||||
FLAVOR?= ${FLAVORS:[1]} | |||||
gtk2_CONFLICTS_INSTALL= geany-plugins | |||||
gtk2_PKGNAMESUFFIX= -gtk2 | |||||
gtk3_CONFLICTS_INSTALL= geany-plugins-gtk2 | |||||
USES= metaport | USES= metaport | ||||
OPTIONS_DEFINE= NLS ${GEANY_PLUGINS_ALL:tu} | OPTIONS_DEFINE= NLS ${GEANY_PLUGINS:tu} | ||||
OPTIONS_DEFAULT= ${GEANY_PLUGINS_ALL:tu} | OPTIONS_DEFAULT= ${GEANY_PLUGINS:tu} | ||||
NO_OPTIONS_SORT= yes | NO_OPTIONS_SORT= yes | ||||
.include "${.CURDIR}/files/bsd.geany-plugins.mk" | .include "${.CURDIR}/files/bsd.geany-plugins.mk" | ||||
.for plugin in ${GEANY_PLUGINS_ALL} | .if ${FLAVOR} == gtk2 | ||||
GEANY_PLUGINS= ${GEANY_PLUGINS_ALL} ${GEANY_PLUGINS_GTK2} | |||||
.elif ${FLAVOR} == gtk3 | |||||
GEANY_PLUGINS= ${GEANY_PLUGINS_ALL} | |||||
.endif | |||||
.for plugin in ${GEANY_PLUGINS} | |||||
${plugin:tu}_DESC= ${${plugin}_DESC} | ${plugin:tu}_DESC= ${${plugin}_DESC} | ||||
${plugin:tu}_RUN_DEPENDS= geany-plugin-${plugin}>=0:devel/geany-plugin-${plugin} | ${plugin:tu}_RUN_DEPENDS= geany-plugin-${plugin}${PKGNAMESUFFIX}>=0:devel/geany-plugin-${plugin}@${FLAVOR} | ||||
.endfor | .endfor | ||||
NLS_RUN_DEPENDS= geany-plugins-l10n${PKGNAMESUFFIX}>=0:devel/geany-plugins-l10n@${FLAVOR} | |||||
NLS_RUN_DEPENDS= geany-plugins-l10n>=0:devel/geany-plugins-l10n | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |