aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-01-28 23:16:39 +0800
committerdanfe <danfe@FreeBSD.org>2014-01-28 23:16:39 +0800
commit30f9023462c305a94c4ca054288a2976a27f9f65 (patch)
tree3bf519bc3d94129a33b1f82763b4cd0085002d0b /textproc
parentcf39d0a971d8e401a10f46f141733b4e6bd87539 (diff)
downloadfreebsd-ports-gnome-30f9023462c305a94c4ca054288a2976a27f9f65.tar.gz
freebsd-ports-gnome-30f9023462c305a94c4ca054288a2976a27f9f65.tar.zst
freebsd-ports-gnome-30f9023462c305a94c4ca054288a2976a27f9f65.zip
Remove reference to alpha (long unsupported) and generally cleanup the port.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/docbook-to-man/Makefile46
1 files changed, 13 insertions, 33 deletions
diff --git a/textproc/docbook-to-man/Makefile b/textproc/docbook-to-man/Makefile
index 620dd086f663..5f0045203785 100644
--- a/textproc/docbook-to-man/Makefile
+++ b/textproc/docbook-to-man/Makefile
@@ -11,51 +11,31 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= DocBook SGML DTD into nroff/troff -man macros converter
-# Global variables
-#
-.if defined(WITH_OPENJADE)
-RUN_DEPENDS= onsgmls:${PORTSDIR}/textproc/openjade
-.else
-RUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/jade
-.endif
-RUN_DEPENDS+= ${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook
+RUN_DEPENDS= ${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook
USES= imake
XFREE86_HTML_MAN= no
-.include <bsd.port.pre.mk>
-
-# Local variables
-#
-
# There are two ports that satisfy the nsgmls requirement.
-# Jade is preferred.
+# Jade is preferred, but OpenJade can be selected if needed.
+OPTIONS_DEFINE= OPENJADE
+OPENJADE_DESC= Use OpenJade SGML/XML/DSSSL toolkit instead of Jade
-.if ${ARCH} == "alpha"
-WITH_OPENJADE= yes
-.endif
+.include <bsd.port.options.mk>
-.if defined(WITH_OPENJADE)
+.if ${PORT_OPTIONS:MOPENJADE}
+RUN_DEPENDS+= onsgmls:${PORTSDIR}/textproc/openjade
NSGMLS= onsgmls
.else
+RUN_DEPENDS+= nsgmls:${PORTSDIR}/textproc/jade
NSGMLS= nsgmls
.endif
-# Post extract
-#
-
-post-extract: move-instant.1
-
-move-instant.1:
+post-extract:
@${MV} ${WRKSRC}/Doc/instant.1 ${WRKSRC}/Instant/oinstant.man
-# Post patch
-#
-
-post-patch: patch-docbook-to-man
-
-patch-docbook-to-man:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|;s|%%NSGMLS%%|${NSGMLS}|' \
- ${WRKSRC}/cmd/docbook-to-man.sh
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}| ; \
+ s|%%NSGMLS%%|${NSGMLS}|' ${WRKSRC}/cmd/docbook-to-man.sh
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>