- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2016-07-05 09:00:08 +00:00
parent 1998ffd0df
commit 08d922b726
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418068

View file

@ -14,12 +14,15 @@ LICENSE= ISCL
LIB_DEPENDS= libpcre.so:devel/pcre \ LIB_DEPENDS= libpcre.so:devel/pcre \
libtdb.so:databases/tdb libtdb.so:databases/tdb
USES= ssl
HAS_CONFIGURE= yes
MAKE_ARGS= -DPCRE -DDB INSTALLBIN="${INSTALL_PROGRAM}"
PLIST_FILES= bin/fdm man/man1/fdm.1.gz man/man5/fdm.conf.5.gz PLIST_FILES= bin/fdm man/man1/fdm.1.gz man/man5/fdm.conf.5.gz
PORTDOCS= CHANGES README MANUAL PORTDOCS= CHANGES README MANUAL
PORTEXAMPLES= n-marriott.conf f-terbeck.conf t-ulmer.conf w-maier.conf g-lando.conf PORTEXAMPLES= n-marriott.conf f-terbeck.conf t-ulmer.conf w-maier.conf g-lando.conf
MAKE_ARGS= -DPCRE -DDB INSTALLBIN="${INSTALL_PROGRAM}"
USE_OPENSSL= yes OPTIONS_DEFINE= DOCS EXAMPLES
HAS_CONFIGURE= yes
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/*.[ch15] @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/*.[ch15]
@ -27,10 +30,12 @@ post-patch:
s|-I-||g; s|-g bin -o root||g; s|^FDEBUG|#&|;\ s|-I-||g; s|-g bin -o root||g; s|^FDEBUG|#&|;\
s|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${MAKEFILE} s|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${MAKEFILE}
post-install: post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} \ ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} \
${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${EXAMPLESDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}