33e3d901d4
modular xorg. - supply corresponding USE_XORG for all imake-using ports that need it - USE_IMAKE no longer implies USE_XLIB in absence of USE_XORG - retire USE_X_PREFIX which is not really used anywhere after the above change - a few minor nits like whitespace and SF macro Tested by: 2 tinderbox runs by pav Approved by: portmgr (pav)
67 lines
1.3 KiB
Makefile
67 lines
1.3 KiB
Makefile
# New ports collection makefile for: gnupg-devel
|
|
# Date created: 5 Oct 2001
|
|
# Whom: Cyrille Lefevre <clefevre@citeweb.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= docbook-to-man
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www.oasis-open.org/docbook/tools/dtm/
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A 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
|
|
|
|
USE_IMAKE= yes
|
|
XFREE86_HTML_MAN= no
|
|
|
|
MAN1= oinstant.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Local variables
|
|
#
|
|
|
|
# There are two ports that satisfy the nsgmls requirement.
|
|
# Jade is preferred.
|
|
|
|
.if ${ARCH} == "alpha"
|
|
WITH_OPENJADE= yes
|
|
.endif
|
|
|
|
.if defined(WITH_OPENJADE)
|
|
NSGMLS= onsgmls
|
|
.else
|
|
NSGMLS= nsgmls
|
|
.endif
|
|
|
|
# Post extract
|
|
#
|
|
|
|
post-extract: move-instant.1
|
|
|
|
move-instant.1:
|
|
@${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
|
|
|
|
.include <bsd.port.post.mk>
|