freebsd-ports/mail/claws-mail-plugins/Makefile
Milan Obuch 2b8ba28871 mail/claws: Rework claws-mail-plugins
Let mail/claws-mail-plugins get PORTVERSION from mail/claws-mail.

There is PORTVERSION defined directly in
mail/claws-mail-plugins/Makefile at present. Create
mail/claws-mail/Makefile.ver to hold this information and use it in both
mail/claws-mail-plugins/Makefile and mail/claws-mail/Makefile.claws
files.

Technically, it is a no change for now, but it makes easier to create
new options for both GTK2 and GTK3 (new one) version of Claws Mail and
act accordingly in all Claws Mail plugin ports.

Approved by:	Chris Hutchinson (maintainer)
PR:		266092
2022-10-06 09:47:22 +02:00

31 lines
749 B
Makefile

PORTNAME= claws-mail-plugins
CATEGORIES= mail news
MAINTAINER= portmaster@BSDforge.com
COMMENT= claws-mail plugins meta-port
WWW= https://www.claws-mail.org/plugins.php
USES= metaport
.include "${.CURDIR}/../claws-mail/Makefile.ver"
.include "${.CURDIR}/../claws-mail/Makefile.claws.plugins"
# pgpcore, pgpinline, pgpmime, smime
CLAWS_PLUGINS+= pgp
.for _addon in ${CLAWS_PLUGINS:O}
. if exists(../claws-mail-${_addon})
OPTIONS_DEFINE+= ${_addon:tu}
${_addon:tu}_DESC!= ${MAKE} -C ../claws-mail-${_addon} -V COMMENT
. endif
.endfor
.include <bsd.port.options.mk>
.for _addon in ${CLAWS_PLUGINS}
. if ${PORT_OPTIONS:M${_addon:tu}} != ""
RUN_DEPENDS+= claws-mail-${_addon}>=0:mail/claws-mail-${_addon}
. endif
.endfor
.include <bsd.port.mk>