pkgsrc/www/ocsigen-i18n/patches/patch-Makefile
jaapb af8c4fb522 Updated www/ocsigen-i18n to version 3.5.0.
This adds a dependency on ppx_tools.
2020-04-21 13:02:02 +00:00

28 lines
637 B
Text

$NetBSD: patch-Makefile,v 1.2 2020/04/21 13:02:02 jaapb Exp $
Allow for bytecode or native compilation
--- Makefile.orig 2019-11-15 16:18:31.000000000 +0000
+++ Makefile
@@ -1,4 +1,8 @@
+ifeq (${OPTNESS},native)
OCAMLOPT=ocamlfind ocamlopt
+else
+OCAMLOPT=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: