summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authoruebayasi <uebayasi>2011-06-14 13:45:41 +0000
committeruebayasi <uebayasi>2011-06-14 13:45:41 +0000
commita64cf3fd3f7de344cdb77dafd7b10c967e399ce4 (patch)
tree00d6a81c930e7488fbffd8af30c029a9aaa2de5c /textproc
parent9f5572be0040ae02661ca3b4d587b5d4ba293160 (diff)
downloadpkgsrc-a64cf3fd3f7de344cdb77dafd7b10c967e399ce4.tar.gz
Support user-destdir.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/pxp/Makefile17
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"