Files
ports/lang/quickjs/Makefile
T
sthen 223dd2dcf0 set COMPILER_LANGS=c for various C-only ports
add annotations near COMPILER for some other ports that don't have
COMPILER_LIBCXX in WANTLIB

not changing the actual compiler version of anything here (some could
possibly remove the COMPILER line completely where they only used
COMPILER due to an old WANTLIB entry which has since stopped using
C++, but changing that is too likely to break things)
2025-01-28 11:22:02 +00:00

37 lines
669 B
Makefile

COMMENT = small, embeddable JavaScript engine in C
V = 2024.01.13
DISTNAME = quickjs-${V:S/./-/g}
PKGNAME = quickjs-${V}
REVISION = 0
CATEGORIES = lang
HOMEPAGE = https://bellard.org/quickjs/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# MIT
PERMIT_PACKAGE = Yes
WANTLIB += c m pthread
SITES = https://bellard.org/quickjs/
EXTRACT_SUFX = .tar.xz
# Requires stdatomic
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
USE_GMAKE = Yes
MAKE_FLAGS = CC="${CC}"
# Fix "undefined reference to `__atomic_store_8'"
.if ${MACHINE_ARCH:Mhppa}
WANTLIB += atomic
MAKE_FLAGS += LDFLAGS="${LDFLAGS} -latomic"
.endif
FAKE_FLAGS = DESTDIR=""
.include <bsd.port.mk>