diff options
author | Glen Barber <gjb@FreeBSD.org> | 2013-01-05 00:41:31 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2013-01-05 00:41:31 +0000 |
commit | 4f1b8839e309709aceb8f2a22da40060fbc6ba9b (patch) | |
tree | d0fa446f9d297f530b8d49df7057f34bd9e39c07 /textproc/docproj | |
parent | e022e92dd64d63f93502283d34b238e317597034 (diff) | |
download | ports-4f1b8839e309709aceb8f2a22da40060fbc6ba9b.tar.gz ports-4f1b8839e309709aceb8f2a22da40060fbc6ba9b.zip |
Notes
Diffstat (limited to 'textproc/docproj')
-rw-r--r-- | textproc/docproj/Makefile | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/textproc/docproj/Makefile b/textproc/docproj/Makefile index 9701baccea42..e158a295df05 100644 --- a/textproc/docproj/Makefile +++ b/textproc/docproj/Makefile @@ -1,13 +1,10 @@ -# New ports collection makefile for: docproj -# Date created: 27 June 1998 -# Whom: Nik Clayton <nik@freebsd.org> -# +# Created by: Nik Clayton <nik@freebsd.org> # $FreeBSD$ # PORTNAME= docproj PORTVERSION= 1.17 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= textproc MASTER_SITES= # empty DISTFILES= # empty @@ -29,7 +26,6 @@ RUN_DEPENDS= fixrtf:${PORTSDIR}/textproc/fixrtf \ tidy:${PORTSDIR}/www/tidy-lib \ xsltproc:${PORTSDIR}/textproc/libxslt \ peps:${PORTSDIR}/graphics/peps \ - svn:${PORTSDIR}/devel/subversion \ ${LOCALBASE}/share/sgml/docbook/dsssl/modular:${PORTSDIR}/textproc/dsssl-docbook-modular \ ${LOCALBASE}/share/sgml/html/catalog:${PORTSDIR}/textproc/html \ ${LOCALBASE}/share/sgml/linuxdoc:${PORTSDIR}/textproc/linuxdoc \ @@ -41,36 +37,41 @@ RUN_DEPENDS= fixrtf:${PORTSDIR}/textproc/fixrtf \ ${LOCALBASE}/share/xml/xmlcharent/catalog:${PORTSDIR}/textproc/xmlcharent \ p5-XML-Parser>=2.41:${PORTSDIR}/textproc/p5-XML-Parser +OPTIONS_DEFINE= JADETEX OPENJADE CJK SVN +JADETEX_DESC= Support building additional document formats (PDF) +OPENJADE_DESC= Install textproc/openjade instead of textproc/jade +CJK_DESC= CJK (Simplified Chinese Language) support +SVN_DESC= Subversion support (required to check out sources) +OPTIONS_DEFAULT= OPENJADE CJK SVN + +.if !defined(WITHOUT_JADETEX) || defined(PACKAGE_BUILDING) +OPTIONS_DEFAULT+= JADETEX +.endif + +.include <bsd.port.options.mk> + .include <bsd.port.pre.mk> -.if defined(WITH_OPENJADE) || ${ARCH} != "i386" +.if ${PORT_OPTIONS:MOPENJADE} || ${ARCH} != "i386" RUN_DEPENDS+= openjade:${PORTSDIR}/textproc/openjade \ onsgmls:${PORTSDIR}/textproc/opensp .else RUN_DEPENDS+= jade:${PORTSDIR}/textproc/jade .endif -.if defined(JADETEX) -WITH_JADETEX= ${JADETEX} +.if ${PORT_OPTIONS:MSVN} +RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion .endif -WITH_JADETEX?= -.if defined(PACKAGE_BUILDING) -WITH_JADETEX= yes -.endif - -.if empty(WITH_JADETEX) -IGNORE= user must set WITH_JADETEX variable to 'yes' or 'no' -.endif -.if defined(WITH_JADETEX) && ${WITH_JADETEX} == yes +.if ${PORT_OPTIONS:MJADETEX} RUN_DEPENDS+= ${LOCALBASE}/share/texmf/web2c/jadetex.fmt:${PORTSDIR}/print/jadetex RUN_DEPENDS+= dvips:${PORTSDIR}/print/dvipsk-tetex -.if !defined(WITHOUT_CJK) +.if ${PORT_OPTIONS:MCJK} RUN_DEPENDS+= cjktexsty:${PORTSDIR}/chinese/docproj .endif .endif -.if !defined(WITHOUT_CJK) +.if ${PORT_OPTIONS:MCJK} RUN_DEPENDS+= html2text:${PORTSDIR}/textproc/html2text .endif @@ -88,20 +89,12 @@ DEPENDS_ARGS+= BATCH=yes DEPENDS_ARGS+= WITHOUT_X11=${WITHOUT_X11} .endif -message-jadetex: - @${CAT} ${FILESDIR}/JADETEX - @${FALSE} - # generate MINIMALDOCPORTS for src/release/Makefile.inc.docports. # (XXX: incomplete yet) minimaldocports: @${ECHO_CMD} "MINIMALDOCPORTS= \\" @${MAKE} all-depends-list | ${SED} -e 's,^${PORTSDIR}/, ,' -e 's,$$, \\,' -.if empty(WITH_JADETEX) && !make(deinstall) -pre-everything:: message-jadetex -.endif - do-install: # empty .include <bsd.port.post.mk> |