LP#1830972: update pin and add comments about keeping things in sync
[Evergreen.git] / Open-ILS / src / extras / install / Makefile.common
1 # Functions used by all installers
2
3 # Install the CPAN modules
4 install_cpan:
5         for m in $(CPAN_MODULES); do perl -MCPAN -e "install \"$$m\";"; done
6
7 install_cpan_force:
8         for m in $(CPAN_MODULES_FORCE); do \
9                 echo "force install $$m" | perl -MCPAN -e shell ;\
10         done
11
12 install_cpan_pgsql:
13         for m in $(CPAN_MODULES_PGSQL); do perl -MCPAN -e "install \"$$m\";"; done
14
15 install_net_z3950_simpleserver:
16         if [ ! -f $(LIBNET_Z3950_SIMPLESERVER).tar.gz ]; \
17                 then wget $(LIBNET_Z3950_SIMPLESERVER_URL).tar.gz; \
18         fi;
19         tar -zxf $(LIBNET_Z3950_SIMPLESERVER).tar.gz
20         cd $(LIBNET_Z3950_SIMPLESERVER) && \
21                 perl Makefile.PL && make && make test && make install
22
23 # Install libdbi and the postgres drivers
24 install_libdbi:
25         if [ ! -d $(LIBDBI) ]; then wget $(LIBDBI_HOST)/$(LIBDBI).tar.gz; fi;
26         if [ ! -d $(LIBDBI_DRIVERS) ]; then wget $(LIBDBI_HOST)/$(LIBDBI_DRIVERS).tar.gz; fi;
27         tar -zxf $(LIBDBI).tar.gz
28         tar -zxf $(LIBDBI_DRIVERS).tar.gz
29         cd $(LIBDBI) && ./configure --disable-docs && make all install
30         cd $(LIBDBI_DRIVERS) && ./configure --disable-docs --enable-libdbi \
31                 --with-pgsql --with-pgsql-incdir=$$(pg_config --includedir) \
32                 --with-pgsql-libdir=$$(pg_config --libdir) && make all install  
33
34 # NOTE: Use the NodeJS Binary
35 # ALSO NOTE: the version of angular/cli should be kept in sync with
36 #            what's specified in Open-ILS/src/eg2/package.json
37 install_nodejs_from_source:
38         wget -N $(NODEJS_BINARY)
39         tar -C /usr/local --strip-components 1 -xJf $(NODEJS_TARBIN)
40         npm update
41         npm install -g @angular/cli@^7.0.7
42
43 clean:
44         make -C $(LIBDBI) clean
45         make -C $(LIBDBI_DRIVERS) clean
46
47 # vim:noet:sw=4:ts=4: