2016-09-01 10:53:26 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2016/09/01 10:53:27 jasper Exp $
ONLY_FOR_ARCHS = amd64 arm i386 mips64 mips64el powerpc sparc64
BROKEN-arm = missing atomic ops (both AO_* and gcc builtin)
BROKEN-sparc64 = undefined reference to `AO_fetch_compare_and_swap_full'
COMMENT = virtual machine for nqp/rakudo
V = 2016.07
DISTNAME = MoarVM-$V
PKGNAME = moarvm-$V
SHARED_LIBS = moar 6.0
CATEGORIES = lang
HOMEPAGE = http://moarvm.org/
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
# Artistic2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = atomic_ops c ffi kvm m pthread
MASTER_SITES = http://moarvm.org/releases/
BUILD_DEPENDS = math/libtommath
LIB_DEPENDS = devel/libffi \
devel/boehm-gc,-atomic
MAKE_FLAGS = NOISY=1
CONFIGURE_STYLE = simple
CONFIGURE_SCRIPT = /usr/bin/perl Configure.pl
CONFIGURE_ARGS += --cc="${CC}" --ld="${CC}" --optimize=0 \
--prefix="${PREFIX}" \
--has-libtommath \
--has-libffi \
--has-libatomic_ops
CONFIGURE_ENV = SO_VERSION="${LIBmoar_VERSION}" \
CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
NO_TEST = Yes
.include <bsd.port.mk>