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 = \
64 Net::Z3950::Simple2ZOOM \
65 Template::Plugin::POSIX \
69 export CPAN_MODULES_FORCE = \
70 Class::DBI::Frozen::301 \
71 Business::OnlinePayment \
72 Business::OnlinePayment::AuthorizeNet \
73 Business::OnlinePayment::PayPal
82 all: install_fedora_rpms install_js_sm
83 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
84 make -f $(DIR)/Makefile.common install_cpan
85 make -f $(DIR)/Makefile.common install_cpan_force
87 install_postgres_server:
88 yum -y install $(PGSQL_FEDORA_RPMS)
92 yum -y install $(FEDORA_RPMS)
94 install_js_sm: install_libjs install_spidermonkey
97 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
98 tar -zxf $(LIBJS).tar.gz
99 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
100 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
101 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
102 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
103 if [ ! -z $(FEDORA_64) ]; then \
104 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
105 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
107 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
108 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
112 install_spidermonkey:
113 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
114 tar -zxf $(LIBJS_PERL).tar.gz
115 if [ ! -z $(FEDORA_64) ]; then \
116 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
118 if [ ! -z $(FEDORA) ]; then \
119 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
121 cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
125 make -f $(DIR)/Makefile.common clean
127 # vim:noet:sw=4:ts=4: