1
# This -*- sh -*- script is part of our reusable OCaml BRICKS library
2
# Copyright (C) 2008 2011 Luca Saiu
3
# Copyright (C) 2008 2012 Jean-Vincent Loddo
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation, either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
###########################################################################
20
###########################################################################
21
# This file should be hand-edited at configuration time, before compiling.
22
###########################################################################
23
###########################################################################
25
###########################################################################
26
# Section 1: Configuration choices
27
###########################################################################
29
# (this section is empty for ocamlbricks).
31
###########################################################################
32
# Section 2: Installation setup: prefixes, and the like
33
###########################################################################
35
# Installation prefix, for example /usr or /usr/local
36
# *No* trailing slash should be included.
39
# Prefix for host-wide configuration files; you should probably keep the
41
configurationprefix=/etc
43
# Prefix for the locale files
44
localeprefix=${prefix}/share/locale
46
# Prefix for documentation files; you should probably keep the
48
documentationprefix=${prefix}/share/doc
50
# Location of the standard Ocaml libraries required to compile
51
# and link the project.
52
# *No* trailing slash should be included.
53
ocaml_libraryprefix=$(ocamlc -where || exit -1)
55
#ocaml_libraryprefix=/mystrangepath
57
# Installation prefix for OCaml libraries built by the project.
58
# By default they will be installed into ${ocaml_libraryprefix}, but you
59
# can change it if you really want to install into a different, custom prefix.
60
# *No* trailing slash should be included.
61
libraryprefix=${ocaml_libraryprefix}
63
# This definition may be appropriate for debian packaging:
64
#libraryprefix=debian/tmp/${ocaml_libraryprefix}
66
# This should be defined as the absolute path to a directory containing
67
# the already configured OCaml source; in alternative, is your GNU/Linux
68
# distribution packages OCaml headers (debian and its offspring install
69
# headers in /usr/include/caml), you can set this to the full path of
70
# the directory containing OCaml headers.
71
ocaml_sources=${ocaml_libraryprefix}/caml
73
# This definition is appropriate for debian-like distributions:
74
#ocaml_sources=/usr/include/caml
76
# This is reasonable if you have downloaded and configured the OCaml
77
# sources yourself, somewhere:
78
#ocaml_sources=/home/luca/projects-by-others/ocaml-3.11.2
80
###########################################################################
81
# Section 3: Default configuration. This will end up in /etc/$name at
82
# installation time, providing the default host configuration for this
83
# package. Individual users can still override defaults by defining their
84
# own ~/.$name customization file.