]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/Makefile.install
54c5460673ebdd0c76b160368e4b48ed4fb62278
[Evergreen.git] / Open-ILS / src / extras / Makefile.install
1 # ---------------------------------------------------------------------
2 # Author: Bill Erickson <erickson@esilibrary.com>
3 # Author: Dan Scott <dscott@laurentian.ca>
4 #
5 # Makefile to install prerequisites for OpenSRF and Evergreen
6 #
7 # Currently supports Debian (jessie, wheezy, squeeze), Ubuntu (12.04), 
8 # Ubuntu (14.04) and Fedora (16 and 17).
9 #
10 # Installs Perl prereqs, libjs with Perl wrapper, libdbi, libdbi-drivers, and libyaz
11 #
12 # usage:
13 #       make -f Makefile.install debian-jessie
14 #       - or -
15 #       make -f Makefile.install debian-wheezy
16 #       - or -
17 #       make -f Makefile.install debian-squeeze
18 #       - or -
19 #       make -f Makefile.install ubuntu-precise
20 #       - or -
21 #       make -f Makefile.install ubuntu-trusty
22 #       - or -
23 #       make -f Makefile.install fedora
24 #
25 # ---------------------------------------------------------------------
26
27 # variables shared by all installers
28
29 # Make any assumptions about the shell being used explicit
30 export SHELL=/bin/bash 
31
32 export LIBJS=js-1.7.0
33 export LIBJS_PERL=JavaScript-SpiderMonkey-0.21
34 export LIBJS_URL=http://ftp.mozilla.org/pub/mozilla.org/js/$(LIBJS).tar.gz
35 export LIBJS_PERL_URL=http://mirror.datapipe.net/pub/CPAN/authors/id/T/TB/TBUSCH/$(LIBJS_PERL).tar.gz
36
37 # used for installing libjs lib and header files
38 export JS_INSTALL_PREFIX=/usr/
39
40 export LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
41 export LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
42
43 # The libdbi sources can be fetched from sourceforge.net.  They are stored on
44 # the open-ils.org site now for ease of direct linking
45 export LIBDBI=libdbi-0.8.3
46 export LIBDBI_DRIVERS=libdbi-drivers-0.8.3
47 export LIBDBI_HOST=http://open-ils.org/~denials/evergreen
48
49 # some OSes require a source install of NodeJS.
50 # NOTE: Deprecate me with wheezy / precise
51 export NODEJS_SOURCE_VERSION=v0.10.28
52
53 # As this Makefile is designed to be used by a make process running as
54 # root, this will avoid problems on some systems when tar extracts
55 # files and tries to give them the same UID/GID as they have in their
56 # archives, but those accounts don't exist on the local system.
57 #
58 # e.g, libdbi has files set 1000/1000. On most systems, there's a user
59 # and a group with these IDs, but there can be systems where nothing
60 # uses those IDs, and where tar fails with e.g. 'tar: libdbi-0.8.3:
61 # Cannot change ownership to uid 1000, gid 1000: Invalid argument'
62 #
63 export TAR_OPTIONS=--no-same-owner --no-same-permissions
64
65 # ----------------------------------------------------------------------------
66
67 # avoid hard-coding the path to related makefiles
68 DIR = $(dir $(lastword $(MAKEFILE_LIST)))/install
69
70 all:
71         @echo "please specify an OS" && exit 0
72 debian-jessie:
73         @make -f $(DIR)/Makefile.debian-jessie
74 debian-wheezy:
75         @make -f $(DIR)/Makefile.debian-wheezy
76 debian-squeeze: 
77         @make -f $(DIR)/Makefile.debian-squeeze
78 ubuntu-trusty:
79         @make -f $(DIR)/Makefile.ubuntu-trusty
80 ubuntu-precise:
81         @make -f $(DIR)/Makefile.ubuntu-precise
82 fedora:
83         @make -f $(DIR)/Makefile.fedora
84
85 postgres-server-debian-jessie:
86         @make -f $(DIR)/Makefile.debian-jessie install_postgres_server
87 postgres-server-debian-wheezy:
88         @make -f $(DIR)/Makefile.debian-wheezy install_postgres_server
89 postgres-server-debian-squeeze: 
90         @make -f $(DIR)/Makefile.debian-squeeze install_postgres_server
91 postgres-server-ubuntu-trusty:
92         @make -f $(DIR)/Makefile.ubuntu-trusty install_postgres_server
93 postgres-server-ubuntu-precise:
94         @make -f $(DIR)/Makefile.ubuntu-precise install_postgres_server
95 postgres-server-fedora:
96         @make -f $(DIR)/Makefile.fedora install_postgres_server
97
98 ubuntu-trusty-developer:
99         @make -f $(DIR)/Makefile.ubuntu-trusty install_developer
100 debian-jessie-developer:
101         @make -f $(DIR)/Makefile.debian-jessie install_developer
102 ubuntu-precise-developer:
103         @make -f $(DIR)/Makefile.ubuntu-precise install_developer
104 debian-wheezy-developer:
105         @make -f $(DIR)/Makefile.debian-wheezy install_developer
106
107 ubuntu-trusty-packager:
108         @make -f $(DIR)/Makefile.ubuntu-trusty install_packager
109 debian-jessie-packager:
110         @make -f $(DIR)/Makefile.debian-jessie install_packager
111 ubuntu-precise-packager:
112         @make -f $(DIR)/Makefile.ubuntu-precise install_packager
113 debian-wheezy-packager:
114         @make -f $(DIR)/Makefile.debian-wheezy install_packager
115
116 # vim:noet:sw=4:ts=4: