aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2021-10-01 21:05:39 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2021-10-01 21:07:50 +0000
commit1a54adbdb84db5f9bac9f561fa0e86b7c2eb6235 (patch)
treed0e0e71a5321d3cc18c375390475fa94a591571e
parent1c108eb9029e1297545181511e8c62818d923e07 (diff)
downloadports-1a54adbdb84db5f9bac9f561fa0e86b7c2eb6235.tar.gz
ports-1a54adbdb84db5f9bac9f561fa0e86b7c2eb6235.zip
emulators/qemu31: UNBREAK for 13.X and later
- Mark DEPRECATED as there are more recent versions in the tree - Update pkg-descr as https://oszoo.org no longer hosts qemu images and is totally an irrelevent site - Do some housekeeping to remove stage-qa errors
-rw-r--r--emulators/qemu31/Makefile29
-rw-r--r--emulators/qemu31/pkg-descr22
-rw-r--r--emulators/qemu31/pkg-plist2
3 files changed, 30 insertions, 23 deletions
diff --git a/emulators/qemu31/Makefile b/emulators/qemu31/Makefile
index 11a84b824980..ef173179cf8f 100644
--- a/emulators/qemu31/Makefile
+++ b/emulators/qemu31/Makefile
@@ -14,13 +14,16 @@ COMMENT?= QEMU CPU Emulator - 3.1.X version
LICENSE= GPLv2
BROKEN_aarch64= fails to build: accel/tcg/user-exec.c:486:36: error: no member named 'pc' in 'struct __mcontext'
+DEPRECATED= Use emulators/qemu or emulators/qemu-devel
+EXPIRATION_DATE=2021-11-01
-LIB_DEPENDS?= libnettle.so:security/nettle \
- libfontconfig.so:x11-fonts/fontconfig \
- libfreetype.so:print/freetype2
+LIB_DEPENDS?= libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2 \
+ libnettle.so:security/nettle
USES?= compiler:c11 cpe gmake gnome pkgconfig bison perl5 \
python:build tar:xz
+USE_GNOME+= libxml2
USE_PERL5= build
PORTSCOUT= limit:^3\.1\.
@@ -42,7 +45,7 @@ STATIC_LINK_DESC= Statically link the executables
USBREDIR_DESC= usb device network redirection (experimental!)
VDE_DESC= vde dependency (for vde networking)
X86_TARGETS_DESC= Build only x86 system targets
-OPTIONS_DEFAULT=X11 GTK3 OPENGL GNUTLS SASL JPEG PNG CDROM_DMA CURL PCAP NCURSES VDE
+OPTIONS_DEFAULT=X11 OPENGL GNUTLS SASL JPEG PNG CDROM_DMA CURL PCAP NCURSES VDE
OPTIONS_SUB= yes
CURL_CONFIGURE_OFF= --disable-curl
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
@@ -52,11 +55,11 @@ DOCS_USES= makeinfo
GNUTLS_CONFIGURE_OFF= --disable-gnutls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GTK3_CONFIGURE_OFF= --disable-gtk --disable-vte
-GTK3_LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon \
- libepoxy.so:graphics/libepoxy \
- libpcre2-8.so:devel/pcre2
+GTK3_LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
+ libpcre2-8.so:devel/pcre2 \
+ libxkbcommon.so:x11/libxkbcommon
GTK3_USE= GNOME=gtk30,vte3,gdkpixbuf2 XORG=x11,xext GL=gbm
-GTK3_USES= gettext gl gnome xorg
+GTK3_USES= gettext gl xorg
JPEG_CONFIGURE_OFF= --disable-vnc-jpeg
JPEG_USES= jpeg
NCURSES_USES= ncurses:base
@@ -84,8 +87,8 @@ X11_CONFIGURE_ENABLE= sdl
X11_USE= SDL=sdl2 XORG=x11,xext
X11_USES= sdl xorg
.if !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX} != "-utils"
-X86_TARGETS_USE_OFF= GNOME=cairo,gdkpixbuf2
-X86_TARGETS_USES_OFF= gnome
+X86_TARGETS_USE_OFF= GNOME=cairo,gdkpixbuf2 XORG=pixman
+X86_TARGETS_USES_OFF= gnome xorg
.endif
PORTDOCS?= docs qemu-doc.html qemu-doc.txt qemu-ga-ref.html qemu-ga-ref.txt \
@@ -123,6 +126,12 @@ MAKE_ARGS+= ARCH=ppc64
CONFIGURE_ARGS+= --sparc_cpu=v9
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300000
+PLIST_SUB+= IVSHMEM=""
+.else
+PLIST_SUB+= IVSHMEM="@comment "
+.endif
+
PLIST_SUB+= LINUXBOOT_DMA=""
post-patch-CDROM_DMA-off:
diff --git a/emulators/qemu31/pkg-descr b/emulators/qemu31/pkg-descr
index 018952f53cf1..c43a6a43c80f 100644
--- a/emulators/qemu31/pkg-descr
+++ b/emulators/qemu31/pkg-descr
@@ -1,19 +1,15 @@
-QEMU is a FAST! processor emulator using dynamic translation to achieve
-good emulation speed.
+QEMU is a FAST! processor emulator using dynamic translation to achieve good
+emulation speed.
QEMU has two operating modes:
- * Full system emulation. In this mode, QEMU emulates a full system
-(for example a PC), including a processor and various peripherials.
-It can be used to launch different Operating Systems without rebooting
-the PC or to debug system code.
- * User mode emulation (Linux host only). In this mode, QEMU can launch
-Linux processes compiled for one CPU on another CPU. It can be used to
-launch the Wine Windows API emulator or to ease cross-compilation and
-cross-debugging.
+ * Full system emulation. In this mode, QEMU emulates a full system (for
+ example a PC), including a processor and various peripherials. It can be
+ used to launch different Operating Systems without rebooting the PC or to
+ debug system code.
+ * User mode emulation (Linux host only). In this mode, QEMU can launch Linux
+ processes compiled for one CPU on another CPU. It can be used to launch the
+ Wine Windows API emulator or to ease cross-compilation and cross-debugging.
As QEMU requires no host kernel patches to run, it is very safe and easy to use.
-See also the preconfigured system images on http://oszoo.org/
-Many live cd isos also work.
-
WWW: http://wiki.qemu.org/Main_Page
diff --git a/emulators/qemu31/pkg-plist b/emulators/qemu31/pkg-plist
index 87b2236d079e..4ee1d3075e11 100644
--- a/emulators/qemu31/pkg-plist
+++ b/emulators/qemu31/pkg-plist
@@ -1,3 +1,5 @@
+%%IVSHMEM%%bin/ivshmem-client
+%%IVSHMEM%%bin/ivshmem-server
bin/qemu-edid
bin/qemu-ga
bin/qemu-i386