Files
pkgsrc-ng/devel/ocaml-ppx_optcomp/patches/patch-Makefile
2016-11-18 22:39:22 +01:00

24 lines
738 B
Plaintext

$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