freebsd-ports/mail/claws-mail/Makefile.claws
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

53 lines
1.4 KiB
Text

CATEGORIES?= mail
MASTER_SITES= http://www.claws-mail.org/download.php?file=releases/
MAINTAINER= portmaster@bsdforge.com
LICENSE= GPLv3
USES+= autoreconf gettext-tools gmake iconv libtool pkgconfig tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} --disable-dbus --disable-static
.include "${.CURDIR}/../claws-mail/Makefile.ver"
.include "${.CURDIR}/../claws-mail/Makefile.claws.plugins"
.for p in ${CLAWS_PLUGINS}
CONFIGURE_ARGS+= --disable-${p}-plugin
.endfor
.if defined(CLAWS_PLUGINS_BUILD)
DISTNAME= claws-mail-${PORTVERSION}
PKGNAMEPREFIX= claws-mail-
BUILD_DEPENDS+= claws-mail>=${PORTVERSION}:mail/claws-mail
RUN_DEPENDS+= claws-mail>=${PORTVERSION}:mail/claws-mail
MASTERDIR= ${.CURDIR}/../claws-mail
DESCR= ${.CURDIR}/pkg-descr
FILESDIR= ${.CURDIR}/files
PLIST= ${NONEXISTENT}
PKGMESSAGE= ${.CURDIR}/pkg-message
CONFIGURE_ARGS+= --disable-nls
. for p in ${CLAWS_PLUGINS_BUILD}
CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S|--disable-${p}-plugin||}
PLIST_FILES+= lib/claws-mail/plugins/${p:S|spam_|spam|}.so
. endfor
do-build:
. for p in ${CLAWS_PLUGINS_BUILD}
(cd ${WRKSRC}/src/plugins/${p} && ${MAKE_CMD})
. endfor
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/claws-mail/plugins
. for p in ${CLAWS_PLUGINS_BUILD}
(cd ${WRKSRC}/src/plugins/${p} && \
${INSTALL_LIB} .libs/${p:S|spam_|spam|}.so \
${STAGEDIR}${PREFIX}/lib/claws-mail/plugins)
. endfor
.endif