1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/mail/mail2sms/Makefile
Pawel Pekala 6b70eda942 - Fix build with clang [1]
- Switch to PLIST_FILES, PORTDOCS
- Convert to OptionsNG

PR:		ports/172574 [1]
Submitted by:	Boris Samorodov <bsam@FreeBSD.org> [1]
Approved by:	maintainer timeout (21 days)
Feature safe:	yes
2012-10-31 18:11:58 +00:00

43 lines
960 B
Makefile

# Created by: Gerhard Gonter <g.gonter@ieee.org>
# $FreeBSD$
PORTNAME= mail2sms
PORTVERSION= 1.3.5
CATEGORIES= mail
MASTER_SITES= http://www.contactor.se/~dast/stuff/
MAINTAINER= g.gonter@ieee.org
COMMENT= Mail to SMS converter
GNU_CONFIGURE= yes
PLIST_FILES= bin/${PORTNAME}
MAN1= mail2sms.1
MAN5= mail2sms.5
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= README REGEX example.conf
.endif
post-patch:
${CP} ${WRKSRC}/mail2sms.4 ${WRKSRC}/mail2sms.5
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mail2sms.5
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mail2sms ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/${MAN5} ${PREFIX}/man/man5/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>