Fedora needs Locale::Maketext::Lexicon too
[working/Evergreen.git] / Open-ILS / src / extras / install / Makefile.fedora
1 # install files for Fedora
2
3 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
4
5 # Fedora?
6 FEDORA=$(shell uname -r | grep "\.fc[0-9][0-9]\.")
7 # Fedora 64-bit?
8 FEDORA_64=$(shell uname -r | grep "\.fc[0-9][0-9]\.x86_64")
9
10 FEDORA_RPMS = \
11         aspell \
12         aspell-en \
13         bzip2-devel \
14         check \
15         check-devel \
16         libdbi \
17         libdbi-dbd-pgsql \
18         libdbi-devel \
19         libssh2-devel \
20         libyaz \
21         libyaz-devel \
22         mingw32-nsiswrapper \
23         mod_ssl \
24         ncurses-devel \
25         ncurses-libs \
26         perl-parent \
27         perl-Business-CreditCard \
28         perl-Business-ISBN \
29         perl-Business-ISBN-Data \
30         perl-CPAN \
31         perl-DBD-Pg \
32         perl-Email-Send \
33         perl-Email-Simple \
34         perl-GDGraph3d \
35         perl-JSON-XS \
36         perl-LDAP \
37         perl-Library-CallNumber-LC \
38         perl-Locale-Codes \
39         perl-Locale-Maketext-Lexicon \
40         perl-MARC-Charset \
41         perl-MARC-Record \
42         perl-MARC-XML \
43         perl-Module-Pluggable \
44         perl-Net-IP \
45         perl-Net-SSH2 \
46         perl-OLE-Storage_Lite \
47         perl-RPC-XML \
48         perl-SOAP-Lite \
49         perl-Spreadsheet-WriteExcel \
50         perl-Test-Warn \
51         perl-Text-Aspell \
52         perl-Text-CSV \
53         perl-Text-CSV_XS \
54         perl-UUID-Tiny \
55         perl-XML-Writer \
56         postgresql-devel \
57         readline-devel \
58         tcp_wrappers-devel \
59         wget \
60         yaz
61
62 export CPAN_MODULES = \
63         Business::ISSN \
64         Net::Z3950::ZOOM \
65         Net::Z3950::Simple2ZOOM \
66         Template::Plugin::POSIX \
67         SRU \
68         Rose::URI
69
70 export CPAN_MODULES_FORCE = \
71         Class::DBI::Frozen::301 \
72         Business::OnlinePayment \
73         Business::OnlinePayment::AuthorizeNet \
74         Business::OnlinePayment::PayPal
75
76 PGSQL_FEDORA_RPMS = \
77         postgresql \
78         postgresql-contrib \
79         postgresql-libs \
80         postgresql-plperl \
81         postgresql-server
82
83 all: install_fedora_rpms install_js_sm
84         make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
85         make -f $(DIR)/Makefile.common install_cpan
86         make -f $(DIR)/Makefile.common install_cpan_force
87
88 install_postgres_server:
89         yum -y install $(PGSQL_FEDORA_RPMS)
90
91 install_fedora_rpms:
92         yum -y update
93         yum -y install $(FEDORA_RPMS)
94
95 install_js_sm: install_libjs install_spidermonkey
96
97 install_libjs: 
98         if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
99         tar -zxf $(LIBJS).tar.gz
100         cd js/src/ && JS_DIST=/usr make -f Makefile.ref
101         mkdir -p $(JS_INSTALL_PREFIX)/include/js/
102         cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
103         cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
104         if [ ! -z $(FEDORA_64) ]; then \
105                 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
106                 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
107         else \
108                 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
109                 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
110         fi;
111         ldconfig
112
113 install_spidermonkey:
114         if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
115         tar -zxf $(LIBJS_PERL).tar.gz
116         if [ ! -z $(FEDORA_64) ]; then \
117                 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
118         fi;
119         if [ ! -z $(FEDORA) ]; then \
120                 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
121         fi;
122         cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
123
124
125 clean:
126         make -f $(DIR)/Makefile.common clean
127
128 # vim:noet:sw=4:ts=4: