freebsd-ports/textproc/docbook-utils/Makefile
Muhammad Moinur Rahman 721e5776c9 Mk/**tex.mk: Convert bsd.tex.mk to USES=tex
- Update all the consumers to use USES=tex
- USE_TEX=yes is the old way of writing USES=tex which has been removed
  and replaced in all ports
- Almost all of the USE_TEX features remains unchanged
- Some consumers had the same variables defined both in the mk
  infrastructure and also in the ports which have been removed from the
  ports as those are redundant.

In case any of the consumers are failing to build please make sure that
the nexessary USES=tex is there. Unlike previous USE_TEX=yes will no
longer load the required VARS for tex and related dependencies.

Reviewed by:	portmgr
Approved by:	portmgr (blanket)
2022-12-19 08:44:58 -06:00

47 lines
1.2 KiB
Makefile

PORTNAME= docbook-utils
PORTVERSION= 0.6.14
PORTREVISION= 13
CATEGORIES= textproc
MASTER_SITES= SOURCEWARE/docbook-tools/new-trials/SOURCES
MAINTAINER= ports@FreeBSD.org
COMMENT= Generates various output formats from DocBook SGML documents
WWW= http://sources.redhat.com/docbook-tools/
BUILD_DEPENDS+= docbook-sgml>0:textproc/docbook-sgml \
dsssl-docbook-modular>0:textproc/dsssl-docbook-modular \
nsgmls:textproc/jade
RUN_DEPENDS+= dsssl-docbook-modular>0:textproc/dsssl-docbook-modular \
nsgmls:textproc/jade \
sgmlspl:textproc/p5-SGMLSpm \
lynx:www/lynx
CONFLICTS= docbook2X linux-j # bin/docbook2man bin/docbook2texi bin/jw
USES= perl5 gmake shebangfix tex
USE_PERL5= run
USE_TEX= jadetex
GNU_CONFIGURE= yes
MAKE_ARGS+= docdir="${DOCSDIR}" htmldir="${DOCSDIR}/html"
NO_ARCH= yes
SHEBANG_FILES= bin/sgmldiff.in
perl_OLD_CMD= @perl_bindir@/perl
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/etc/sgml/catalog|${PREFIX}/share/sgml/catalog|g' \
${WRKSRC}/doc/HTML/Makefile.in
@${REINPLACE_CMD} -e 's|/etc/sgml|${LOCALBASE}/share/sgml|g' \
-e 's|/usr/bin/|${LOCALBASE}/bin/|g' \
${WRKSRC}/doc/refentry/*.sgml \
${WRKSRC}/backends/txt
pre-configure:
${RM} ${WRKSRC}/config.cache
.include <bsd.port.mk>