1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/mail/nbsmtp/Makefile
2023-02-14 14:02:16 +01:00

33 lines
842 B
Makefile

PORTNAME= nbsmtp
PORTVERSION= 1.00
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Simple program for outgoing SMTP delivery
LICENSE= GPLv2
USES= cpe ssl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-ssl --enable-ipv6
CPPFLAGS+= -I${OPENSSLINC}
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
PLIST_FILES= bin/nbsmtp man/man5/nbsmtprc.5.gz man/man8/nbsmtp.8.gz
post-patch:
${REINPLACE_CMD} -e 's@\(-o nbsmtp\)@$$(LDFLAGS) \1@g' \
${WRKSRC}/Makefile.in
${REINPLACE_CMD} -E '/NULL/s,\(char\) ?,,' \
${WRKSRC}/main.c ${WRKSRC}/original.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/nbsmtprc.5 ${STAGEDIR}${MANPREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/nbsmtp.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>