$NetBSD: patch-Makefile,v 1.1 2018/06/05 16:02:40 jaapb Exp $

Use proper installation programs and native compilation
--- Makefile.orig	2017-01-16 16:05:43.000000000 +0000
+++ Makefile
@@ -1,4 +1,8 @@
+ifeq (${OPTNESS},native)
+OCAMLC=ocamlfind ocamlopt
+else
 OCAMLC=ocamlfind ocamlc
+endif
 CHECKER=ocsigen-i18n-checker
 REWRITER=ocsigen-i18n-rewriter
 GENERATOR=ocsigen-i18n-generator
@@ -26,7 +30,11 @@ install: ${PROGS}
 ifndef bindir
 	${error bindir is not set}
 else
-	cp ${PROGS} ${bindir}
+ifeq ($(OPTNESS),native)
+	${BSD_INSTALL_PROGRAM} ${PROGS} ${bindir}
+else
+	${BSD_INSTALL_SCRIPT} ${PROGS} ${bindir}
+endif
 endif
 
 uninstall:
