# used for installing libjs lib and header files
JS_INSTALL_PREFIX=/usr/
+LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
+LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
+
# The libdbi sources can be fetched from sourceforge.net. They are stored on
# the open-ils.org site now for ease of direct linking
LIBDBI=libdbi-0.8.3
# We need a recent version of Yaz
# Debian Lenny and Ubuntu 8.10 come with 3.0.34
-YAZ=yaz-3.0.47
+YAZ=yaz-4.2.17
YAZ_HOST=http://ftp.indexdata.dk/pub/yaz
# Business::OnlinePayment is not packaged on CentOS/RHEL
deflate
# Chronically unpackaged CPAN modules
-# Note older version of Net::Z3950::SimpleServer to avoid yaz 4.1.x dependency
CPAN_MODULES = \
Business::EDI \
Library::CallNumber::LC \
- M/MI/MIRK/Net-Z3950-SimpleServer-1.12.tar.gz \
Net::Z3950::Simple2ZOOM \
Template::Plugin::POSIX \
SRU
# - COMMON TARGETS ---------------------------------------------------------
# Install the CPAN modules
-install_cpan:
+install_cpan: install_net_z3950_simpleserver
for m in $(CPAN_MODULES); do perl -MCPAN -e "install \"$$m\";"; done
install_cpan_more:
fi;
cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
+install_net_z3950_simpleserver:
+ if [ ! -f $(LIBNET_Z3950_SIMPLESERVER).tar.gz ]; then wget $(LIBNET_Z3950_SIMPLESERVER_URL).tar.gz; fi;
+ tar -zxf $(LIBNET_Z3950_SIMPLESERVER).tar.gz
+ sed -i -e 's/..\/..\/yaz-config/yaz-config/' $(LIBNET_Z3950_SIMPLESERVER)/Makefile.PL;
+ cd $(LIBNET_Z3950_SIMPLESERVER) && perl Makefile.PL && make && make test && make install
+
# On Ubuntu and possibly Debian, the libdbi0 package prevents the
# compiled-from-source version from being used and breaks the install.
# This package might get installed depending on the install-time choices