freebsd-ports/mail/elmo/Makefile
Marcus von Appen a3a0715f38 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here

Reviewed by:	zeising
2013-04-27 11:59:28 +00:00

58 lines
1.3 KiB
Makefile

# Created by: trevor
# $FreeBSD$
PORTNAME= elmo
PORTVERSION= 1.3.0
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= dhn@FreeBSD.org
COMMENT= Receive, filter, read, compose, and send mail at the text console
CONFLICTS= elmo-devel-[0-9]*
GNU_CONFIGURE= yes
USES= iconv
USE_OPENSSL= yes
USE_PERL5_RUN= yes
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_SAFE= yes
MAN1= elmo.1 elmoconf.pl.1
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
PLIST_SUB+= NLS=""
USES+= gettext
.endif
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libgpgme.so) || defined(WITH_GPGME)
LIB_DEPENDS+= gpgme.19:${PORTSDIR}/security/gpgme
.else
pre-everything::
@${ECHO_CMD}
@${ECHO_CMD} "Define WITH_GPGME=yes to build with gpgme support."
@${ECHO_CMD}
.endif
post-patch:
@${REINPLACE_CMD} -e "s|/usr/bin/env perl|${PERL} -w|" \
${WRKSRC}/src/elmoconf.pl
@${REINPLACE_CMD} -e 's|gpgme4|gpgme|g' -e 's|== "|= "|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|gpgme4|gpgme|g' ${WRKSRC}/src/pgp.c
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>