diff options
Diffstat (limited to 'repos/extra/nodejs/abuild')
| -rw-r--r-- | repos/extra/nodejs/abuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/repos/extra/nodejs/abuild b/repos/extra/nodejs/abuild index 179a64d8..c3b4e261 100644 --- a/repos/extra/nodejs/abuild +++ b/repos/extra/nodejs/abuild @@ -4,13 +4,23 @@ release=1 source="https://$name.org/dist/v$version/node-v$version.tar.xz" build() { - ./configure --prefix=/usr \ - --shared-cares \ - --shared-libuv \ - --shared-openssl \ - --shared-nghttp2 \ - --shared-zlib \ - --with-intl=system-icu + # use system openssl when openssl installed + if [ -f $SPM_PKGDB/openssl ]; then + _opt="--shared-openssl" + fi + # use ninja when ninja/samurai installed + if [ -f $SPM_PKGDB/ninja ] || [ -f $SPM_PKGDB/samurai ]; then + _opt="$_opt --ninja" + fi + ./configure \ + --prefix=/usr \ + --shared-cares \ + --shared-libuv \ + --shared-nghttp2 \ + --shared-nghttp3 \ + --shared-zlib \ + --with-intl=system-icu \ + $_opt make make install } |