devel/emscripten: Update 3.1.18 → 3.1.42
This commit is contained in:
parent
df1bdb03e8
commit
f76c1dc351
3 changed files with 479 additions and 67 deletions
|
@ -1,5 +1,5 @@
|
|||
PORTNAME= emscripten
|
||||
DISTVERSION= 3.1.18
|
||||
DISTVERSION= 3.1.42
|
||||
CATEGORIES= devel www
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
@ -15,8 +15,10 @@ RUN_DEPENDS= llvm-devel>0:devel/llvm-devel \
|
|||
# the upstream requires to use either the latest llvm version, or their own llvm fork called emscripten-fastcomp
|
||||
|
||||
USES= nodejs:run python shebangfix
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= emscripten-core
|
||||
|
||||
SHEBANG_FILES= ${PYSCRIPTS} emcmake system/bin/sdl-config system/bin/sdl2-config
|
||||
SHEBANG_GLOB= *.py *.sh
|
||||
|
||||
|
@ -25,12 +27,16 @@ PYSCRIPTS= em++ em-config emar embuilder emcc emcmake emconfigure emmake emranli
|
|||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} CLANG_CC=${LOCALBASE}/bin/clang-devel
|
||||
|
||||
BINARY_ALIAS= python=${PYTHON_CMD} # for tests
|
||||
|
||||
PORTSCOUT= limit:^\d+\. # prevent i64
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -i '' -E " \
|
||||
s|BINARYEN_ROOT = None|BINARYEN_ROOT = '${LOCALBASE}'| ; \
|
||||
s|LLVM_ROOT = None|LLVM_ROOT = '${LOCALBASE}'| ; \
|
||||
s|LLVM_ROOT = None|LLVM_ROOT = '${LOCALBASE}/bin'| ; \
|
||||
s|LLVM_ADD_VERSION = None|LLVM_ADD_VERSION = 'devel'| ; \
|
||||
s|CLANG_ADD_VERSION = None|CLANG_ADD_VERSION = 'devel'| ; \
|
||||
s|^__rootpath__ = .*|__rootpath__ = '${PREFIX}/lib/${PORTNAME}'| ; \
|
||||
|
@ -50,4 +56,10 @@ do-install: # the native install target installs files into root, see https://gi
|
|||
${RLN} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${s} ${STAGEDIR}${PREFIX}/bin/${s}
|
||||
.endfor
|
||||
|
||||
do-test: # see https://emscripten.org/docs/getting_started/test-suite.html ; there are errors, see https://github.com/emscripten-core/emscripten/issues/19727
|
||||
@cd ${WRKSRC} && \
|
||||
${SETENV} ${TEST_ENV} test/runner test_loop && \
|
||||
${SETENV} ${TEST_ENV} test/runner core3.test_*i64* && \
|
||||
${SETENV} ${TEST_ENV} test/runner wasm2js1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1659471419
|
||||
SHA256 (emscripten-core-emscripten-3.1.18_GH0.tar.gz) = 530207656d577a1487ba2f3487b3d8250ae831205e910c7e492037d6ad706291
|
||||
SIZE (emscripten-core-emscripten-3.1.18_GH0.tar.gz) = 28482009
|
||||
TIMESTAMP = 1687886163
|
||||
SHA256 (emscripten-core-emscripten-3.1.42_GH0.tar.gz) = d1b4897d05f3a3990c784eef4ffa2cf11dd3e88584952dabfe57d76f5ae75c08
|
||||
SIZE (emscripten-core-emscripten-3.1.42_GH0.tar.gz) = 28890732
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue