1 # ---------------------------------------------------------------------
2 # Author: Bill Erickson <erickson@esilibrary.com>
3 # Author: Dan Scott <dscott@laurentian.ca>
5 # Makefile to install prerequisites for OpenSRF and Evergreen
7 # Currently supports Debian (wheezy, squeeze), Ubuntu (10.04), Ubuntu (12.04) and
10 # Installs Perl prereqs, libjs with Perl wrapper, libdbi, libdbi-drivers, and libyaz
13 # make -f Makefile.install debian-wheezy
15 # make -f Makefile.install debian-squeeze
17 # make -f Makefile.install ubuntu-lucid
19 # make -f Makefile.install ubuntu-precise
21 # make -f Makefile.install fedora
23 # ---------------------------------------------------------------------
25 # variables shared by all installers
27 # Make any assumptions about the shell being used explicit
28 export SHELL=/bin/bash
31 export LIBJS_PERL=JavaScript-SpiderMonkey-0.21
32 export LIBJS_URL=http://ftp.mozilla.org/pub/mozilla.org/js/$(LIBJS).tar.gz
33 export LIBJS_PERL_URL=http://mirror.datapipe.net/pub/CPAN/authors/id/T/TB/TBUSCH/$(LIBJS_PERL).tar.gz
35 # used for installing libjs lib and header files
36 export JS_INSTALL_PREFIX=/usr/
38 export LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
39 export LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
41 # The libdbi sources can be fetched from sourceforge.net. They are stored on
42 # the open-ils.org site now for ease of direct linking
43 export LIBDBI=libdbi-0.8.3
44 export LIBDBI_DRIVERS=libdbi-drivers-0.8.3
45 export LIBDBI_HOST=http://open-ils.org/~denials/evergreen
47 # ----------------------------------------------------------------------------
49 # avoid hard-coding the path to related makefiles
50 DIR = $(dir $(lastword $(MAKEFILE_LIST)))/install
53 @echo "please specify an OS" && exit 0
55 @make -f $(DIR)/Makefile.debian-wheezy
57 @make -f $(DIR)/Makefile.debian-squeeze
59 @make -f $(DIR)/Makefile.ubuntu-lucid
61 @make -f $(DIR)/Makefile.ubuntu-precise
63 @make -f $(DIR)/Makefile.fedora
65 postgres-server-debian-wheezy:
66 @make -f $(DIR)/Makefile.debian-wheezy install_postgres_server
67 postgres-server-debian-squeeze:
68 @make -f $(DIR)/Makefile.debian-squeeze install_postgres_server
69 postgres-server-ubuntu-lucid:
70 @make -f $(DIR)/Makefile.ubuntu-lucid install_postgres_server
71 postgres-server-ubuntu-precise:
72 @make -f $(DIR)/Makefile.ubuntu-precise install_postgres_server
73 postgres-server-fedora:
74 @make -f $(DIR)/Makefile.fedora install_postgres_server