summaryrefslogtreecommitdiff
path: root/mail/gmime30/Makefile
blob: 6070f47a3788b85b9d876542535a130b2bdbf06a (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
PORTNAME=	gmime
PORTVERSION=	3.2.7
PORTREVISION=	2
CATEGORIES=	mail
MASTER_SITES=	GNOME
PKGNAMESUFFIX=	30

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Library (written in C) for parsing and creating messages using MIME
WWW=		https://spruce.sourceforge.net/gmime/

LICENSE=	LGPL21

LIB_DEPENDS=	libgpgme.so:security/gpgme \
		libassuan.so:security/libassuan \
		libidn2.so:dns/libidn2 \
		libgpg-error.so:security/libgpg-error

DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}30
USES=		gettext-runtime gmake gnome iconv libtool localbase pathfix \
		pkgconfig tar:xz
USE_GNOME=	glib20 introspection:build
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	VAPI
OPTIONS_DEFAULT=	VAPI
OPTIONS_SUB=	yes
VAPI_USES=		vala:build
VAPI_CONFIGURE_ENABLE=	vala

# www.freebsd.org/cgi/query-pr.cgi?pr=118092
# Rename uudecode and uuencode to gmime-* to not conflict with userland
# fix kept in case issue returns
CONFIGURE_ARGS?= \
		--program-transform-name="s/uuencode/gmime-uuencode/;s/uudecode/gmime-uudecode/;"

post-patch:
	@${REINPLACE_CMD} -e '/^SUBDIRS =/s/tests//' \
		${WRKSRC}/Makefile.in

.include <bsd.port.mk>