freebsd-ports/emulators/unicorn/Makefile
Mark Linimon bf43557044 For ports that are marked BROKEN on armv6, and also fail to build on
armv7, mark them so.

This is part two of a multipart commit to bring armv7 ports to parity
with armv6.

Approved by:	portmgr (tier-2 blanket)
Obtained from:	lonesome.com -exp run
2017-11-30 06:13:34 +00:00

38 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= unicorn
PORTVERSION= 1.0.1
CATEGORIES= emulators
MAINTAINER= antoine@FreeBSD.org
COMMENT= Unicorn CPU emulator framework
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
TEST_DEPENDS= cmocka>0:sysutils/cmocka
BROKEN_armv6= fails to compile: 'tcg-target.h' file not found
BROKEN_armv7= fails to compile: 'tcg-target.h' file not found
BROKEN_mips= fails to compile: 'ICACHE' undeclared (first use in this function)
BROKEN_mips64= fails to compile: 'ICACHE' undeclared (first use in this function)
BROKEN_powerpc64= fails to compile: cc1: unrecognized command line option "-Wno-logical-op-parentheses"
USE_GITHUB= yes
GH_ACCOUNT= unicorn-engine
USES= gmake python:2.7,build
USE_LDCONFIG= yes
MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \
UNICORN_QEMU_FLAGS=--python=${PYTHON_CMD} \
SMP_MFLAGS=-j${MAKE_JOBS_NUMBER} \
V=1
TEST_TARGET= test
TEST_WRKSRC= ${WRKSRC}/tests/unit
_MAKE_JOBS= # MAKE_JOBS_NUMBER is passed via MAKE_ENV
# Optimization breaks runtime,
# see https://github.com/unicorn-engine/unicorn/issues/356
# and https://github.com/unicorn-engine/unicorn/issues/689
CFLAGS:= ${CFLAGS:C/-O[1-9]/-O0/g}
.include <bsd.port.mk>