Author: Ralf Treinen <treinen.debian.org>
Description: make install should hnour $(DESTDIR), and install in OCAMLLLIB
Upstream-bug: https://github.com/OCamlPro-Iguernlala/ocplib-simplex/issues/3

Index: ocplib-simplex/Makefile.in
===================================================================
--- ocplib-simplex.orig/Makefile.in	2016-11-25 07:16:31.462449248 +0100
+++ ocplib-simplex/Makefile.in	2016-11-25 07:18:03.262827029 +0100
@@ -13,11 +13,11 @@
 # (enclosed in the file LGPL).
 
 # where to install the binaries
-# DESTDIR=
+DESTDIR=
 # prefix=@prefix@
 # exec_prefix=@exec_prefix@
 # BINDIR=$(DESTDIR)@bindir@
-# LIBDIR=$(DESTDIR)@libdir@/ocplib-simplex
+LIBDIR=$(DESTDIR)@OCAMLLIB@/
 # DATADIR=$(DESTDIR)@datadir@/ocplib-simplex
 
 # where to install the man page
@@ -112,7 +112,8 @@
 ##############
 
 install: all META
-	ocamlfind install ocplib-simplex src/$(LIBNAME).* src/*.mli META
+	OCAMLFIND_DESTDIR=$(LIBDIR) \
+	  ocamlfind install ocplib-simplex src/$(LIBNAME).* src/*.mli META
 
 
 uninstall:
