thfr 64887e2bd9 update to 1.11
now with the actual resolve() for uv.c from Motion Twin
tested and working with Dead Cells and Northgard
2020-05-19 19:36:53 +00:00

52 lines
972 B
Makefile

# $OpenBSD: Makefile,v 1.4 2020/05/19 19:36:53 thfr 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}
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>