diff options
author | glarkin <glarkin@FreeBSD.org> | 2012-10-10 22:56:43 +0800 |
---|---|---|
committer | glarkin <glarkin@FreeBSD.org> | 2012-10-10 22:56:43 +0800 |
commit | 3bfb67f814c347aed948e028849c50b203dde044 (patch) | |
tree | 3443d9a8fc3f2101d1d9396a5db9dc47157656b3 /devel/cvsbook | |
parent | f1ca8ad7ffdf4d769ed76543df7b01cd82ee890a (diff) | |
download | freebsd-ports-gnome-3bfb67f814c347aed948e028849c50b203dde044.tar.gz freebsd-ports-gnome-3bfb67f814c347aed948e028849c50b203dde044.tar.zst freebsd-ports-gnome-3bfb67f814c347aed948e028849c50b203dde044.zip |
- Converted to OptionsNG
Diffstat (limited to 'devel/cvsbook')
-rw-r--r-- | devel/cvsbook/Makefile | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/devel/cvsbook/Makefile b/devel/cvsbook/Makefile index 6968bc78cc81..6aeb9aa24e16 100644 --- a/devel/cvsbook/Makefile +++ b/devel/cvsbook/Makefile @@ -15,55 +15,63 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-all MAINTAINER= glarkin@FreeBSD.org COMMENT= A tutorial and reference for CVS -OPTIONS= CVSBOOK_INFO "Install the info version" on \ - CVSBOOK_SINGLE_HTML "Install the single-html version" on \ - CVSBOOK_SPLIT_HTML "Install the split-html version" off \ - CVSBOOK_POSTSCRIPT "Install the postscript version" on \ - CVSBOOK_PDF "Install the PDF version" on +OPTIONS_MULTI= CVSBOOK +OPTIONS_MULTI_CVSBOOK= INFO SINGLE_HTML SPLIT_HTML POSTSCRIPT PDF +INFO_DESC= Install the info version +SINGLE_HTML_DESC= Install the single HTML version +SPLIT_HTML_DESC= Install the split HTML version +POSTSCRIPT_DESC= Install the Postscript version +PDF_DESC= Install the PDF version +OPTIONS_DEFAULT= INFO SINGLE_HTML POSTSCRIPT PDF WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_CVSBOOK_SPLIT_HTML) +.if ${PORT_OPTIONS:MSPLIT_HTML} ALL_TARGET= html-distributed .else NO_BUILD= yes .endif -.if !defined(WITHOUT_CVSBOOK_INFO) +.if ${PORT_OPTIONS:MINFO} INFO= cvsbook INFODIR= ${PREFIX}/${INFO_PATH} INSTALL_INFO?= install-info .endif -.if !defined(WITHOUT_CVSBOOK_SINGLE_HTML) + +.if ${PORT_OPTIONS:MSINGLE_HTML} PLIST_FILES+= %%DOCSDIR%%/cvsbook.html WANT_DOCSDIR= yes .endif -.if !defined(WITHOUT_CVSBOOK_POSTSCRIPT) + +.if ${PORT_OPTIONS:MPOSTSCRIPT} PLIST_FILES+= %%DOCSDIR%%/cvsbook.ps WANT_DOCSDIR= yes .endif -.if !defined(WITHOUT_CVSBOOK_PDF) + +.if ${PORT_OPTIONS:MPDF} PLIST_FILES+= %%DOCSDIR%%/cvsbook.pdf WANT_DOCSDIR= yes .endif -.if defined(WITH_CVSBOOK_SPLIT_HTML) + +.if ${PORT_OPTIONS:MSPLIT_HTML} PLIST_DIRS+= %%DOCSDIR%%/cvsbook-shtml WANT_DOCSDIR= yes .endif + .if defined(WANT_DOCSDIR) PLIST_DIRS+= %%DOCSDIR%% .endif -.if defined(WITH_CVSBOOK_SPLIT_HTML) +.if ${PORT_OPTIONS:MSPLIT_HTML} post-patch: - ${REINPLACE_CMD} -e \ + @${REINPLACE_CMD} -e \ '/Non-monolithic HTML not supported/s|@.*|makeinfo --html main.texi|' \ ${WRKSRC}/Makefile .endif -.if defined(WITH_CVSBOOK_SPLIT_HTML) +.if ${PORT_OPTIONS:MSPLIT_HTML} pre-install: PLIST_FILES+= `cd ${WRKSRC}/cvsbook && ${FIND} . -type f| ${CUT} -c2- \ | ${SED} 's|^|${DOCSDIR:S,${PREFIX}/,,}/cvsbook-shtml|' \ @@ -74,22 +82,22 @@ do-install: .if defined(WANT_DOCSDIR) @${MKDIR} ${DOCSDIR} .endif -.if defined(WITH_CVSBOOK_SPLIT_HTML) +.if ${PORT_OPTIONS:MSPLIT_HTML} @${MKDIR} ${DOCSDIR}/cvsbook-shtml @cd ${WRKSRC}/cvsbook && ${INSTALL_DATA} -- *.html ${DOCSDIR}/cvsbook-shtml .endif -.if !defined(WITHOUT_CVSBOOK_SINGLE_HTML) +.if ${PORT_OPTIONS:MSINGLE_HTML} @${INSTALL_DATA} ${WRKSRC}/cvsbook.html ${DOCSDIR} .endif -.if !defined(WITHOUT_CVSBOOK_PDF) +.if ${PORT_OPTIONS:MPDF} @${INSTALL_DATA} ${WRKSRC}/cvsbook.pdf ${DOCSDIR} .endif -.if !defined(WITHOUT_CVSBOOK_POSTSCRIPT) +.if ${PORT_OPTIONS:MPOSTSCRIPT} @${INSTALL_DATA} ${WRKSRC}/cvsbook.ps ${DOCSDIR} .endif -.if !defined(WITHOUT_CVSBOOK_INFO) +.if ${PORT_OPTIONS:MINFO} @${INSTALL_DATA} ${WRKSRC}/cvsbook.info* ${INFODIR} @${INSTALL_INFO} ${INFODIR}/cvsbook.info ${INFODIR}/dir .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |