File:  [cvs.NetBSD.org] / pkgsrc / textproc / pxp / Attic / Makefile
Revision 1.19: download - view: text, annotated - select for diffs
Fri Sep 8 09:51:26 2017 UTC (7 years, 3 months ago) by jaapb
Branches: MAIN
CVS tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, HEAD
Recursive revbump associated with update of ocaml to 4.05

# $NetBSD: Makefile,v 1.19 2017/09/08 09:51:26 jaapb Exp $
#

DISTNAME=		pxp-1.2.8
PKGREVISION=		3
CATEGORIES=		textproc
MASTER_SITES=		http://download.camlcity.org/download/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://projects.camlcity.org/projects/pxp.html
COMMENT=		Polymorphic XML parser, a validating XML-1.0 parser (OCaml)
LICENSE=		mit

USE_TOOLS+=		gmake
HAS_CONFIGURE=		yes
CONFIGURE_ARGS=		-with-lex -with-wlex -lexlist utf8,iso88591
INSTALL_ENV=		OCAMLFIND_INSTALL_ARGS="install -destdir ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}"
BUILD_TARGET=		all

MAKE_JOBS_SAFE=		no

SUBST_CLASSES+=		ocamlfind
SUBST_STAGE.ocamlfind=	do-configure
SUBST_FILES.ocamlfind=			\
	src/pxp/Makefile		\
	src/pxp-engine/Makefile		\
	gensrc/pxp-lex-iso88591/Makefile	\
	gensrc/pxp-lex-utf8/Makefile	\
	gensrc/pxp-wlex/Makefile
SUBST_SED.ocamlfind=	-e 's|\($$(OCAMLFIND)\) install|\1 $$(OCAMLFIND_INSTALL_ARGS)|'

INSTALLATION_DIRS=	${OCAML_SITELIBDIR}/pxp
OCAML_USE_FINDLIB=	yes

.include "../../mk/bsd.prefs.mk"
.include "../../mk/ocaml.mk"

.if (${OCAML_USE_OPT_COMPILER} == "yes")
BUILD_TARGET+=	opt
.endif

.include "../../lang/camlp4/buildlink3.mk"
.include "../../net/ocamlnet/buildlink3.mk"
.include "../../devel/pcre-ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>