freebsd-ports/emulators/unicorn/Makefile

37 lines
1.1 KiB
Makefile
Raw Normal View History

PORTNAME= unicorn
2020-12-27 21:11:58 +01:00
DISTVERSION= 1.0.2
CATEGORIES= emulators
MAINTAINER= antoine@FreeBSD.org
COMMENT= Unicorn CPU emulator framework
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
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_riscv64= fails to compile: 'tcg-target.h' file not found
TEST_DEPENDS= cmocka>0:sysutils/cmocka
USE_GITHUB= yes
GH_ACCOUNT= unicorn-engine
USES= compiler:c11 gmake python:build
USE_LDCONFIG= yes
BINARY_ALIAS= python=${PYTHON_CMD}
MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \
2017-04-30 12:45:06 +02:00
SMP_MFLAGS=-j${MAKE_JOBS_NUMBER} \
V=1
TEST_TARGET= test
TEST_WRKSRC= ${WRKSRC}/tests/unit
2017-02-25 14:09:55 +01:00
_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>