LP#1392759 dev/packager Makefile.install additions
[working/Evergreen.git] / Open-ILS / src / extras / install / Makefile.ubuntu-precise
1 # install files for Ubuntu 12.04 LTS Precise Pangolin
2
3 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
4
5 export DEB_PGSQL_COMMON_MODS = \
6         gcc \
7         libbusiness-isbn-perl \
8         libjson-xs-perl \
9         liblibrary-callnumber-lc-perl \
10         libmarc-record-perl \
11         libmarc-xml-perl \
12         libuuid-tiny-perl \
13         libxml-libxml-perl \
14         libxml-libxslt-perl
15
16 export DEBS = \
17         $(DEB_PGSQL_COMMON_MODS) \
18         apache2-prefork-dev\
19         aspell\
20         aspell-en\
21         libbusiness-creditcard-perl\
22         libbusiness-edi-perl \
23         libbusiness-isbn-data-perl\
24         libbusiness-issn-perl\
25         libbusiness-onlinepayment-authorizenet-perl\
26         libbusiness-onlinepayment-perl\
27         libdate-manip-perl\
28         libdatetime-format-builder-perl\
29         libdatetime-format-iso8601-perl\
30         libdatetime-format-mail-perl\
31         libdatetime-perl\
32         libdatetime-set-perl\
33         libdatetime-timezone-perl\
34         libdbd-pg-perl\
35         libdbd-pgsql \
36         libdbi-dev \
37         libemail-send-perl\
38         libemail-simple-perl\
39         libgd-graph3d-perl\
40         liblocale-maketext-lexicon-perl\
41         liblog-log4perl-perl\
42         libmarc-charset-perl \
43         libncurses5-dev\
44         libnet-https-any-perl \
45         libnet-ip-perl\
46         libnet-ldap-perl \
47         libnet-server-perl\
48         libnet-ssh2-perl\
49         libnet-z3950-simple2zoom-perl\
50         libnet-z3950-simpleserver-perl\
51         libnet-z3950-zoom-perl \
52         libnspr4-dev\
53         libole-storage-lite-perl\
54         libbz2-dev \
55         libpq5\
56         libpq-dev\
57         librpc-xml-perl\
58         libsru-perl\
59         libssh2-1-dev\
60         libtext-aspell-perl\
61         libtext-csv-perl\
62         libuniversal-require-perl\
63         libunix-syslog-perl\
64         libyaz-dev\
65         postgresql-client-9.1\
66         libsoap-lite-perl\
67         libtest-warn-perl\
68         libtest-output-perl\
69         libparse-recdescent-perl\
70         yaz
71
72 export DEB_APACHE_MODS = \
73     expires\
74     include\
75     proxy\
76     proxy_http\
77     rewrite
78
79 export DEB_APACHE_DISMODS = \
80     deflate
81
82 export CPAN_MODULES = \
83         Excel::Writer::XLSX \
84         Business::CreditCard::Object \
85         Business::OnlinePayment::PayPal \
86         Template::Plugin::POSIX \
87         Rose::URI \
88         Safe
89
90 export CPAN_MODULES_FORCE = \
91         Business::Stripe \
92         Class::DBI::Frozen::301
93
94 PGSQL_SERVER_DEBS_91 = \
95         $(DEB_PGSQL_COMMON_MODS) \
96         postgresql-9.1 \
97         postgresql-contrib-9.1 \
98         postgresql-plperl-9.1 \
99         postgresql-server-dev-9.1
100
101 # note: some prereqs are repeated in the developer/packager 
102 # sections to support building Evergreen packages on servers
103 # where Evergreen and its prereqs are not installed.
104
105 DEVELOPER_DEBS = \
106         make \
107         automake \
108         autoconf \
109         libtool 
110
111 PACKAGER_DEBS = \
112         libtemplate-perl \
113         liblocale-maketext-lexicon-perl \
114         asciidoc \
115         source-highlight \
116         translate-toolkit \
117         python-dev \
118         python-levenshtein \
119         python-polib \
120         python-setuptools \
121         python-simplejson \
122         python-lxml \
123         zip \
124         unzip \
125         nsis
126
127 all:
128         make -f $(DIR)/Makefile.debian install_debs
129         make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
130         make -f $(DIR)/Makefile.common install_cpan
131         make -f $(DIR)/Makefile.common install_cpan_force
132         make -f $(DIR)/Makefile.debian install_js_sm
133         make -f $(DIR)/Makefile.debian debian_sys_config
134
135 install_postgres_server:
136         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_91)"
137
138 install_developer:
139         make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
140         make -f $(DIR)/Makefile.common install_nodejs_from_source
141
142 install_packager: install_developer
143         make -f $(DIR)/Makefile.debian DEBS="$(PACKAGER_DEBS)"
144
145 clean:
146         make -f $(DIR)/Makefile.common clean
147         make -f $(DIR)/Makefile.debian clean
148
149 # vim:noet:sw=4:ts=4: