From 3ac01e7e1597764ec8135f52a9492a70f989296e Mon Sep 17 00:00:00 2001 From: Gustaf Neumann Date: Tue, 1 Nov 2016 15:51:36 +0100 Subject: [PATCH] - improve support for freebsd - recommend for the time being 4.99.12 instead of .13 due to bug #77 fixed on bitbucket --- install-ns.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/install-ns.sh b/install-ns.sh index f94fe1a..b44ffeb 100644 --- a/install-ns.sh +++ b/install-ns.sh @@ -26,9 +26,9 @@ build_dir=/usr/local/src #build_dir=/usr/local/src/oo2 ns_install_dir=/usr/local/ns #ns_install_dir=/usr/local/oo2 -version_ns=4.99.13 +version_ns=4.99.12 #version_ns=HEAD -version_modules=4.99.13 +version_modules=4.99.12 #version_modules=HEAD version_tcl=8.5.19 version_tcllib=1.18 @@ -103,13 +103,16 @@ else make="gmake" type="type" # adjust following to local gcc version: - setenv CC="/usr/local/bin/gcc49" + setenv CC=clang if [ $with_postgres = "1" ] ; then # for freebsd10, file is: /usr/local/include/postgresql/internal/postgres_fe.h so: #pg_incl=/usr/local/include/postgresql/internal + pg_packages="postgresql96-client" pg_incl=/usr/local/include pg_lib=/usr/local/lib fi + # make sure that bash is installed here, such that the recommendation for bash works below + pkg install bash fi group_listcmd="grep ${ns_group} /etc/group" group_addcmd="groupadd ${ns_group}" @@ -307,6 +310,10 @@ if [ $sunos = "1" ] ; then system/library/math/header-math fi +if [ $freebsd = "1" ] ; then + pkg install gmake clang38 openssl automake wget curl zip unzip ${pg_packages} ${autoconf} ${mercurial} ${git} ${mongodb} +fi + echo "------------------------ Downloading sources ----------------------------" set -o errexit