aboutsummaryrefslogtreecommitdiff
path: root/mail/claws-mail/Makefile.claws
blob: 7acbd951335ee5d238fa5f5723fdeb5c005e2a46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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