freebsd-ports/mail/esmtp/Makefile
John Marino 90e3f72974 mail category: Remove $PTHREAD_LIBS
Note: The following ports did not pass check-plist (CP) or stage-qa (QA)
tests.   The sendmail port has many problems, but this was already known
by myself as I fixed it properly on DPorts last week.  It's a forward
action to submit a PR against mail/sendmail.

  * antivirus-milter (CP)
  * dk-milter        (CP)
  * milter-regex     (CP)
  * sendmail         (CP, QA)

approved by:	PTHREAD blanket
2015-03-25 11:41:17 +00:00

52 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
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
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>