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 \
38 perl-Library-CallNumber-LC \
40 perl-Locale-Maketext-Lexicon \
44 perl-Module-Pluggable \
47 perl-OLE-Storage_Lite \
63 export CPAN_MODULES = \
67 Net::Z3950::Simple2ZOOM \
68 Template::Plugin::POSIX \
72 export CPAN_MODULES_FORCE = \
74 Class::DBI::Frozen::301 \
75 Business::OnlinePayment \
76 Business::OnlinePayment::AuthorizeNet \
77 Business::OnlinePayment::PayPal
86 all: install_fedora_rpms install_js_sm
87 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
88 make -f $(DIR)/Makefile.common install_cpan
89 make -f $(DIR)/Makefile.common install_cpan_force
91 install_postgres_server:
92 yum -y install $(PGSQL_FEDORA_RPMS)
96 yum -y install $(FEDORA_RPMS)
98 install_js_sm: install_libjs install_spidermonkey
101 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
102 tar -zxf $(LIBJS).tar.gz
103 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
104 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
105 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
106 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
107 if [ ! -z $(FEDORA_64) ]; then \
108 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
109 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
111 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
112 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
116 install_spidermonkey:
117 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
118 tar -zxf $(LIBJS_PERL).tar.gz
119 if [ ! -z $(FEDORA_64) ]; then \
120 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
122 if [ ! -z $(FEDORA) ]; then \
123 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
125 cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
129 make -f $(DIR)/Makefile.common clean
131 # vim:noet:sw=4:ts=4: