ends up with using uint16_t for char16_t. Do the same in one step for !clang. ok thfr@ (maintainer)
53 lines
985 B
Makefile
53 lines
985 B
Makefile
# $OpenBSD: Makefile,v 1.5 2020/08/01 02:59:33 kmos Exp $
|
|
|
|
# JIT segfaults without USE_WXNEEDED
|
|
USE_WXNEEDED = Yes
|
|
|
|
COMMENT = virtual machine for Haxe
|
|
|
|
V = 1.11
|
|
GH_ACCOUNT = HaxeFoundation
|
|
GH_PROJECT = hashlink
|
|
GH_TAGNAME = ${V}
|
|
REVISION = 0
|
|
|
|
SHARED_LIBS = hl 0.1 # 1.11
|
|
|
|
CATEGORIES = lang
|
|
HOMEPAGE = https://hashlink.haxe.org/
|
|
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += SDL2 c m mbedcrypto mbedtls mbedx509 openal png pthread
|
|
WANTLIB += turbojpeg uv vorbisfile z
|
|
|
|
# C11
|
|
COMPILER = base-clang ports-gcc
|
|
COMPILER_LANGS = c
|
|
|
|
LIB_DEPENDS = audio/openal \
|
|
devel/libuv \
|
|
devel/sdl2 \
|
|
graphics/jpeg \
|
|
graphics/png \
|
|
security/polarssl
|
|
|
|
USE_GMAKE = Yes
|
|
SUBST_VARS += CFLAGS
|
|
|
|
post-extract:
|
|
rm -rf ${WRKSRC}/include/{fmt,turbojpeg}
|
|
# remove dos line endings
|
|
cd ${WRKSRC} && perl -i -pe 's/\r$$//' \
|
|
libs/uv/uv.c \
|
|
src/hl.h \
|
|
src/std/socket.c \
|
|
src/std/thread.c
|
|
|
|
do-gen:
|
|
${SUBST_CMD} ${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.mk>
|