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")
13 perl-Library-CallNumber-LC \
21 $(PGSQL_COMMON_RPMS) \
38 perl-Business-CreditCard \
39 perl-Business-ISBN-Data \
50 perl-Locale-Maketext-Lexicon \
52 perl-Module-Pluggable \
55 perl-OLE-Storage_Lite \
56 perl-Parse-RecDescent \
71 export CPAN_MODULES = \
75 Net::Z3950::Simple2ZOOM \
76 Template::Plugin::POSIX \
80 export CPAN_MODULES_FORCE = \
82 Class::DBI::Frozen::301 \
83 Business::OnlinePayment \
84 Business::OnlinePayment::AuthorizeNet \
85 Business::OnlinePayment::PayPal
88 $(PGSQL_COMMON_RPMS) \
95 all: install_fedora_rpms install_js_sm
96 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
97 make -f $(DIR)/Makefile.common install_cpan
98 make -f $(DIR)/Makefile.common install_cpan_force
100 install_postgres_server:
101 yum -y install $(PGSQL_FEDORA_RPMS)
105 yum -y install $(FEDORA_RPMS)
107 install_js_sm: install_libjs install_spidermonkey
110 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
111 tar -zxf $(LIBJS).tar.gz
112 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
113 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
114 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
115 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
116 if [ ! -z $(FEDORA_64) ]; then \
117 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
118 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
120 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
121 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
125 install_spidermonkey:
126 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
127 tar -zxf $(LIBJS_PERL).tar.gz
128 if [ ! -z $(FEDORA_64) ]; then \
129 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
131 if [ ! -z $(FEDORA) ]; then \
132 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
134 cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
138 make -f $(DIR)/Makefile.common clean
140 # vim:noet:sw=4:ts=4: