freebsd-ports/mail/elmo-devel/Makefile

65 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: elmo
# Date created: 2003-09-27
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= elmo
2004-10-14 17:33:10 +02:00
PORTVERSION= 1.3.2
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
2004-08-08 17:51:46 +02:00
PKGNAMESUFFIX= -devel
MAINTAINER= dhn@FreeBSD.org
COMMENT= Receive, filter, read, compose and send mail at the text console
CONFLICTS= elmo-[0-9]*
GNU_CONFIGURE= yes
USE_ICONV= yes
USE_OPENSSL= yes
USE_PERL5_RUN= yes
2004-08-08 17:51:46 +02:00
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
2004-08-08 17:51:46 +02:00
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
2004-08-08 17:51:46 +02:00
LDFLAGS="${LDFLAGS}"
MAKE_JOBS_SAFE= yes
MAN1= elmo.1 elmoconf.pl.1
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
PLIST_SUB+= NLS=""
USE_GETTEXT= yes
.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:
2004-08-07 17:42:12 +02:00
@${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
2004-08-07 17:42:12 +02:00
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>