freebsd-ports/textproc/docbook-utils/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

44 lines
1.2 KiB
Makefile

# Created by: Brian Candler <B.Candler@pobox.com>
# $FreeBSD$
PORTNAME= docbook-utils
PORTVERSION= 0.6.14
PORTREVISION= 13
CATEGORIES= textproc
MASTER_SITES= SOURCEWARE/docbook-tools/new-trials/SOURCES
MAINTAINER= gabor@FreeBSD.org
COMMENT= Generates various output formats from DocBook SGML documents
BUILD_DEPENDS+= docbook-sgml>0:${PORTSDIR}/textproc/docbook-sgml \
dsssl-docbook-modular>0:${PORTSDIR}/textproc/dsssl-docbook-modular \
nsgmls:${PORTSDIR}/textproc/jade
RUN_DEPENDS+= dsssl-docbook-modular>0:${PORTSDIR}/textproc/dsssl-docbook-modular \
nsgmls:${PORTSDIR}/textproc/jade \
sgmlspl:${PORTSDIR}/textproc/p5-SGMLSpm \
lynx:${PORTSDIR}/www/lynx
CONFLICTS= docbook2X-*
USES= perl5 gmake shebangfix
USE_PERL5= run
USE_TEX= jadetex
GNU_CONFIGURE= yes
MAKE_ARGS+= docdir="${DOCSDIR}" htmldir="${DOCSDIR}/html"
SHEBANG_FILES= bin/sgmldiff.in
perl_OLD_CMD= @perl_bindir@/perl
PORTDOCS= *
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} -f ${WRKSRC}/config.cache
.include <bsd.port.mk>