diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2011-06-14 13:45:41 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2011-06-14 13:45:41 +0000 |
commit | 8bdc6b4a3d74e8c0a04fc3590c9d6acaa62c69d6 (patch) | |
tree | 00d6a81c930e7488fbffd8af30c029a9aaa2de5c /textproc | |
parent | c391899682f40b45045975ba0eb0c96174d15a8d (diff) | |
download | pkgsrc-8bdc6b4a3d74e8c0a04fc3590c9d6acaa62c69d6.tar.gz |
Support user-destdir.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/pxp/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
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" |