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 \
41 perl-Module-Pluggable \
44 perl-OLE-Storage_Lite \
46 perl-Spreadsheet-WriteExcel \
58 export CPAN_MODULES = \
61 Business::ISBN::Data \
65 Library::CallNumber::LC \
66 Net::Z3950::Simple2ZOOM \
67 Template::Plugin::POSIX \
71 export CPAN_MODULES_FORCE = \
72 Class::DBI::Frozen::301
74 # Note: B:O:AuthorizeNet 3.21 fails with https://rt.cpan.org/Public/Bug/Display.html?id=55172
75 # Should be fixed in 3.22
76 # MARC::Record 2.0.1+ is required but only 2.0.0 is packaged
78 # TODO: can contents of FEDORA_CPAN be moved into CPAN_MODULES_FORCE?
80 Business::OnlinePayment \
81 Business::OnlinePayment::AuthorizeNet \
82 Business::OnlinePayment::PayPal \
93 all: install_fedora_rpms install_cpan_fedora install_js_sm
94 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
95 make -f $(DIR)/Makefile.common install_cpan
96 make -f $(DIR)/Makefile.common install_cpan_force
97 make -f $(DIR)/Makefile.common install_libdbi
99 install_postgres_server:
100 yum -y install $(PGSQL_FEDORA_RPMS)
104 yum -y install $(FEDORA_RPMS)
107 for m in $(FEDORA_CPAN); do \
108 echo "force install $$m" | perl -MCPAN -e shell;\
111 install_cpan_marc: install_cpan_marc_record
112 for m in $(CPAN_MODULES_MARC); do perl -MCPAN -e "install \"$$m\";"; done
114 install_js_sm: install_libjs install_spidermonkey
117 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
118 tar -zxf $(LIBJS).tar.gz
119 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
120 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
121 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
122 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
123 if [ ! -z $(FEDORA_64) ]; then \
124 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
125 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
127 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
128 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
132 install_spidermonkey:
133 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
134 tar -zxf $(LIBJS_PERL).tar.gz
135 if [ ! -z $(FEDORA_64) ]; then \
136 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
138 if [ ! -z $(FEDORA) ]; then \
139 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
141 cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
145 make -f $(DIR)/Makefile.common clean
147 # vim:noet:sw=4:ts=4: