48 lines
964 B
Makefile

# $OpenBSD: Makefile,v 1.17 2021/11/02 00:01:03 sthen Exp $
BROKEN-sparc64 = multiple definition of use_vis3_instructions
BROKEN-riscv64 = /usr/ports/pobj/py-unicorn-1.0.2-python3/unicorn-1.0.2/src/qemu/tcg/tcg.h:30:10: fatal error: 'tcg-target.h' file not found
COMMENT = Unicorn CPU emulator engine
MODPY_EGG_VERSION = 1.0.3
DISTNAME = unicorn-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 0
CATEGORIES = devel
HOMEPAGE = https://www.unicorn-engine.org
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB += m
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR = python3
USE_GMAKE = Yes
MAKE_ENV += V=1
# our ld.bfd has no '-Bsymbolic-functions' option support
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mlld}
MAKE_ENV += LD_IS_LLD=1
.else
MAKE_ENV += LD_IS_LLD=0
.endif
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/Makefile
.include <bsd.port.mk>