summaryrefslogtreecommitdiff
path: root/databases/ocaml-mysql/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-30 18:25:11 +0000
committerjoerg <joerg>2010-01-30 18:25:11 +0000
commit30baeb97235e923db2c4c0780ca4070a23fb7518 (patch)
tree7cd6c9e0f849ea1974317131c733188ef5e60ee4 /databases/ocaml-mysql/patches
parentd512c04e40298e0e0b205d3dba582e9598db4a04 (diff)
downloadpkgsrc-30baeb97235e923db2c4c0780ca4070a23fb7518.tar.gz
DESTDIR support
Diffstat (limited to 'databases/ocaml-mysql/patches')
-rw-r--r--databases/ocaml-mysql/patches/patch-ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/databases/ocaml-mysql/patches/patch-ac b/databases/ocaml-mysql/patches/patch-ac
new file mode 100644
index 00000000000..cc179949929
--- /dev/null
+++ b/databases/ocaml-mysql/patches/patch-ac
@@ -0,0 +1,19 @@
+$NetBSD: patch-ac,v 1.1 2010/01/30 18:25:11 joerg Exp $
+
+--- OCamlMakefile.orig 2010-01-30 18:14:57.000000000 +0000
++++ OCamlMakefile
+@@ -1102,11 +1102,13 @@ subprojs: $(SUBPROJS:%=subproj_%)
+
+ ###########################################################################
+ # (UN)INSTALL RULES FOR LIBRARIES
++INSTALLDIR=`$(OCAMLC) -where`/site-lib
+
+ .PHONY: libinstall
+ libinstall: all
+ $(QUIET)printf "\nInstalling library with ocamlfind\n"
+- $(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(INSTALLDIR)
++ $(OCAMLFIND) install -destdir ${DESTDIR}$(INSTALLDIR) $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
+ $(QUIET)printf "\nInstallation successful.\n"
+
+ .PHONY: libuninstall