1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/mail/enma/Makefile
Dmitry Marakasov 8c57ad0c42 - Switch to USES=libtool, drop .la files
- Strip libraries
- Clarify LICENSE
- Fix GNU_CONFIGURE misuse
2014-08-13 16:14:12 +00:00

74 lines
2.0 KiB
Makefile

# Created by: Hirohisa Yamaguchi <umq@ueo.co.jp>
# $FreeBSD$
PORTNAME= enma
PORTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/ENMA/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Sender authentication milter supporting SPF and Sender ID
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
OPTIONS_DEFINE= LIBBIND
LIBBIND_DESC= Link against dns/libbind instead of dns/ldns
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ssl-incdir=${OPENSSLINC} \
--with-ssl-libdir=${OPENSSLLIB}
USES= gmake libtool perl5
USE_RC_SUBR= milter-enma
USE_LDCONFIG= yes
USE_OPENSSL= yes
USE_PERL5= build
LDFLAGS+= -lssl
MANLANG= "" ja_JP.UTF-8
PORTDOCS= ChangeLog INSTALL LICENSE README
SUB_FILES= milter-enma
OPTIONS_DEFINE= DOCS
.if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT)
CONF_SUB= ${REINPLACE_CMD} -e '/milter\.postfix/s/false/true/' ${WRKSRC}/enma/etc/enma.conf.sample
. if defined(WITH_POSTFIX_CURRENT)
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
. else
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
. endif
.endif
.include <bsd.port.options.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
.if ${PORT_OPTIONS:MLIBBIND}
CONFIGURE_ARGS+= --with-resolver=libbind \
--with-libbind-incdir=${LOCALBASE}/include/bind \
--with-libbind-libdir=${LOCALBASE}/lib
BUILD_DEPENDS+= ${LOCALBASE}/lib/libbind.a:${PORTSDIR}/dns/libbind
.else
CONFIGURE_ARGS+= --with-resolver=ldns
LIB_DEPENDS+= libldns.so:${PORTSDIR}/dns/ldns
.endif
pre-configure:
$$(${CONF_SUB})
post-install:
${INSTALL_DATA} ${WRKSRC}/enma/etc/enma.conf.sample \
${STAGEDIR}${PREFIX}/etc
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
. endfor
.endif
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sidfquery \
${STAGEDIR}${PREFIX}/lib/libsauth.so \
${STAGEDIR}${PREFIX}/libexec/enma
.include <bsd.port.mk>