1 # actions required by all debian-based OSs
7 $(APT_TOOL) install $(DEBS)
9 # Install the custom spidermonkey libs and JavaScript-SpiderMonkey Perl modules
10 install_js_sm: install_libjs install_spidermonkey
13 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
14 tar -zxf $(LIBJS).tar.gz
15 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
16 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
17 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
18 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
19 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/
20 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/
25 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi
26 tar -zxf $(LIBJS_PERL).tar.gz
27 cd $(LIBJS_PERL) && perl Makefile.PL -E4X \
28 && make && make test && make install
30 # On Ubuntu and possibly Debian, the libdbi0 package prevents the
31 # compiled-from-source version from being used and breaks the install.
32 # This package might get installed depending on the install-time choices
33 # for the distro. Test for its existence; if it's there, throw an error
36 @if [ "$$(apt-cache policy libdbi0 | grep Installed | grep none | wc -l)" -eq 0 ]; then \
37 echo "*** Detected locally installed libdbi0 package; you must remove this"; \
38 echo "*** with a command like 'aptitude remove libdbi0' before proceeding"; \
39 echo "*** to successfully install Evergreen."; \
41 echo "*** Note: this may break other applications on your system."; \
46 # link the apache modules in
47 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
48 # keep the bad apache modules away
49 for m in $(DEB_APACHE_DISMODS); do a2dismod $$m; done;
50 # refresh the dynamic library cache
54 make -f Makefile.ref -C js/src/ clean