mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
5005b67362
OPTIONS_DEFINE. This policy has been implemented only recently that's why we have many ports violating this policy. This patch adds the default options specified in the Porter's Handbook to OPTIONS_DEFINE where they are being used. Ports maintained by gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded. Approved by: portmgr (bapt)
43 lines
1000 B
Makefile
43 lines
1000 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= sma
|
|
PORTVERSION= 1.4
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
|
|
MASTER_SITE_SUBDIR= dinoex
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= Program that analyses Sendmail log entries
|
|
|
|
ALL_TARGET= sma
|
|
SAMPLEFILES= sma.conf
|
|
DOCSFILES= BUGS COPYRIGHT HISTORY README TODO
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-configure:
|
|
${REINPLACE_CMD} -e "s,CC =,CC?= ," \
|
|
-e "s,CFLAGS = -Wall -O,CFLAGS+= ," \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sma ${STAGEDIR}${PREFIX}/bin/sma
|
|
${INSTALL_MAN} ${WRKSRC}/sma.8 ${STAGEDIR}${MANPREFIX}/man/man8/
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${DOCSFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
|
|
.endfor
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
.for i in ${SAMPLEFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|