aboutsummaryrefslogtreecommitdiffstats
path: root/mail/claws-mail/Makefile.claws
blob: 9ad662ea94c03a2385b52596e68b90a47c8c0051 (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
54
55
56
57
58
59
60
61
62
CATEGORIES?=	mail
MASTER_SITES=	http://www.claws-mail.org/download.php?file=releases/

MAINTAINER=	portmaster@bsdforge.com

LICENSE=	GPLv3

USES+=		gmake gnome iconv libtool pkgconfig tar:xz
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	${ICONV_CONFIGURE_ARG} --disable-dbus --disable-static

.include "${.CURDIR}/../claws-mail/Makefile.ver"

.if ${MASTER_OPTIONS:MNLS}
USES+=		gettext
CONFIGURE_ARGS+=--enable-nls
.else
CONFIGURE_ARGS+=--disable-nls
.endif

.if ${MASTER_OPTIONS:MGTK2}
USE_GNOME+=	gtk20
.endif
.if ${MASTER_OPTIONS:MGTK3}
USE_GNOME+=	gtk30
.endif

.include "${.CURDIR}/../claws-mail/Makefile.claws.plugins"

.for p in ${CLAWS_PLUGINS}
.  if empty(CLAWS_PLUGINS_BUILD:M${p})
CONFIGURE_ARGS+=	--disable-${p}-plugin
.  endif
.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

DISTINFO_FILE=	${.CURDIR}/../claws-mail/distinfo

.  for p in ${CLAWS_PLUGINS_BUILD}
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} && ${DO_MAKE_BUILD})
.  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