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_db - installs the database schemas
25 # openils_reporter - installs the base of OpenILS Reporter
27 # evergreen_core - builds core Evergreen components (does not build evergreen_xul_client!)
28 # evergreen_xul_client - client XUL application
30 # If you only want to build the client app, then just build evergreen_xul_client.
31 # --------------------------------------------------------------------
33 TARGETS=("openils_core" "openils_web" "openils_db");
36 # --------------------------------------------------------------------
37 # Should we build the Evergreen Python modules?
38 # These depend on having the setuptools module installed.
39 # --------------------------------------------------------------------
42 # --------------------------------------------------------------------
43 # Global install prefix. Binaries will be installed into PREFIX/bin,
44 # libraries will be installed into PREFIX/lib, etc. The user
45 # running 'install.sh install' must have write permissions to PREFIX
46 # --------------------------------------------------------------------
48 BINDIR="$PREFIX/bin/";
49 LIBDIR="$PREFIX/lib/";
50 PERLDIR="$LIBDIR/perl5/";
51 INCLUDEDIR="$PREFIX/include/";
52 ETCDIR="$PREFIX/etc/";
53 WEBDIR="$PREFIX/web/";
54 CGIDIR="$PREFIX/cgi-bin/";
55 TEMPLATEDIR="$PREFIX/templates";
58 # --------------------------------------------------------------------
59 # Temporary build files go here. The User running 'install.sh build'
60 # must have write permissions to TMP
61 # --------------------------------------------------------------------
65 # --------------------------------------------------------------------
66 # Location of the apxs binary for Apache2. This must be set when
67 # building the mod_ils_gateway C plugin for allowing web access
68 # to the published API.
69 # --------------------------------------------------------------------
71 APXS2="/usr/bin/apxs2";
74 # --------------------------------------------------------------------
75 # Directories where the Apache2 header files are located. These must
76 # be set when building the mod_ils_gateway C plugin for allowing web
77 # access to the published API.
78 # --------------------------------------------------------------------
79 APACHE2_HEADERS="/usr/include/apache2";
80 APR_HEADERS="/usr/include/apr-1.0/";
83 # --------------------------------------------------------------------
84 # Directory where the libdbi libraries are located. libdbi is used
85 # by the OpenILS cstore, fetch, and rstore applications
86 # --------------------------------------------------------------------
87 DBI_LIBS="/usr/local/lib/dbd";
89 # --------------------------------------------------------------------
90 # Directory where the libxml2 headers are located. Libxml2 is used
91 # by various components
92 # --------------------------------------------------------------------
93 LIBXML2_HEADERS="/usr/include/libxml2/";
96 # --------------------------------------------------------------------
97 # Directories where the OpenSRF headers and libraries are located.
98 # You must build and install OpenSRF before OpenILS.
99 # --------------------------------------------------------------------
100 OPENSRF_HEADERS="/openils/include/"
101 OPENSRF_LIBS="/openils/lib/"
104 # --------------------------------------------------------------------
105 # These point to the top level makefiles for each of the sub
106 # projects. Only change these if you have relocated the directories.
107 # --------------------------------------------------------------------
108 OPENILSDIR="Open-ILS/src/";
109 EVERGREENDIR="Evergreen/";
114 # --------------------------------------------------------------------
115 # These are used to create the perl DBI DSN for the bootstrapping
117 # --------------------------------------------------------------------