nodejs: switch to bundled icu

This commit is contained in:
Michael Gehring 2017-05-01 12:42:00 +00:00
parent 61fbd710ae
commit d0b0a6089a

View file

@ -3,8 +3,8 @@ pkgname=nodejs
version=7.9.0
revision=1
wrksrc=node-v${version}
hostmakedepends="pkg-config python icu"
makedepends="zlib-devel python-devel icu-devel
hostmakedepends="pkg-config python $(vopt_if icu icu)"
makedepends="zlib-devel python-devel $(vopt_if icu icu-devel)
$(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
$(vopt_if http_parser http-parser-devel)"
depends="python"
@ -17,9 +17,10 @@ checksum=5cc131bb16f7ca688c29634a18b3c6a7816609a431a509f31baedf7caf25d626
# TODO: Fix cross compiling
nocross="https://api.travis-ci.org/jobs/208411830/log.txt?deansi=true"
build_options="ssl libuv http_parser"
build_options="ssl libuv http_parser icu"
desc_option_libuv="Enable shared libuv"
desc_option_http_parser="Enable shared http-parser"
desc_option_icu="Enable shared icu"
build_options_default="libuv http_parser"
replaces="iojs>=0"
@ -35,7 +36,8 @@ do_configure() {
*) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}\n" ;;
esac
fi
./configure --prefix=/usr --shared-zlib --with-intl=system-icu \
./configure --prefix=/usr --shared-zlib \
$(vopt_if icu --with-intl=system-icu) \
$(vopt_if http_parser --shared-http-parser) \
$(vopt_if ssl --shared-openssl) \
$(vopt_if libuv --shared-libuv) ${_args}