jca eaf409c2ea Unbreak non-amd64: check __LP64__ to detect 64 bits host OS
This fixes pointer truncation on sparc64 and probably mips64.
Bump REVISION since quickjs previously built on arm64 but with
different bignum sizing.

ok cwen@ bcallah@ (maintainer)
2020-01-15 14:30:50 +00:00

36 lines
709 B
Makefile

# $OpenBSD: Makefile,v 1.4 2020/01/15 14:30:50 jca Exp $
COMMENT = small, embeddable JavaScript engine in C
V = 2019.10.27
REVISION = 0
DISTNAME = quickjs-${V:S/./-/g}
PKGNAME = quickjs-${V}
CATEGORIES = lang
HOMEPAGE = https://bellard.org/quickjs/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# MIT
PERMIT_PACKAGE = Yes
WANTLIB += c m
MASTER_SITES = https://bellard.org/quickjs/
EXTRACT_SUFX = .tar.xz
# Requires stdatomic
COMPILER = base-clang ports-gcc
USE_GMAKE = Yes
MAKE_FLAGS = CC="${CC}"
# Fix "undefined reference to `__atomic_store_8'"
.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Mhppa}
WANTLIB += atomic
MAKE_FLAGS += LDFLAGS="${LDFLAGS} -latomic"
.endif
.include <bsd.port.mk>