From 0fdddc32842077a03f0ef8c47d47b89b73cb86a7 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Fri, 26 Jan 2018 22:38:02 -0600 Subject: Update emscripten and nodejs --- .../build-utils/emscripten-fastcomp/Buildrules | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules') diff --git a/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules b/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules index ee7ba32..6032f13 100644 --- a/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules +++ b/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules @@ -1,14 +1,29 @@ -VERSION="1.35.9" +VERSION="1.37.28" DESCRIPTION="LLVM with the emscripten fastcomp javascript backend." SOURCE_URI=" git://github.com/kripken/${NAME}.git?${VERSION}&archive=${NAME}-${VERSION}.${ARCHIVE_FORMAT} git://github.com/kripken/${NAME}-clang.git?${VERSION}&archive=${NAME}-clang-${VERSION}.${ARCHIVE_FORMAT} " -CONFIG_OPTS="--enable-optimized --disable-assertions --enable-targets=host,js" pkg_prep() { mv "${W}/${NAME}-clang-${VERSION}" "${S}/tools/clang" } +pkg_compile() { + mkdir "${S}/build" + cd "${S}/build" + cmake -G "Unix Makefiles" \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_TARGETS_TO_BUILD="X86;JSBackend" \ + -DLLVM_INCLUDE_EXAMPLES=OFF \ + -DLLVM_INCLUDE_TESTS=OFF \ + -DCLANG_INCLUDE_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX="${SYSROOT}/${TOOLDIR}" \ + "${S}" + make "${MAKE_OPTS}" + make DESTDIR="${D}" install + toolchain_fixup "${D}" +} + # vim: syntax=sh -- cgit v1.2.3-18-g5258