Lines 2-47
Link Here
|
2 |
# $FreeBSD: head/mail/elmo/Makefile 412348 2016-04-01 14:17:44Z mat $ |
2 |
# $FreeBSD: head/mail/elmo/Makefile 412348 2016-04-01 14:17:44Z mat $ |
3 |
|
3 |
|
4 |
PORTNAME= elmo |
4 |
PORTNAME= elmo |
5 |
PORTVERSION= 1.3.0 |
5 |
PORTVERSION= 1.3.2 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= mail |
6 |
CATEGORIES= mail |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= Receive, filter, read, compose, and send mail at the text console |
10 |
COMMENT= Receive, filter, read, compose, and send mail at the text console |
12 |
|
11 |
|
13 |
CONFLICTS= elmo-devel-[0-9]* |
12 |
LICENSE= GPLv2 |
14 |
|
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
OPTIONS_DEFINE= NLS |
|
|
16 |
|
14 |
|
17 |
GNU_CONFIGURE= yes |
15 |
USES= iconv ncurses perl5 shebangfix |
18 |
USES= iconv ncurses shebangfix perl5 |
16 |
SHEBANG_FILES= src/elmoconf.pl |
19 |
USE_OPENSSL= yes |
17 |
USE_OPENSSL= yes |
20 |
USE_PERL5= run |
18 |
USE_PERL5= run |
21 |
SHEBANG_FILES= src/elmoconf.pl |
19 |
GNU_CONFIGURE= yes |
22 |
|
|
|
23 |
LICENSE= GPLv2 |
24 |
LICENSE_FILE= ${WRKSRC}/COPYING |
25 |
|
20 |
|
26 |
CPPFLAGS+= -I${LOCALBASE}/include |
21 |
CPPFLAGS+= -I${LOCALBASE}/include |
27 |
LDFLAGS+= -L${LOCALBASE}/lib |
22 |
LDFLAGS+= -L${LOCALBASE}/lib |
28 |
|
23 |
|
|
|
24 |
OPTIONS_DEFINE= GPGME NLS |
25 |
OPTIONS_SUB= yes |
26 |
|
27 |
CONFLICTS= elmo-devel-[0-9]* |
28 |
|
29 |
GPGME_DESC= GnuPG support using GPGME |
30 |
GPGME_LIB_DEPENDS= libgpgme.so:security/gpgme |
31 |
GPGME_CONFIGURE_ENV_OFF=ac_cv_header_gpgme_h=no |
32 |
NLS_USES= gettext |
29 |
NLS_CONFIGURE_ON= --with-libintl-prefix="${LOCALBASE}" |
33 |
NLS_CONFIGURE_ON= --with-libintl-prefix="${LOCALBASE}" |
30 |
NLS_CONFIGURE_OFF= --disable-nls |
34 |
NLS_CONFIGURE_OFF= --disable-nls |
31 |
NLS_USES= gettext |
|
|
32 |
OPTIONS_SUB= yes |
33 |
|
34 |
.if exists(${LOCALBASE}/lib/libgpgme.so) || defined(WITH_GPGME) |
35 |
LIB_DEPENDS+= libgpgme.so:security/gpgme |
36 |
.else |
37 |
pre-everything:: |
38 |
@${ECHO_CMD} |
39 |
@${ECHO_CMD} "Define WITH_GPGME=yes to build with gpgme support." |
40 |
@${ECHO_CMD} |
41 |
.endif |
42 |
|
35 |
|
43 |
post-patch: |
36 |
post-patch: |
44 |
@${REINPLACE_CMD} -e 's|gpgme4|gpgme|g' -e 's|== "|= "|g' ${WRKSRC}/configure |
37 |
@${REINPLACE_CMD} -e \ |
45 |
@${REINPLACE_CMD} -e 's|gpgme4|gpgme|g' ${WRKSRC}/src/pgp.c |
38 |
'/if test/s|==|=|' ${WRKSRC}/configure |
|
|
39 |
@${REINPLACE_CMD} -e \ |
40 |
'/^use warnings;/d' ${WRKSRC}/src/elmoconf.pl |
41 |
@${REINPLACE_CMD} -e \ |
42 |
'/define gettext/s|const char|char|' ${WRKSRC}/src/gettext.h |
46 |
|
43 |
|
47 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |