summaryrefslogtreecommitdiff
path: root/lang/ocamlduce
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-30 19:36:35 +0000
committerjoerg <joerg>2010-01-30 19:36:35 +0000
commitb32af57a37156780e617cf703d46b52b02fea834 (patch)
treec08c32b7ddca1922b1c37aa6962da6077b795d02 /lang/ocamlduce
parent40e0d402f3750339710d06f1fb20dc8565265ea3 (diff)
downloadpkgsrc-b32af57a37156780e617cf703d46b52b02fea834.tar.gz
DESTDIR support
Diffstat (limited to 'lang/ocamlduce')
-rw-r--r--lang/ocamlduce/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/ocamlduce/Makefile b/lang/ocamlduce/Makefile
index ac6deba5e48..f0a6efed505 100644
--- a/lang/ocamlduce/Makefile
+++ b/lang/ocamlduce/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/09/07 21:53:30 tonio Exp $
+# $NetBSD: Makefile,v 1.6 2010/01/30 19:36:35 joerg Exp $
#
DISTNAME= ocamlduce-3.11.1.0
@@ -15,6 +15,8 @@ MAINTAINER= jaapb@kerguelen.org
HOMEPAGE= http://ocamlduce.ocamlcore.org/
COMMENT= Library to integrate XML features into OCaml
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
USE_TOOLS+= gmake
@@ -22,7 +24,9 @@ BUILD_TARGET= all
INSTALL_TARGET= installbyte
MAKE_JOBS_SAFE= no
-MAKE_ENV= BINDIR=${PREFIX}/bin LIBDIR=${PREFIX}/lib/ocaml/site-lib
+MAKE_ENV+= BINDIR=${PREFIX}/bin LIBDIR=${PREFIX}/lib/ocaml/site-lib
+INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin \
+ LIBDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib
PLIST_SRC= PLIST
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \