pkgsrc/devel/js_of_ocaml/patches/patch-Makefile.conf
jaapb 3751d07528 Updated package to latest version, 2.8. Changes include:
* Features/Changes
 ** Compiler: allow dynlink of precompiled javascript file
 ** Compiler: Improve tailcall optimization
 ** Compiler: Improve pretty mode
 ** Compiler: More inlining and static evaluation
 ** Compiler: Better source map support, to leverage resolve_variable_names
   in chrome DevTools
 ** Compiler: preserve as much as possible the initial OCaml variable names
 ** Lib: synchronize with tyxml 4.0.0
 ** Lib: convert string/bigstring to/from typed_array
 ** Lib: add Tyxml_js.Register API.
 ** Lib: Support for Core_kernel and Async_kernel (32bit only).
 ** Lib: Mutation observer.
 ** Runtime: bigstring, caml_int32_bits_of_float, ..
 ** Runtime: better nodejs integration

 * Misc
 ** Support for OCaml 4.03
 ** Toplevel with ppx syntax

 * Bug fixes
 ** Compiler: Fix float printing
 ** Compiler: fix separate compilation
2016-06-20 14:01:42 +00:00

34 lines
1.3 KiB
Text

$NetBSD: patch-Makefile.conf,v 1.5 2016/06/20 14:01:53 jaapb Exp $
Have BINDIR be determined from package Makefile, do not call git
Also determine tyxml and react usage based on options rather than detection
--- Makefile.conf.orig 2016-06-16 15:53:27.000000000 +0000
+++ Makefile.conf
@@ -1,6 +1,6 @@
# Where binaries are installed:
-BINDIR := `dirname \`which ocamlc\``
+#BINDIR := `dirname \`which ocamlc\``
####
@@ -44,8 +44,8 @@ WITH_DERIVING ?= $(shell if [ -f `ocamlf
WITH_GRAPHICS ?= $(shell if [ -f `ocamlfind query graphics 2> /dev/null`/graphics.cmi ]; then echo YES; else echo NO; fi)
-WITH_REACT ?= $(shell if [ -f `ocamlfind query reactiveData 2> /dev/null`/reactiveData.cma ]; then echo YES; else echo NO; fi)
-WITH_TYXML ?= $(shell if [ -f `ocamlfind query tyxml 2> /dev/null`/tyxml_f.cma ]; then echo YES; else echo NO; fi)
+WITH_REACT ?= ${USE_REACT}
+WITH_TYXML ?= ${USE_TYXML}
WITH_ASYNC ?= $(shell if [ -f `ocamlfind query async_kernel 2> /dev/null`/async_kernel.cma ]; then echo YES; else echo NO; fi)
@@ -66,7 +66,7 @@ endif
METAOCAML ?= 0
-VERSION_GIT := $(shell git log -n1 --pretty=format:%h 2> /dev/null)
+#VERSION_GIT := $(shell git log -n1 --pretty=format:%h 2> /dev/null)
%.ml: %.cppo.ml
cppo $< -o $@ -V OCAML:`ocamlc -version`