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 \
48 perl-Parse-RecDescent \
64 export CPAN_MODULES = \
68 Net::Z3950::Simple2ZOOM \
69 Template::Plugin::POSIX \
73 export CPAN_MODULES_FORCE = \
75 Class::DBI::Frozen::301 \
76 Business::OnlinePayment \
77 Business::OnlinePayment::AuthorizeNet \
78 Business::OnlinePayment::PayPal
87 all: install_fedora_rpms install_js_sm
88 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
89 make -f $(DIR)/Makefile.common install_cpan
90 make -f $(DIR)/Makefile.common install_cpan_force
92 install_postgres_server:
93 yum -y install $(PGSQL_FEDORA_RPMS)
97 yum -y install $(FEDORA_RPMS)
99 install_js_sm: install_libjs install_spidermonkey
102 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
103 tar -zxf $(LIBJS).tar.gz
104 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
105 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
106 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
107 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
108 if [ ! -z $(FEDORA_64) ]; then \
109 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
110 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
112 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
113 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
117 install_spidermonkey:
118 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
119 tar -zxf $(LIBJS_PERL).tar.gz
120 if [ ! -z $(FEDORA_64) ]; then \
121 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
123 if [ ! -z $(FEDORA) ]; then \
124 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
126 cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
130 make -f $(DIR)/Makefile.common clean
132 # vim:noet:sw=4:ts=4: