Commits

camlspotter committed 3f8e1cf

update

Comments (0)

Files changed (26)

 \.config$
 .*\.cm[a-z]+$
 .*~$
+\.apt-installed$
 \.(sp[io]t|annot|o|cm[a-z]+|orig|omc|lock)$
 \.omakedb$
 _build/
-# Those must be symlinked from omy/
-include omy/OMyMakefile
-include omy/OMyExternal
-include omy/OMyTar
-include omy/OMyApt
-
-WithOMyApt=true
-
-RequireAptPackages(emacs23 mercurial)
-
-# Remove findlib, since we build it in the directory.
-OCAML_PREINSTALLED_PACKS[]= bigarray camlp4 dbm dynlink graphics num num-top stdlib str threads unix
-# add llvm
-OCAML_PREINSTALLED_PACKS[] += llvm
-
-Subdirs()
+Subdirs_except(bin-prot llvm)

OMakeroot

-########################################################################
-# Permission is hereby granted, free of charge, to any person
-# obtaining a copy of this file, to deal in the File without
-# restriction, including without limitation the rights to use,
-# copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the File, and to permit persons to whom the
-# File is furnished to do so, subject to the following condition:
-#
-# THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE FILE OR
-# THE USE OR OTHER DEALINGS IN THE FILE.
-
-########################################################################
-# The standard OMakeroot file.
-# You will not normally need to modify this file.
-# By default, your changes should be placed in the
-# OMakefile in this directory.
-#
-# If you decide to modify this file, note that it uses exactly
-# the same syntax as the OMakefile.
-#
-
-#
-# Include the standard installed configuration files.
-# Any of these can be deleted if you are not using them,
-# but you probably want to keep the Common file.
-#
-open build/C
-open build/OCaml
-open build/LaTeX
-
-#
-# The command-line variables are defined *after* the
-# standard configuration has been loaded.
-#
-DefineCommandVars()
-
-#
-# Include the OMakefile in this directory.
-#
-.SUBDIRS: .

bin-prot/OMakefile

+PACK=bin_prot
+URL=http://hg.ocaml.info/release/bin-prot/archive/release-1.2.23.tar.bz2
+# EXTRACT_DIR=bin-prot-release-1.2.23
+REQUIRED_PACKS=$(INSTALLED)/type-conv
+INSTALL=(cd $(EXTRACT_DIR); make all install)
+OCamlExternalPack(bin_prot)

camlidl/OMakefile

+URL=http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/camlidl-1.05.tar.gz
+REQUIRED_PACKS=
+CONFIGURE=(cp ../../Makefile.config camlidl-1.05/config/Makefile)
+INSTALL=(cd camlidl-1.05; make; make install)
+OBJS=$(PREFIX)/bin/camlidl
+
+OCamlExternal(camlidl)

external/OMakefile

-Subdirs_except(bin-prot llvm)

external/bin-prot/OMakefile

-PACK=bin_prot
-URL=http://hg.ocaml.info/release/bin-prot/archive/release-1.2.23.tar.bz2
-# EXTRACT_DIR=bin-prot-release-1.2.23
-REQUIRED_PACKS=$(INSTALLED)/type-conv
-INSTALL=(cd $(EXTRACT_DIR); make all install)
-OCamlExternalPack(bin_prot)

external/camlidl/Makefile.config

-#***********************************************************************
-#*                                                                     *
-#*                              CamlIDL                                *
-#*                                                                     *
-#*            Xavier Leroy, projet Cristal, INRIA Rocquencourt         *
-#*                                                                     *
-#*  Copyright 1999 Institut National de Recherche en Informatique et   *
-#*  en Automatique.  All rights reserved.  This file is distributed    *
-#*  under the terms of the GNU Library General Public License.         *
-#*                                                                     *
-#***********************************************************************
-
-#* $Id: Makefile.unix,v 1.4 2002/04/22 11:50:46 xleroy Exp $
-
-## Configuration section
-
-# Type of system -- do not change
-OSTYPE=unix
-
-# How to invoke the C preprocessor
-# Works on most Unix systems:
-# CPP=/lib/cpp
-# Alternatives:
-CPP=cpp
-# CPP=/usr/ccs/lib/cpp
-# CPP=gcc -x c -E
-
-# How to invoke ranlib (only relevant for Unix)
-RANLIB=ranlib
-# If ranlib is not needed:
-#RANLIB=:
-
-# Location of the Objective Caml library in your installation
-OCAMLLIB=$(PREFIX)/lib/ocaml
-
-# Where to install the binaries
-BINDIR=$(PREFIX)/bin
-
-# The Objective Caml compilers (the defaults below should be OK)
-OCAMLC=ocamlc -g
-OCAMLOPT=ocamlopt
-OCAMLYACC=ocamlyacc -v
-OCAMLLEX=ocamllex
-OCAMLDEP=ocamldep
-
-# Extra flags to pass to the C compiler
-CFLAGS=-Wall -g
-
-# Suffixes for executables and libraries (do not change)
-EXE=
-LIBEXT=a
-OBJEXT=o

external/camlidl/OMakefile

-URL=http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/camlidl-1.05.tar.gz
-REQUIRED_PACKS=
-CONFIGURE=(cp ../../Makefile.config camlidl-1.05/config/Makefile)
-INSTALL=(cd camlidl-1.05; make; make install)
-OBJS=$(PREFIX)/bin/camlidl
-
-OCamlExternal(camlidl)

external/findlib/OMakefile

-RequireAptPackages(m4 libncurses5-dev)
-URL=http://download.camlcity.org/download/findlib-1.2.1.tar.gz
-REQUIRED_PACKS=
-CONFIGURE=(cd findlib-1.2.1; ./configure -bindir $(PREFIX)/bin -mandir $(PREFIX)/man -sitelib $(PREFIX)/lib/ocaml/site-lib -config $(PREFIX)/etc/findlib.conf)
-INSTALL=(cd findlib-1.2.1; make; make install)
-OBJS=$(PREFIX)/bin/ocamlfind
-
-OCamlExternal(findlib)

external/lablgtk2/OMakefile

-RequireAptPackages(libgtk2.0-dev)
-URL=http://www.math.nagoya-u.ac.jp/~garrigue/soft/olabl/dist/lablgtk-2.14.2.tar.gz
-EXTRACT_DIR=lablgtk-2.14.2
-REQUIRED_PACKS=
-INSTALL=(cd $(EXTRACT_DIR); ./configure --prefix=$(PREFIX) && make all opt install && ocamlfind install lablgtk2 META)
-OCamlExternalPack(lablgtk2)

external/llvm/CONFIGURE.sh

-#!/bin/sh
-
-# OCaml related things are installed to a tmp dir
-OCAML_TMP_INSTALL=`pwd`/../ocaml-libdir
-./configure --prefix=$PREFIX --enable-shared --with-ocaml-libdir=$OCAML_TMP_INSTALL

external/llvm/INSTALL.sh

-#!/bin/sh
-
-set -e
-
-# OCaml related things are installed to a tmp dir
-OCAML_TMP_INSTALL=`pwd`/../ocaml-libdir
-
-if [ ! -e $OCAML_TMP_INSTALL ]; then
-    mkdir $OCAML_TMP_INSTALL
-fi
-
-# Build
-OCAML_ANNOT=1 make
-make install
-
-# libLLVM*.a C++ libs are copied to $PREFIX/lib. We do not need it in OCaml installation
-find $OCAML_TMP_INSTALL -type l | xargs rm
-
-# Copy ocamlspot spit file
-cp `find bindings/ocaml/ -iname *.spit` $OCAML_TMP_INSTALL
-
-# Build META file
-FLAGS=`llvm-config --libs --ldflags`
-OCAML_FLAGS=`for i in $FLAGS; do echo -n "-cclib $i "; done` 
-
-cat << EOF > $OCAML_TMP_INSTALL/META
-requires = ""
-version = "llvm 2.8"
-description = "LLVM 2.8 OCaml binding"
-browse_interfaces = " Llvm Llvm_analysis Llvm_bitreader Llvm_bitwriter Llvm_executionengine Llvm_scalar_opts Llvm_target "
-archive(byte) = "llvm.cma llvm_analysis.cma llvm_executionengine.cma llvm_bitreader.cma llvm_bitwriter.cma llvm_scalar_opts.cma llvm_target.cma"
-archive(native) = "llvm.cmxa llvm_analysis.cmxa llvm_executionengine.cmxa llvm_bitreader.cmxa llvm_bitwriter.cmxa llvm_scalar_opts.cmxa llvm_target.cmxa"
-linkopts = "-cc g++ $OCAML_FLAGS"
-EOF
-
-# Install the all files
-ocamlfind remove llvm
-ocamlfind install llvm $OCAML_TMP_INSTALL/*

external/llvm/OMakefile

-URL=http://llvm.org/releases/2.8/llvm-2.8.tgz
-REQUIRED_PACKS=
-CONFIGURE=(cd llvm-2.8; ../../../CONFIGURE.sh)
-INSTALL=(cd llvm-2.8; ../../../INSTALL.sh)
-
-OCamlExternalPack(llvm)

external/pcre-ocaml/OMakefile

-RequireAptPackages(libpcre3-dev)
-URL=http://hg.ocaml.info/release/pcre-ocaml/archive/release-6.1.0.tar.bz2
-EXTRACT_DIR=pcre-ocaml-release-6.1.0
-REQUIRED_PACKS=
-INSTALL=(cd $(EXTRACT_DIR); make all install)
-OCamlExternalPack(pcre)

external/sexplib/OMakefile

-URL=http://hg.ocaml.info/release/sexplib310/archive/release-5.1.1.tar.bz2
-EXTRACT_DIR=sexplib310-release-5.1.1
-REQUIRED_PACKS=$(Installed type-conv)
-INSTALL=(cd $(EXTRACT_DIR); make all install)
-OCamlExternalPack(sexplib)

external/type-conv/OMakefile

-URL=http://hg.ocaml.info/release/type-conv/archive/release-1.7.1.tar.bz2
-REQUIRED_PACKS=
-INSTALL=(cd type-conv-release-1.7.1; make all install)
-OCamlExternalPack(type-conv)

findlib/OMakefile

+RequireAptPackages(m4 libncurses5-dev)
+URL=http://download.camlcity.org/download/findlib-1.2.6.tar.gz
+REQUIRED_PACKS=
+CONFIGURE=(cd findlib-1.2.6; ./configure -bindir $(PREFIX)/bin -mandir $(PREFIX)/man -sitelib $(PREFIX)/lib/ocaml/site-lib -config $(PREFIX)/etc/findlib.conf)
+INSTALL=(cd findlib-1.2.6; make; make install)
+OBJS=$(PREFIX)/bin/ocamlfind $(PREFIX)/lib/ocaml/site-lib/findlib/META 
+OCamlExternal(findlib)

lablgtk2/OMakefile

+RequireAptPackages(libgtk2.0-dev)
+URL=http://www.math.nagoya-u.ac.jp/~garrigue/soft/olabl/dist/lablgtk-2.14.2.tar.gz
+EXTRACT_DIR=lablgtk-2.14.2
+REQUIRED_PACKS=$(Installed findlib)
+INSTALL=(cd $(EXTRACT_DIR); ./configure --prefix=$(PREFIX) && make all opt install && ocamlfind install lablgtk2 META)
+OCamlExternalPack(lablgtk2)

llvm/CONFIGURE.sh

+#!/bin/sh
+
+# OCaml related things are installed to a tmp dir
+OCAML_TMP_INSTALL=`pwd`/../ocaml-libdir
+./configure --prefix=$PREFIX --enable-shared --with-ocaml-libdir=$OCAML_TMP_INSTALL
+#!/bin/sh
+
+set -e
+
+# OCaml related things are installed to a tmp dir
+OCAML_TMP_INSTALL=`pwd`/../ocaml-libdir
+
+if [ ! -e $OCAML_TMP_INSTALL ]; then
+    mkdir $OCAML_TMP_INSTALL
+fi
+
+# Build
+OCAML_ANNOT=1 make
+make install
+
+# libLLVM*.a C++ libs are copied to $PREFIX/lib. We do not need it in OCaml installation
+find $OCAML_TMP_INSTALL -type l | xargs rm
+
+# Copy ocamlspot spit file
+cp `find bindings/ocaml/ -iname *.spit` $OCAML_TMP_INSTALL
+
+# Build META file
+FLAGS=`llvm-config --libs --ldflags`
+OCAML_FLAGS=`for i in $FLAGS; do echo -n "-cclib $i "; done` 
+
+cat << EOF > $OCAML_TMP_INSTALL/META
+requires = ""
+version = "llvm 2.8"
+description = "LLVM 2.8 OCaml binding"
+browse_interfaces = " Llvm Llvm_analysis Llvm_bitreader Llvm_bitwriter Llvm_executionengine Llvm_scalar_opts Llvm_target "
+archive(byte) = "llvm.cma llvm_analysis.cma llvm_executionengine.cma llvm_bitreader.cma llvm_bitwriter.cma llvm_scalar_opts.cma llvm_target.cma"
+archive(native) = "llvm.cmxa llvm_analysis.cmxa llvm_executionengine.cmxa llvm_bitreader.cmxa llvm_bitwriter.cmxa llvm_scalar_opts.cmxa llvm_target.cmxa"
+linkopts = "-cc g++ $OCAML_FLAGS"
+EOF
+
+# Install the all files
+ocamlfind remove llvm
+ocamlfind install llvm $OCAML_TMP_INSTALL/*
+URL=http://llvm.org/releases/2.8/llvm-2.8.tgz
+REQUIRED_PACKS=
+CONFIGURE=(cd llvm-2.8; ../../../CONFIGURE.sh)
+INSTALL=(cd llvm-2.8; ../../../INSTALL.sh)
+
+OCamlExternalPack(llvm)

ocamlgraph/OMakefile

+URL=http://ocamlgraph.lri.fr/download/ocamlgraph-1.7.tar.gz
+EXTRACT_DIR=ocamlgraph-1.7
+REQUIRED_PACKS=
+INSTALL=(cd $(EXTRACT_DIR); ./configure; make all install install-findlib)
+OCamlExternalPack(ocamlgraph)

pcre-ocaml/OMakefile

+RequireAptPackages(libpcre3-dev)
+URL=http://hg.ocaml.info/release/pcre-ocaml/archive/release-6.1.0.tar.bz2
+EXTRACT_DIR=pcre-ocaml-release-6.1.0
+REQUIRED_PACKS=
+INSTALL=(cd $(EXTRACT_DIR); make all install)
+OCamlExternalPack(pcre)

sexplib/OMakefile

+URL=http://www.janestreet.com/ocaml/sexplib-5.2.1.tar.gz
+EXTRACT_DIR=sexplib-5.2.1
+REQUIRED_PACKS=$(Installed type-conv)
+INSTALL=(cd $(EXTRACT_DIR); make all install)
+OCamlExternalPack(sexplib)

type-conv/OMakefile

+URL=http://www.janestreet.com/ocaml/type-conv-2.3.0.tar.gz
+REQUIRED_PACKS=$(Installed findlib)
+INSTALL=(cd type-conv-2.3.0; make all install)
+OCamlExternalPack(type-conv)