Files
jca 3ee2ffb332 xmlto now runs at build time, so add docbook-xsl and bash rdeps
Not 100% certain this is correct/sufficient but it helped my build
going; probably needs double checking.

bash missing dep spotted by ajacoutot@
2024-10-25 18:02:00 +00:00

55 lines
1.2 KiB
Makefile

COMMENT= front-end for converting XML files to various formats
DISTNAME= xmlto-0.0.29
EXTRACT_SUFX= .tar.bz2
CATEGORIES= textproc
HOMEPAGE= https://pagure.io/xmlto
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += c
SITES= https://releases.pagure.org/xmlto/
RUN_DEPENDS= misc/gnugetopt \
print/libpaper \
shells/bash \
textproc/docbook-xsl \
www/lynx
BUILD_DEPENDS= misc/gnugetopt \
shells/bash \
textproc/docbook-xsl
CONFIGURE_STYLE=autoreconf
AUTOCONF_VERSION=2.71
AUTOMAKE_VERSION=1.16
USE_GMAKE= Yes
CONFIGURE_ARGS= --with-webbrowser=lynx
# so that we do not need more BUILD_DEPENDS
CONFIGURE_ENV= BASH=${LOCALBASE}/bin/bash \
DBLATEX=${LOCALBASE}/bin/dblatex \
FIND=/usr/bin/find \
GETOPT=${LOCALBASE}/bin/gnugetopt \
GREP=/usr/bin/grep \
LINKS=${LOCALBASE}/bin/links \
LYNX=${LOCALBASE}/bin/lynx \
PAPER_CONF=${LOCALBASE}/bin/paperconf \
PDFXMLTEX=${LOCALBASE}/bin/pdfxmltex \
TAIL=/usr/bin/tail \
XMLLINT=${LOCALBASE}/bin/xmllint \
XMLTEX=${LOCALBASE}/bin/xmltex \
XSLTPROC=${LOCALBASE}/bin/xsltproc \
W3M=${LOCALBASE}/bin/w3m \
ZIP_PATH=${LOCALBASE}/bin/zip
pre-configure:
sed -i 's,/bin/bash,${LOCALBASE}/bin/bash,g' \
${WRKSRC}/xmlif/test/run-test
.include <bsd.port.mk>