1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/lang/hermes/Makefile
Yuri Victorovich c2dce588a5 lang/hermes: Broken on i386
Reported by:	fallout
2020-09-19 19:00:51 +00:00

42 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= hermes
DISTVERSIONPREFIX= v
DISTVERSION= 0.7.0
CATEGORIES= lang
PKGNAMESUFFIX= -javascript-engine
MAINTAINER= yuri@FreeBSD.org
COMMENT= JavaScript engine
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_i386= https://github.com/facebook/hermes/issues/356
LIB_DEPENDS= libicui18n.so:devel/icu
TEST_DEPENDS= zip:archivers/zip
USES= cmake compiler:c++11-lang python:test
USE_GITHUB= yes
GH_ACCOUNT= facebook
USE_LDCONFIG= yes
CMAKE_OFF= HERMES_ENABLE_TEST_SUITE
BINARY_ALIAS= python=${PYTHON_CMD} python3=${PYTHON_CMD}
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1201518
BROKEN= needs pthread_getname_np from OSVERSION 1201518 or above
.endif
do-test: # some tests are known to fail: https://github.com/facebook/hermes/issues/347
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DHERMES_ENABLE_TEST_SUITE:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check-hermes
.include <bsd.port.mk>