From 8bdc6b4a3d74e8c0a04fc3590c9d6acaa62c69d6 Mon Sep 17 00:00:00 2001 From: uebayasi Date: Tue, 14 Jun 2011 13:45:41 +0000 Subject: Support user-destdir. --- textproc/pxp/Makefile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'textproc/pxp') diff --git a/textproc/pxp/Makefile b/textproc/pxp/Makefile index 9141ea7f03a..0a649225ae2 100644 --- a/textproc/pxp/Makefile +++ b/textproc/pxp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2009/11/26 18:21:28 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2011/06/14 13:45:41 uebayasi Exp $ # DISTNAME= pxp-1.1.6 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.ocaml-programming.de/packages/ COMMENT= Polymorphic XML parser, a validating XML-1.0 parser (OCaml) +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib DEPENDS+= ocamlnet-[0-9]*:../../net/ocamlnet @@ -16,8 +18,21 @@ USE_TOOLS+= gmake BUILD_TARGET= all opt HAS_CONFIGURE= yes PLIST_SRC= PLIST.opt PLIST +INSTALL_ENV= OCAMLFIND_INSTALL_ARGS="install -destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" MAKE_JOBS_SAFE= no +SUBST_CLASSES+= ocamlfind +SUBST_STAGE.ocamlfind= do-configure +SUBST_FILES.ocamlfind= \ + src/pxp/Makefile \ + src/pxp-engine/Makefile \ + src/pxp-lex-iso88591/Makefile \ + src/pxp-lex-utf8/Makefile \ + src/pxp-wlex/Makefile +SUBST_SED.ocamlfind= -e 's|\($$(OCAMLFIND)\) install|\1 $$(OCAMLFIND_INSTALL_ARGS)|' + +INSTALLATION_DIRS= lib/ocaml/site-lib/pxp + .include "../../lang/ocaml/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3