aboutsummaryrefslogtreecommitdiffstats
path: root/mail/libetpan/Makefile
blob: 06b287b21859ea192e1462cac5f815acf73a3782 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   libetpan
PORTVERSION=    1.9.1
CATEGORIES= mail ipv6

MAINTAINER= ports@FreeBSD.org
COMMENT=    Mail framework for C language

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYRIGHT

LIB_DEPENDS=    libcurl.so:ftp/curl \
        libexpat.so:textproc/expat2 \
        libsasl2.so:security/cyrus-sasl2

GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip

USES=       autoreconf gmake iconv libtool localbase
USE_LDCONFIG=   yes
USE_GITHUB= yes
GH_ACCOUNT= dinhviethoa

PORTDOCS=   AUTHORS ChangeLog NEWS

OPTIONS_DEFINE=     DOCS IPV6
OPTIONS_SINGLE=     CRYPTO
OPTIONS_SINGLE_CRYPTO=  GNUTLS OPENSSL
OPTIONS_DEFAULT=    OPENSSL

GNUTLS_CONFIGURE_ON=    --without-openssl --with-gnutls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls \
            libgcrypt.so:security/libgcrypt \
            libgpg-error.so:security/libgpg-error

IPV6_CONFIGURE_ENABLE=  ipv6

OPENSSL_CONFIGURE_WITH= openssl="${OPENSSLBASE}"
OPENSSL_USES=       ssl

pre-configure:
    @(cd ${WRKSRC} && ${LN} -s README.md README)

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>