mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
8589b1fa03
- Refresh patches Approved by: portmgr (blanket)
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
PORTNAME= mail2sms
|
|
PORTVERSION= 1.3.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://daniel.haxx.se/projects/mail2sms/ \
|
|
http://bitrote.org/distfiles/
|
|
|
|
MAINTAINER= jharris@widomaker.com
|
|
COMMENT= Mail to SMS converter
|
|
WWW= https://daniel.haxx.se/projects/mail2sms/
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/LEGAL
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_FILES= bin/mail2sms man/man1/mail2sms.1.gz man/man5/mail2sms.5.gz
|
|
PORTDOCS= README REGEX example.conf
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
|
|
CFLAGS+= -Wno-error=int-conversion
|
|
.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 ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/mail2sms.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/mail2sms.5 ${STAGEDIR}${PREFIX}/man/man5
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|