mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
181d53c126
Adapt bctoolbox to stop (ab)using the MBEDTLS_THREADING_ALT, supposedly incompatible with MBEDTLS_THREADING_C which ought to be sufficient. Adapt haxe to avoid using removed interfaces, partly inspired by https://github.com/HaxeFoundation/haxe/pull/11646 ok sthen, no objection from landry@ (bctoolbox) and thfr@ (haxe) Issues fixed by this switch: https://github.com/Mbed-TLS/mbedtls-docs/blob/main/security-advisories/mbedtls-security-advisory-2024-03.md https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-1/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-2/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-3/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-10-1/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-03-2/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-03-1/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-06-1/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-06-2/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-06-3/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-06-4/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-06-5/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-06-6/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-06-7/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-10-invalid-padding-error/ https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2025-10-ssbleed-mstep/
71 lines
1.4 KiB
Makefile
71 lines
1.4 KiB
Makefile
# JIT not working on aarch64; ongoing work at
|
|
# https://github.com/HaxeFoundation/hashlink/pull/857
|
|
NOT_FOR_ARCHS = aarch64
|
|
|
|
# JIT segfaults without USE_WXNEEDED
|
|
USE_WXNEEDED = Yes
|
|
|
|
USE_NOBTCFI = Yes
|
|
|
|
COMMENT = virtual machine for Haxe
|
|
|
|
V = 1.15pl0
|
|
COMMIT = 109f831769ab26a6fa0cf08ef1b926776a77c372
|
|
PKGNAME = hashlink-${V}
|
|
REVISION = 1
|
|
|
|
# commit from 2026-01-05; tagged as 'latest'
|
|
DIST_TUPLE += github HaxeFoundation hashlink ${COMMIT} .
|
|
|
|
SHARED_LIBS += hl 2.2 # 1.14
|
|
SHARED_LIBS += hl_module 0.0 # 1.13
|
|
|
|
CATEGORIES = lang
|
|
HOMEPAGE = https://hashlink.haxe.org/
|
|
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL SDL2 c m mbedcrypto mbedtls mbedx509
|
|
WANTLIB += openal png pthread sqlite3 turbojpeg uv vorbisfile z
|
|
|
|
# C++, C11
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
LIB_DEPENDS = audio/libvorbis \
|
|
audio/openal \
|
|
databases/sqlite3 \
|
|
devel/libuv \
|
|
devel/sdl2 \
|
|
graphics/jpeg \
|
|
graphics/png \
|
|
security/mbedtls
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
SUBST_VARS += CFLAGS LDFLAGS
|
|
|
|
FIX_CRLF_FILES = libs/uv/uv.c \
|
|
src/hl.h \
|
|
src/jit.c \
|
|
src/std/socket.c \
|
|
src/std/thread.c
|
|
|
|
NO_TEST = Yes
|
|
|
|
WRKDIST = ${WRKDIR}/hashlink-${COMMIT}
|
|
|
|
CFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include
|
|
LDFLAGS += -L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
post-extract:
|
|
rm -rf ${WRKSRC}/include/{fmt,turbojpeg}
|
|
|
|
do-gen:
|
|
${SUBST_CMD} ${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.mk>
|