summaryrefslogtreecommitdiff
path: root/devel/ocaml-ppx_optcomp/patches/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ocaml-ppx_optcomp/patches/patch-Makefile')
-rw-r--r--devel/ocaml-ppx_optcomp/patches/patch-Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/ocaml-ppx_optcomp/patches/patch-Makefile b/devel/ocaml-ppx_optcomp/patches/patch-Makefile
new file mode 100644
index 00000000000..61dff115130
--- /dev/null
+++ b/devel/ocaml-ppx_optcomp/patches/patch-Makefile
@@ -0,0 +1,23 @@
+$NetBSD: patch-Makefile,v 1.1 2016/06/25 14:47:54 jaapb Exp $
+
+Install in correct location
+--- Makefile.orig 2016-03-22 14:13:51.000000000 +0000
++++ Makefile
+@@ -2,7 +2,7 @@
+
+ SETUP := setup.exe
+ NAME := ppx_optcomp
+-PREFIX = $(shell grep ^prefix= setup.data | cut -d\" -f 2)
++#PREFIX = $(shell grep ^prefix= setup.data | cut -d\" -f 2)
+
+ # Default rule
+ default: build
+@@ -30,7 +30,7 @@ $(NAME).install: js-utils/gen_install.ml
+ ocaml -I js-utils js-utils/gen_install.ml
+
+ install: $(NAME).install
+- opam-installer -i --prefix $(PREFIX) $(NAME).install
++ opam-installer -i --prefix ${DESTDIR}$(PREFIX) --libdir ${OCAML_SITELIBDIR} $(NAME).install
+
+ uninstall: $(NAME).install
+ opam-installer -u --prefix $(PREFIX) $(NAME).install