aboutsummaryrefslogtreecommitdiff
path: root/mail/fdm/Makefile
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-06-27 09:14:49 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-06-27 09:14:49 +0000
commit748bb316c97b0f27a84e9aa58432dd42fe903e09 (patch)
tree50d2f1a830f35d52ffcb7e41f0192cda7adebc0d /mail/fdm/Makefile
parentc3adcca61fc92cbc9feb524acfec0c8677d7d81b (diff)
downloadports-748bb316c97b0f27a84e9aa58432dd42fe903e09.tar.gz
ports-748bb316c97b0f27a84e9aa58432dd42fe903e09.zip
Notes
Diffstat (limited to 'mail/fdm/Makefile')
-rw-r--r--mail/fdm/Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/mail/fdm/Makefile b/mail/fdm/Makefile
index b2096a2d89c0..e3ccf658ed2d 100644
--- a/mail/fdm/Makefile
+++ b/mail/fdm/Makefile
@@ -6,33 +6,36 @@
#
PORTNAME= fdm
-PORTVERSION= 1.1
+PORTVERSION= 1.2
CATEGORIES= mail
MASTER_SITES= SFE
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Fetches and delivers mail
-PLIST_FILES= bin/fdm etc/fdm.conf.sample ${CFGEXAMPLES:S|^|%%EXAMPLESDIR%%/|:S|$|.conf|}
-PLIST_DIRS= %%EXAMPLESDIR%%
-PORTDOCS= CHANGES README MANUAL
-CFGEXAMPLES= n-marriott f-terbeck t-ulmer w-maier
+LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
-CFLAGS= -I/usr/include/openssl
+PLIST_FILES= bin/fdm
+PORTDOCS= CHANGES README MANUAL
+PORTEXAMPLES= n-marriott.conf f-terbeck.conf t-ulmer.conf w-maier.conf
+MAKE_ARGS= -DPCRE
MAN1= fdm.1
MAN5= fdm.conf.5
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/*.[ch15]
+ @${REINPLACE_CMD} -e 's|/usr/local/include/openssl|/usr/include/openssl|;\
+ s|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${MAKEFILE}
post-install:
+.ifndef NOPORTEXAMPLES
@${INSTALL} -d ${EXAMPLESDIR}/
- @${INSTALL_DATA} ${CFGEXAMPLES:S|^|${WRKSRC}/examples/|:S|$|.conf|} ${EXAMPLESDIR}/
- @${LN} -sf ${EXAMPLESDIR}/n-marriott.conf ${PREFIX}/etc/fdm.conf.sample
+ @${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} ${EXAMPLESDIR}/
+.endif
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
- @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}/
.endif
.include <bsd.port.mk>