diff options
author | mandree <mandree@FreeBSD.org> | 2013-01-06 21:01:45 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2013-01-06 21:01:45 +0800 |
commit | 2953e6d9b80d532699307e9ac0d378c19e85da45 (patch) | |
tree | cb11ce572d9d74b0b1e20010b5350b9781923109 /textproc | |
parent | 05542554ae872b59c429455c6a663c186c026c17 (diff) | |
download | freebsd-ports-gnome-2953e6d9b80d532699307e9ac0d378c19e85da45.tar.gz freebsd-ports-gnome-2953e6d9b80d532699307e9ac0d378c19e85da45.tar.zst freebsd-ports-gnome-2953e6d9b80d532699307e9ac0d378c19e85da45.zip |
Convert to Options NG
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/xmlto/Makefile | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/textproc/xmlto/Makefile b/textproc/xmlto/Makefile index 165b846bb0b4..67f525ab3b01 100644 --- a/textproc/xmlto/Makefile +++ b/textproc/xmlto/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: xmlto -# Date created: 2003-06-05 -# Whom: Sergei Kolobov <sergei@kolobov.com> -# +# Created by: Sergei Kolobov <sergei@kolobov.com> # $FreeBSD$ -# PORTNAME= xmlto PORTVERSION= 0.0.25 @@ -25,9 +21,10 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} MAKE_JOBS_UNSAFE= yes -OPTIONS= DBLATEX "Add dependency on Dblatex" OFF \ - FOP "Add dependency on FOP (needs Java)" OFF \ - PASSIVETEX "Add dependency on PassiveTeX" OFF +OPTIONS_DEFINE= DBLATEX FOP PASSIVETEX +DBLATEX_DESCR= Add dependency on Dblatex +FOP_DESCR= Add dependency on FOP (needs Java) +PASSIVETEX_DESCR= Add dependency on PassiveTeX USE_BZIP2= yes GNU_CONFIGURE= yes @@ -46,29 +43,29 @@ PORTDOCS= AUTHORS COPYING ChangeLog NEWS THANKS .include <bsd.port.pre.mk> -.if defined(WITH_PASSIVETEX) +.if ${PORT_OPTIONS:MPASSIVETEX} BUILD_DEPENDS+= ${LOCALBASE}/share/texmf-local/tex/passivetex/fotex.sty:${PORTSDIR}/print/passivetex .endif -.if defined(WITH_FOP) +.if ${PORT_OPTIONS:MFOP} RUN_DEPENDS+= fop>=0.90:${PORTSDIR}/textproc/fop CONFIGURE_ARGS+= --with-backend=fop .endif -.if defined(WITH_DBLATEX) +.if ${PORT_OPTIONS:MDBLATEX} RUN_DEPENDS+= ${LOCALBASE}/bin/dblatex:${PORTSDIR}/textproc/dblatex -.if !defined(WITH_FOP) +.if ! ${PORT_OPTIONS:MFOP} CONFIGURE_ARGS+= --with-backend=dblatex .endif .endif post-patch: - # get rid of nonstandard "type" option -t: + @# get rid of nonstandard "type" option -t: cd ${WRKSRC} && ${FIND} . -type f -exec ${REINPLACE_CMD} -i '' -e 's/type -t/which/;' '{}' '+' - # get rid of GNU-make-ism (BSD make defines $< only in suffix rules) + @# get rid of GNU-make-ism (BSD make defines $< only in suffix rules) ${REINPLACE_CMD} -e '/^GEN_MANPAGE/{s/\$$</$$>/;}' ${WRKSRC}/Makefile.in -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} |