blob: 2c2cd45e0ca226d6fd41da9d3ecd9cb9fe99053a (
plain) (
blame)
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
|
PORTNAME= qemu-powernv
PORTVERSION= 3.0.50
PORTREVISION= 4
CATEGORIES= emulators
MASTER_SITES= http://people.freebsd.org/~kbowling/distfiles/
MAINTAINER= kbowling@FreeBSD.org
COMMENT= Fork of QEMU with experimental PowerNV emulation support
LICENSE= GPLv2
BROKEN_riscv64= fails to build: qemu-powernv-3.0.50_2.log: Unsupported CPU = riscv, try --enable-tcg-interpreter
BUILD_DEPENDS= ${LOCALBASE}/lib/libfdt.so:sysutils/dtc
USES= bison:build compiler:c11 gmake gnome libtool makeinfo \
pkgconfig python:build tar:bz2 xorg
USE_XORG= pixman
USE_GNOME= glib20 libxml2
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--target-list=ppc64-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 \
--datadir=${DATADIR} \
--python=${PYTHON_CMD}
PLIST_FILES= bin/qemu-system-powernv \
${DATADIR}/qemu/skiboot.lid \
${DATADIR}/qemu/slof.bin \
${DATADIR}/qemu/spapr-rtas.bin
# remap names to avoid conflicts with mainline port
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ppc64-softmmu/qemu-system-ppc64 ${STAGEDIR}${PREFIX}/bin/qemu-system-powernv
${MKDIR} ${STAGEDIR}${DATADIR}/qemu
${INSTALL_DATA} ${WRKSRC}/pc-bios/skiboot.lid ${STAGEDIR}${DATADIR}/qemu/skiboot.lid
${INSTALL_DATA} ${WRKSRC}/pc-bios/slof.bin ${STAGEDIR}${DATADIR}/qemu/slof.bin
${INSTALL_DATA} ${WRKSRC}/pc-bios/spapr-rtas.bin ${STAGEDIR}${DATADIR}/qemu/spapr-rtas.bin
.include <bsd.port.mk>
|