aboutsummaryrefslogtreecommitdiff
path: root/mail/fdm
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-24 14:15:06 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-24 14:15:06 +0000
commitea12dedd8a3d238b59c3a179b8eb1f5cea665b6d (patch)
treeff84547a213a86aa288d1e1c7ed5987448ffdaa5 /mail/fdm
parent0cb6d7175119e2fd4e19fc6ec5f7d318d6506f85 (diff)
downloadports-ea12dedd8a3d238b59c3a179b8eb1f5cea665b6d.tar.gz
ports-ea12dedd8a3d238b59c3a179b8eb1f5cea665b6d.zip
Remove the useless and deprecated usage of -I-
This fixes build on current While here: - Trim headers - Convert options
Notes
Notes: svn path=/head/; revision=318972
Diffstat (limited to 'mail/fdm')
-rw-r--r--mail/fdm/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/mail/fdm/Makefile b/mail/fdm/Makefile
index 551086ee3973..fb4a9e360e25 100644
--- a/mail/fdm/Makefile
+++ b/mail/fdm/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: fdm
-# Date created: 25 August 2006
-# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
-#
+# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= fdm
PORTVERSION= 1.6
@@ -25,17 +21,20 @@ MAKE_ARGS= -DPCRE -DDB
MAN1= fdm.1
MAN5= fdm.conf.5
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/*.[ch15]
@${REINPLACE_CMD} -e 's|/usr/local/include/openssl|/usr/include/openssl|;\
+ s|-I-||g;\
s|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${MAKEFILE}
post-install:
-.ifndef NOPORTEXAMPLES
+.if ${PORT_OPTIONS:MEXAMPLES}
@${INSTALL} -d ${EXAMPLESDIR}/
@${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} ${EXAMPLESDIR}/
.endif
-.ifndef NOPORTDOCS
+.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${DOCSDIR}/
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}/
.endif