summaryrefslogtreecommitdiff
path: root/emulators/qemu-riscv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-riscv/Makefile')
-rw-r--r--emulators/qemu-riscv/Makefile130
1 files changed, 0 insertions, 130 deletions
diff --git a/emulators/qemu-riscv/Makefile b/emulators/qemu-riscv/Makefile
deleted file mode 100644
index b47052b..0000000
--- a/emulators/qemu-riscv/Makefile
+++ /dev/null
@@ -1,130 +0,0 @@
1DPB_PROPERTIES= parallel
2
3COMMENT= multi system emulator
4
5VERSION= 2.12.1
6PKGNAME= qemu-riscv-${VERSION}
7DISTNAME= qemu-${VERSION}
8REVISION= 0
9CATEGORIES= emulators
10MASTER_SITES= https://download.qemu.org/
11EXTRACT_SUFX= .tar.xz
12
13HOMEPAGE= https://www.qemu.org/
14
15MAINTAINER= Brad Smith <brad@comstyle.com>
16
17# GPLv2, LGPLv2 and BSD
18PERMIT_PACKAGE= Yes
19
20WANTLIB= c pthread fdt m util
21
22DEBUG_PACKAGES= ${BUILD_PACKAGES}
23
24# Using TLS emulation layer
25COMPILER= base-clang ports-gcc
26
27LIB_DEPENDS= devel/dtc
28
29MAKE_ENV= V=1
30FAKE_FLAGS= qemu_confdir=${PREFIX}/share/examples/qemu
31
32CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
33LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
34
35# until the system headers are fixed properly.
36CFLAGS+= -Wno-redundant-decls
37
38MODULES= lang/python
39MODPY_RUN_DEPENDS= No
40
41SEPARATE_BUILD= Yes
42USE_GMAKE= Yes
43CONFIGURE_STYLE=simple
44CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
45CONFIGURE_ARGS= --localstatedir=${LOCALSTATEDIR} \
46 --prefix=${PREFIX} \
47 --sysconfdir=${SYSCONFDIR} \
48 --mandir=${PREFIX}/man \
49 --cc="${CC}" \
50 --cxx=/dev/null \
51 --host-cc="${CC}" \
52 --target-list=riscv32-softmmu,riscv64-softmmu \
53 --audio-drv-list= \
54 --disable-user \
55 --disable-linux-user \
56 --disable-bsd-user \
57 --disable-docs \
58 --disable-guest-agent \
59 --disable-modules \
60 --disable-gnutls \
61 --disable-nettle \
62 --disable-gcrypt \
63 --disable-sdl \
64 --disable-gtk \
65 --disable-vte \
66 --disable-vnc \
67 --disable-virtfs \
68 --disable-mpath \
69 --disable-xen \
70 --disable-brlapi \
71 --disable-curl \
72 --disable-bluez \
73 --disable-rdma \
74 --disable-vde \
75 --disable-netmap \
76 --disable-cap-ng \
77 --disable-attr \
78 --disable-vhost-net \
79 --disable-vhost-crypto \
80 --disable-spice \
81 --disable-rbd \
82 --disable-libiscsi \
83 --disable-libnfs \
84 --disable-smartcard \
85 --disable-libusb \
86 --disable-live-block-migration \
87 --disable-usb-redir \
88 --disable-lzo \
89 --disable-snappy \
90 --disable-bzip2 \
91 --disable-glusterfs \
92 --disable-tpm \
93 --disable-libssh2 \
94 --disable-numa \
95 --disable-libxml2 \
96 --disable-replication \
97 --disable-vhost-vsock \
98 --disable-opengl \
99 --disable-virglrenderer \
100 --disable-xfsctl \
101 --disable-qom-cast-debug \
102 --disable-vxhs \
103 --disable-crypto-afalg \
104 --disable-vhost-user \
105 --disable-capstone
106
107FLAVORS= debug
108FLAVOR?=
109
110.if ${FLAVOR:Mdebug}
111CFLAGS+= -O0
112CONFIGURE_ARGS+=--enable-debug
113INSTALL_STRIP=
114.else
115CONFIGURE_ARGS+=--disable-debug-info
116.endif
117
118TEST_TARGET= check
119
120# XXX Optimizer bug, using -O2 causes segfaults, -O1 linking errors
121.if ${MACHINE_ARCH:Mpowerpc}
122CFLAGS+= -O0
123.endif
124
125.include <bsd.port.arch.mk>
126
127post-install:
128 ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qemu
129
130.include <bsd.port.mk>