From e8ef480f143ba5438dd86d2035e23d675f0595f4 Mon Sep 17 00:00:00 2001 From: "Ryan P.C. McQuen" Date: Fri, 4 Dec 2015 09:05:14 -0800 Subject: development/nodejs: Updated for version 4.2.3. Signed-off-by: Ryan P.C. McQuen --- development/nodejs/nodejs.SlackBuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'development/nodejs/nodejs.SlackBuild') diff --git a/development/nodejs/nodejs.SlackBuild b/development/nodejs/nodejs.SlackBuild index 5c5564f6c8..a9fc3436e8 100644 --- a/development/nodejs/nodejs.SlackBuild +++ b/development/nodejs/nodejs.SlackBuild @@ -25,8 +25,8 @@ PRGNAM=nodejs SRCNAM=node -VERSION=${VERSION:-4.2.2} -BUILD=${BUILD:-2} +VERSION=${VERSION:-4.2.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -58,6 +58,12 @@ else LIBDIRSUFFIX="" fi +SHAREDOPENSSL="" +## use system openssl if the version number is high enough +if [ "`openssl version | grep '1.0.2'`" ]; then + SHAREDOPENSSL="--shared-openssl" +fi + set -eu rm -rf $PKG @@ -84,7 +90,8 @@ sed -i "s|\"lib\"|\"lib${LIBDIRSUFFIX}\"|" deps/npm/lib/npm.js ./configure \ --prefix=/usr \ - --shared-zlib + --shared-zlib \ + ${SHAREDOPENSSL} make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make install DESTDIR=$PKG -- cgit v1.2.3