summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-12-04 07:08:54 +0000
committerdinoex <dinoex@FreeBSD.org>2013-12-04 07:08:54 +0000
commit9a93091640e9a87d54b734b015bc116f2af2f601 (patch)
tree4e6b03de04dd6c15dd4cfc0c15020e13c381e871
parent30de0a88d46b082104020bffe704bc787e02d3db (diff)
downloadFreeBSD-ports-9a93091640e9a87d54b734b015bc116f2af2f601.zip
FreeBSD-ports-9a93091640e9a87d54b734b015bc116f2af2f601.tar.gz
- use STAGEDIR
- use OPTIONS_DEFINE
-rw-r--r--mail/sid-milter/Makefile46
1 files changed, 23 insertions, 23 deletions
diff --git a/mail/sid-milter/Makefile b/mail/sid-milter/Makefile
index f044805..ffd8ee5 100644
--- a/mail/sid-milter/Makefile
+++ b/mail/sid-milter/Makefile
@@ -9,16 +9,18 @@ MAINTAINER= dinoex@FreeBSD.org
COMMENT= An sid and spf milter for Sendmail
RESTRICTED= may incorporate intellectual property, possible patent issues
-NO_STAGE= yes
WCONF= ${WRKSRC}/devtools/Site
MAN8= sid-filter.8
DOCSFILES= FEATURES INSTALL KNOWNBUGS LICENSE README README-SenderID \
RELEASE_NOTES rfc4406.txt rfc4407.txt rfc4408.txt
INSTALL_WRKSRC= ${WRKSRC}/sid-filter
-PLIST_FILES= libexec/sid-filter
+PLIST_FILES= libexec/sid-filter man/man8/sid-filter.8.gz
+USE_RC_SUBR= milter-sid
PORTDOCS= ${DOCSFILES}
+SITE+= ${FILESDIR}/site.config.m4
+
.if !defined(BUILDING_INDEX)
IPCCHECK!= ipcrm -q 0 2>&1 || true
.if ${IPCCHECK:Mimplemented}
@@ -26,14 +28,11 @@ IGNORE= your system does not support sysvipc
.endif
.endif
-SITE+= ${FILESDIR}/site.config.m4
-.if defined(WITH_SIDMILTER_AR)
-MAN3= ar.3
-PLIST_FILES+= include/libar.h lib/libar.a
-.endif
-USE_RC_SUBR= milter-sid
+OPTIONS_DEFINE= LIBAR NH_MFROM
+LIBAR_DESC= build and install libar
+NH_MFROM_DESC= use NH_MFROM
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
@@ -41,6 +40,11 @@ USE_RC_SUBR= milter-sid
SITE+= ${FILESDIR}/site.config.m4.milter
.endif
+.if ${PORT_OPTIONS:MLIBAR}
+MAN3= ar.3
+PLIST_FILES+= include/libar.h lib/libar.a man/man3/ar.3.gz
+.endif
+
pre-configure:
${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
-e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
@@ -50,7 +54,7 @@ pre-configure:
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
${SITE} > ${WCONF}/site.config.m4
-.if defined(WITH_NH_MFROM)
+.if ${PORT_OPTIONS:MNH_MFROM}
${ECHO_CMD} \
'APPENDDEF(`confENVDEF'\'', `-D_FFR_NH_MFROM'\'')' \
>> ${WCONF}/site.config.m4
@@ -58,22 +62,18 @@ pre-configure:
post-install:
.for i in ${MAN8}
- @${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
- ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8/
+ ${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${MANPREFIX}/man/man8/
.endfor
-.if defined(WITH_SIDMILTER_AR)
- @(cd ${WRKSRC}/libar && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+.if ${PORT_OPTIONS:MLIBAR}
+ ${INSTALL_LIB} ${WRKSRC}/*/libar/libar.a ${STAGEDIR}${PREFIX}/lib/libar.a
+ ${INSTALL_DATA} ${WRKSRC}/libar/ar.h ${STAGEDIR}${PREFIX}/include/libar.h
.for i in ${MAN3}
- @${RM} -f ${MANPREFIX}/man/cat3/${i} ${MANPREFIX}/man/cat3/${i}.gz
- ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man3/
+ ${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${MANPREFIX}/man/man3/
.endfor
- ${INSTALL_DATA} ${WRKSRC}/libar/ar.h ${PREFIX}/include/libar.h
.endif
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for i in ${DOCSFILES}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
-.endfor
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOCSFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud