2018-01-21 19:45:27 +01:00
|
|
|
# $NetBSD: Makefile,v 1.32 2018/01/21 18:45:27 roy Exp $
|
2004-12-26 16:57:18 +01:00
|
|
|
|
2015-11-23 01:04:38 +01:00
|
|
|
DISTNAME= xmlto-0.0.28
|
2018-01-21 19:45:27 +01:00
|
|
|
PKGREVISION= 2
|
2011-03-11 10:27:09 +01:00
|
|
|
CATEGORIES= textproc
|
2017-11-01 07:41:23 +01:00
|
|
|
MASTER_SITES= https://releases.pagure.org/xmlto/
|
2011-03-11 10:27:09 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-12-26 16:57:18 +01:00
|
|
|
|
2011-03-11 10:27:09 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-11-01 07:41:23 +01:00
|
|
|
HOMEPAGE= https://pagure.io/xmlto/
|
2011-03-11 10:27:09 +01:00
|
|
|
COMMENT= Tool to help transform XML documents into other formats
|
|
|
|
LICENSE= gnu-gpl-v2
|
2004-12-26 16:57:18 +01:00
|
|
|
|
|
|
|
DEPENDS+= getopt-[0-9]*:../../misc/getopt
|
|
|
|
DEPENDS+= docbook-xsl>=1.67.0nb1:../../textproc/docbook-xsl
|
2005-01-03 14:36:36 +01:00
|
|
|
DEPENDS+= libxml2>=2.6.2:../../textproc/libxml2
|
2004-12-26 16:57:18 +01:00
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= yes
|
2018-01-21 19:45:27 +01:00
|
|
|
USE_TOOLS+= mktemp
|
2004-12-26 16:57:18 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-03-11 10:27:09 +01:00
|
|
|
CONFIGURE_ENV+= GETOPT=${PREFIX}/bin/getopt
|
2018-01-21 19:45:27 +01:00
|
|
|
CONFIGURE_ENV+= BASH=${TOOLS_PATH.sh}
|
2011-03-11 10:27:09 +01:00
|
|
|
CONFIGURE_ENV+= GCP=${TOOLS_PATH.cp}
|
|
|
|
CONFIGURE_ENV+= TAIL=${TOOLS_PATH.tail}
|
2004-12-26 16:57:18 +01:00
|
|
|
|
2015-11-18 10:16:19 +01:00
|
|
|
CPPFLAGS.SunOS+= -D__EXTENSIONS__
|
|
|
|
|
2015-11-20 00:40:59 +01:00
|
|
|
## FIXME: the package should use XML catalog to access transformations from docbook-xsl package
|
|
|
|
SUBST_CLASSES+= fix-paths
|
|
|
|
SUBST_STAGE.fix-paths= post-build
|
|
|
|
SUBST_MESSAGE.fix-paths= Fixing location of XSLTs.
|
|
|
|
SUBST_FILES.fix-paths= format/docbook/*
|
|
|
|
SUBST_SED.fix-paths= -e 's,http://docbook.sourceforge.net/release/xsl/current/,file://${PREFIX}/share/xsl/docbook/,g'
|
|
|
|
|
2011-03-11 10:27:09 +01:00
|
|
|
MAKE_ENV+= SGML_CATALOG_FILES=${PREFIX}/share/xml/catalog
|
2008-11-13 12:15:14 +01:00
|
|
|
REPLACE_BASH+= xmlif/test/run-test
|
|
|
|
TEST_TARGET= check
|
2006-07-22 15:11:28 +02:00
|
|
|
|
|
|
|
INSTALLATION_DIRS= share/xmlto/format/docbook share/xmlto/format/fo
|
2004-12-26 16:57:18 +01:00
|
|
|
|
2005-01-22 23:33:45 +01:00
|
|
|
.include "../../textproc/libxslt/buildlink3.mk"
|
2004-12-26 16:57:18 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|