nodejs: added optional deps c-ares and nghttp2-libs

This commit is contained in:
Danny Rawlins 2021-06-26 23:47:27 +10:00
parent 1aa6cbb4bb
commit 893a70e8e4
2 changed files with 8 additions and 10 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/UDHUtjbcBZyJnAi2F9+G9wEQOAPdPgTJ/udQ1IO+rUTodRiF49H+qJVjIn40XZm53yFyNEoKfkn5Y+sg6JVtAg=
SHA256 (Pkgfile) = 7405cb308f289c625512cf568d8eb48b3d6b692274b6b2107c45e7138918f855
RWSE3ohX2g5d/UguDSjaC9/nWBKZSIbhXXBDb/Zrzmotsdb+v2+xrmd1bkwc033aaNW5zytEawMNmQG5m5FzsGgEJP4zrAEUWQ4=
SHA256 (Pkgfile) = ab0e1e3ae9df95347de522ba9d6c1e0e7735e3ef8816657932d67f3ff0b78e50
SHA256 (.footprint) = 23156b02d6e0e18eb9407fb63577b9e1c89fa3ac9f768c5c1614af6991c60b67
SHA256 (node-v16.4.0.tar.xz) = f91e212e0b64d5fa745b15da4b8ac504acf72fb9216bfa77d3f66ca0e178c81d

View File

@ -2,9 +2,7 @@
# URL: https://nodejs.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: openssl libuv zlib
# Optional: icu brotli ninja
# c-ares wait until a newer release than 1.16.1
# Optional: brotli c-ares icu nghttp2-libs ninja
name=nodejs
version=16.4.0
@ -14,9 +12,11 @@ source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
build() {
cd node-v$version
[ -e '/usr/lib/pkgconfig/icu-i18n.pc' ] && PKGMK_NODEJS+=' --with-intl=system-icu'
[ -e '/usr/lib/pkgconfig/libbrotlicommon.pc' ] && PKGMK_NODEJS+=' --shared-brotli'
[ -e '/usr/bin/ninja' ] && PKGMK_NODEJS+=' --ninja'
prt-get isinst brotli && PKGMK_NODEJS+=' --shared-brotli'
prt-get isinst c-ares && PKGMK_NODEJS+=' --shared-cares'
prt-get isinst icu && PKGMK_NODEJS+=' --with-intl=system-icu'
prt-get isinst nghttp2-libs && PKGMK_NODEJS+=' --experimental-http-parser --shared-nghttp2'
prt-get isinst ninja && PKGMK_NODEJS+=' --ninja'
./configure ${PKGMK_NODEJS} \
--prefix=/usr \
@ -24,7 +24,6 @@ build() {
--shared-libuv \
--shared-zlib \
--shared-openssl
# -shared-cares
make
make DESTDIR=$PKG install
@ -39,5 +38,4 @@ build() {
-name 'TODO.org' -o \
-name 'ChangeLog' -o \
-name 'NEWS' \) -delete
}