1 # install files for Fedora
3 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
6 FEDORA=$(shell uname -r | grep "\.fc[0-9][0-9]\.")
8 FEDORA_64=$(shell uname -r | grep "\.fc[0-9][0-9]\.x86_64")
27 perl-Business-CreditCard \
29 perl-Business-ISBN-Data \
37 perl-Library-CallNumber-LC \
42 perl-Module-Pluggable \
45 perl-OLE-Storage_Lite \
48 perl-Spreadsheet-WriteExcel \
61 export CPAN_MODULES = \
63 Net::Z3950::Simple2ZOOM \
64 Template::Plugin::POSIX \
68 export CPAN_MODULES_FORCE = \
69 Class::DBI::Frozen::301 \
70 Business::OnlinePayment \
71 Business::OnlinePayment::AuthorizeNet \
72 Business::OnlinePayment::PayPal
81 all: install_fedora_rpms install_js_sm
82 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
83 make -f $(DIR)/Makefile.common install_cpan
84 make -f $(DIR)/Makefile.common install_cpan_force
86 install_postgres_server:
87 yum -y install $(PGSQL_FEDORA_RPMS)
91 yum -y install $(FEDORA_RPMS)
93 install_js_sm: install_libjs install_spidermonkey
96 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
97 tar -zxf $(LIBJS).tar.gz
98 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
99 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
100 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
101 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
102 if [ ! -z $(FEDORA_64) ]; then \
103 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
104 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
106 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
107 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
111 install_spidermonkey:
112 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
113 tar -zxf $(LIBJS_PERL).tar.gz
114 if [ ! -z $(FEDORA_64) ]; then \
115 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
117 if [ ! -z $(FEDORA) ]; then \
118 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
120 cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
124 make -f $(DIR)/Makefile.common clean
126 # vim:noet:sw=4:ts=4: