2 # --------------------------------------------------------------------
3 # Copyright (C) 2005 Georgia Public Library Service
4 # Bill Erickson <highfalutin@gmail.com>
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 # --------------------------------------------------------------------
18 # --------------------------------------------------------------------
19 # Build targets. Options include:
21 # openils_all - builds all OpenILS compenents
22 # openils_core - install the Open-ILS perl modules, and core files for running and openils server
23 # openils_web - copies over the javascript and html templates to the web root directory for running the OPAC
24 # openils_marcdumper - utility code for converting MARC to MARCXML
25 # openils_db - installs the database schemas
26 # openils_reporter - installs the base of OpenILS Reporter
28 # evergreen_core - builds core Evergreen components (does not build evergreen_xul_client!)
29 # evergreen_xul_client - client XUL application
31 # Build marcdumper only if you need to convert MARC binary files to MARCXML.
32 # If you only want to build the client app, then just build evergreen_xul_client.
33 # --------------------------------------------------------------------
35 TARGETS=("openils_core" "openils_web" "openils_db");
38 # --------------------------------------------------------------------
39 # Should we build the Evergreen Python modules?
40 # These depend on having the setuptools module installed.
41 # --------------------------------------------------------------------
44 # --------------------------------------------------------------------
45 # Global install prefix. Binaries will be installed into PREFIX/bin,
46 # libraries will be installed into PREFIX/lib, etc. The user
47 # running 'install.sh install' must have write permissions to PREFIX
48 # --------------------------------------------------------------------
50 BINDIR="$PREFIX/bin/";
51 LIBDIR="$PREFIX/lib/";
52 PERLDIR="$LIBDIR/perl5/";
53 INCLUDEDIR="$PREFIX/include/";
54 ETCDIR="$PREFIX/etc/";
55 WEBDIR="$PREFIX/web/";
56 CGIDIR="$PREFIX/cgi-bin/";
57 TEMPLATEDIR="$PREFIX/templates";
60 # --------------------------------------------------------------------
61 # Temporary build files go here. The User running 'install.sh build'
62 # must have write permissions to TMP
63 # --------------------------------------------------------------------
67 # --------------------------------------------------------------------
68 # Location of the apxs binary for Apache2. This must be set when
69 # building the mod_ils_gateway C plugin for allowing web access
70 # to the published API.
71 # --------------------------------------------------------------------
73 APXS2="/usr/bin/apxs2";
76 # --------------------------------------------------------------------
77 # Directories where the Apache2 header files are located. These must
78 # be set when building the mod_ils_gateway C plugin for allowing web
79 # access to the published API.
80 # --------------------------------------------------------------------
81 APACHE2_HEADERS="/usr/include/apache2";
82 APR_HEADERS="/usr/include/apr-1.0/";
85 # --------------------------------------------------------------------
86 # Directory where the libdbi libraries are located. libdbi is used
87 # by the OpenILS cstore, fetch, and rstore applications
88 # --------------------------------------------------------------------
89 DBI_LIBS="/usr/local/lib/dbd";
91 # --------------------------------------------------------------------
92 # Directory where the libxml2 headers are located. Libxml2 is used
93 # by various components
94 # --------------------------------------------------------------------
95 LIBXML2_HEADERS="/usr/include/libxml2/";
98 # --------------------------------------------------------------------
99 # Directories where the OpenSRF headers and libraries are located.
100 # You must build and install OpenSRF before OpenILS.
101 # --------------------------------------------------------------------
102 OPENSRF_HEADERS="/openils/include/"
103 OPENSRF_LIBS="/openils/lib/"
106 # --------------------------------------------------------------------
107 # These point to the top level makefiles for each of the sub
108 # projects. Only change these if you have relocated the directories.
109 # --------------------------------------------------------------------
110 OPENILSDIR="Open-ILS/src/";
111 EVERGREENDIR="Evergreen/";
116 # --------------------------------------------------------------------
117 # These are used to create the perl DBI DSN for the bootstrapping
119 # --------------------------------------------------------------------