pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-Makefile
jaapb 97fbfe544e Updated package to latest version, 113.33.00 and made it compatible with
ocaml 4.03 and the latest framework version. Discussed on packages@ and
OK'd by jperkin.

Changes include:

## 113.33.00+4.03

Various updates to work with OCaml 4.03.0

## 113.33.00

- Install standalone ppx-optcomp program that can be run through `-pp`
2016-06-25 14:47:54 +00:00

23 lines
738 B
Text

$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