blob: 15274885bea12359e076796e3a988160245cf41c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $FreeBSD$
PORTNAME= qemu
PORTVERSION= 2.7.50
PORTREVISION= 20170306
CATEGORIES= emulators
PKGNAMESUFFIX?= -riscv
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= QEMU with RISC-V (RV64GC, RV32GC) emulation support
LICENSE= GPLv2
BROKEN_powerpc64= fails to compile: async.c: internal compiler error: Segmentation fault
USE_GITHUB= yes
GH_ACCOUNT= riscv
GH_PROJECT= riscv-qemu
GH_TAGNAME= 2094f39
HAS_CONFIGURE= yes
USES= gmake libtool makeinfo pkgconfig python:2,build
USE_XORG= pixman
USE_GNOME+= glib20
ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64
CONFIGURE_ARGS+=--target-list=riscv64-softmmu,riscv32-softmmu \
--cc=${CC} \
--disable-curl \
--disable-docs \
--disable-gtk \
--disable-gcrypt \
--disable-kvm \
--disable-libssh2 \
--disable-linux-aio \
--disable-linux-user \
--disable-vnc \
--disable-sdl \
--disable-nettle \
--disable-gnutls \
--disable-vte \
--disable-xen \
--extra-cflags=-I${WRKSRC}\ -I${LOCALBASE}/include\ -DPREFIX=\\\"\"${PREFIX}\\\"\" \
--extra-ldflags=-L\"${LOCALBASE}/lib\" \
--localstatedir=/var \
--python=${PYTHON_CMD}
PLIST_FILES= bin/qemu-system-riscv32 \
bin/qemu-system-riscv64
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1100000
IGNORE= does not build
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/riscv32-softmmu/qemu-system-riscv32 ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/riscv64-softmmu/qemu-system-riscv64 ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.post.mk>
|