[Pkg-ocaml-maint-commits] [SCM] ocamlviz packaging branch, ocamlbuild, updated. upstream/1.01-9-ga90f660

Mehdi Dogguy mehdi at debian.org
Thu Mar 25 23:43:53 UTC 2010


The following commit has been merged in the ocamlbuild branch:
commit 8e365f488a9ef5bf112442e4f4deaca01c17f774
Author: Mehdi Dogguy <mehdi at debian.org>
Date:   Fri Mar 26 00:37:29 2010 +0100

    Add some options in Makefile.in

diff --git a/Makefile.in b/Makefile.in
index 2fe05b0..fc226c4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -21,11 +21,23 @@ BINDIR=@bindir@
 MANDIR=@mandir@
 
 NAME = ocamlviz
+VERSION = $(shell head -n 1 VERSION)
 OCAMLBUILD = ocamlbuild
 OCAMLFIND = ocamlfind
 HAVE_OCAMLOPT ?= $(if $(wildcard /usr/bin/ocamlopt),yes,no)
 OCAMLBEST ?= $(if $(OCAML_OPT_ARCH),native,byte)
 
+# Use classic-display when compiling under a terminal which does not
+# support ANSI sequence:
+ifeq ($(TERM),dumb)
+OCAMLBUILD += -classic-display
+endif
+
+# Avoid compilation of native plugin if ocamlopt is not available
+ifneq ($(OCAMLBEST),native)
+OCAMLBUILD += -byte-plugin
+endif
+
 all:
 byte:
 opt:

-- 
ocamlviz packaging



More information about the Pkg-ocaml-maint-commits mailing list