1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/mail/esmtp/Makefile
Tijl Coosemans 2b827e1a01 mail/libesmtp:
- Convert to USES=libtool and bump dependent ports
- Use option helpers
- Remove PTHREAD_CFLAGS and PTHREAD_LIBS
- Add INSTALL_TARGET=install-strip
2014-08-17 16:08:20 +00:00

53 lines
1.3 KiB
Makefile

# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$
PORTNAME= esmtp
PORTVERSION= 1.2
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Relay-only Mail Transfer Agent with sendmail compatible syntax
LICENSE= GPLv2
LIB_DEPENDS= libesmtp.so:${PORTSDIR}/mail/libesmtp
USES= tar:bzip2 bison
USE_OPENSSL= yes
GNU_CONFIGURE= yes
PORTDOCS= README
PLIST_FILES= bin/esmtp etc/esmtprc.sample man/man1/esmtp.1.gz \
man/man5/esmtprc.5.gz
SUB_FILES= pkg-message
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
OPTIONS_DEFINE= DOCS
post-patch:
.for file in ${PORTNAME}.1
@${REINPLACE_CMD} -e \
's|^/etc|${PREFIX}/etc|g' ${WRKSRC}/${file}
.endfor
.for file in esmtprc.5 sample.esmtprc
@${REINPLACE_CMD} -e \
's|/usr/bin/|${LOCALBASE}/bin/|g ; \
s|/usr/lib/|/usr/libexec/|g' ${WRKSRC}/${file}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/esmtprc.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
${INSTALL_DATA} ${WRKSRC}/sample.esmtprc \
${STAGEDIR}${PREFIX}/etc/esmtprc.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>