aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sylpheed/Makefile
blob: a49a79b03fd515066228fa6215a7af194fe89167 (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
63
64
65
66
67
# New ports collection makefile for:    sylpheed
# Date created:                 15 June 2000
# Whom:                         shigeri <shigeri@m10.alpha-net.ne.jp>
#
# $FreeBSD$
#

PORTNAME=   sylpheed
PORTVERSION=    0.6.4
CATEGORIES= mail ipv6
MASTER_SITES=   http://sylpheed.good-day.net/sylpheed/

MAINTAINER= lehmann@ans-netz.de

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_AUTOMAKE=   yes
USE_X_PREFIX=   yes
USE_IMLIB=  yes
USE_LIBTOOL=    yes

CONFIGURE_SCRIPT=   autogen.sh
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-compface --disable-gdk-pixbuf --enable-ipv6 --prefix=${PREFIX} --with-included-gettext

.if defined(WITH_GPGME)
LIB_DEPENDS+=   gpgme.4:${PORTSDIR}/security/gpgme
RUN_DEPENDS+=   gpg:${PORTSDIR}/security/gnupg
CONFIGURE_ARGS+=--enable-gpgme
.endif
.if !defined(WITHOUT_SSL)
USE_OPENSSL=    yes
CONFIGURE_ARGS+=--enable-ssl
.endif

PORTDOCS=   ChangeLog INSTALL README TODO

pre-extract:
.if defined(WITH_GPGME)
    @${ECHO_MSG}
    @${ECHO_MSG} "WARNING: GnuPG support using GPGME is still experimental."
.else
    @${ECHO_MSG}
    @${ECHO_MSG} "You can enable GnuPG support using GPGME by defining WITH_GPGME."
    @${ECHO_MSG} "WARNING: GnuPG support is still experimental."
.endif
.if !defined(WITHOUT_SSL)
    @${ECHO_MSG}
    @${ECHO_MSG} "You can disable OpenSSL support by defining WITHOUT_SSL."
.endif
    @${ECHO_MSG}

pre-configure:
    ${PERL} -pi -e "s|AM_PROG_INSTALL|AC_PROG_INSTALL|g" ${WRKSRC}/aclocal.m4
    ${RM} -f ${WRKSRC}/ac/gpgme.m4

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/sylpheed
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/sylpheed
    ${INSTALL_DATA} ${WRKSRC}/${i}.jp ${PREFIX}/share/doc/sylpheed
.endfor
.endif

.include <bsd.port.mk>