summaryrefslogtreecommitdiff
path: root/www/ocaml-net/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/ocaml-net/files/patch-Makefile')
-rw-r--r--www/ocaml-net/files/patch-Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/ocaml-net/files/patch-Makefile b/www/ocaml-net/files/patch-Makefile
new file mode 100644
index 000000000000..28913053ebe5
--- /dev/null
+++ b/www/ocaml-net/files/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.rules,v 1.1 2012/07/06 09:29:14 wiz Exp $
+
+make package work with DESTDIR support
+--- Makefile.rules.orig 2012-02-29 18:02:51.000000000 +0000
++++ Makefile.rules
+@@ -148,7 +148,8 @@ realuninstall: $(UNINSTOTHER) uninstall-
+ .PHONY: install-findlib
+ install-findlib: META
+ files=`$(COLLECT_FILES) *.mli *.cmi *.cma *.cmxa *.a dll* META $(INSTALL_EXTRA)` && \
+- $(OCAMLFIND) install $(PKGNAME) $$files
++ $(OCAMLFIND) install -destdir $(DESTDIR)/$(PREFIX)/lib/ocaml/site-lib \
++ -ldconf /dev/null $(PKGNAME) $$files
+
+ .PHONY: uninstall-findlib
+ uninstall-findlib: