1 # Functions used by all installers
3 # Install the CPAN modules
5 for m in $(CPAN_MODULES); do perl -MCPAN -e "install \"$$m\";"; done
8 for m in $(CPAN_MODULES_FORCE); do \
9 echo "force install $$m" | perl -MCPAN -e shell ;\
12 install_net_z3950_simpleserver:
13 if [ ! -f $(LIBNET_Z3950_SIMPLESERVER).tar.gz ]; \
14 then wget $(LIBNET_Z3950_SIMPLESERVER_URL).tar.gz; \
16 tar -zxf $(LIBNET_Z3950_SIMPLESERVER).tar.gz
17 cd $(LIBNET_Z3950_SIMPLESERVER) && \
18 perl Makefile.PL && make && make test && make install
20 # Install libdbi and the postgres drivers
22 if [ ! -d $(LIBDBI) ]; then wget $(LIBDBI_HOST)/$(LIBDBI).tar.gz; fi;
23 if [ ! -d $(LIBDBI_DRIVERS) ]; then wget $(LIBDBI_HOST)/$(LIBDBI_DRIVERS).tar.gz; fi;
24 tar -zxf $(LIBDBI).tar.gz
25 tar -zxf $(LIBDBI_DRIVERS).tar.gz
26 cd $(LIBDBI) && ./configure --disable-docs && make all install
27 cd $(LIBDBI_DRIVERS) && ./configure \
28 --disable-docs --with-pgsql --enable-libdbi && make all install
31 make -C $(LIBDBI) clean
32 make -C $(LIBDBI_DRIVERS) clean
33 make -C $(LIBJS_PERL) clean