mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Ports: Add Bochs x86 PC emulator
This commit is contained in:
parent
898be38517
commit
ceb9f43ed5
Notes:
sideshowbarker
2024-07-17 18:22:11 +09:00
Author: https://github.com/rouseabout Commit: https://github.com/SerenityOS/serenity/commit/ceb9f43ed5 Pull-request: https://github.com/SerenityOS/serenity/pull/12721
4 changed files with 50 additions and 0 deletions
|
@ -11,6 +11,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
|
|||
| [`bc`](bc/) | bc | 5.1.1 | https://github.com/gavinhoward/bc |
|
||||
| [`binutils`](binutils/) | GNU Binutils | 2.38 | https://www.gnu.org/software/binutils/ |
|
||||
| [`bison`](bison/) | GNU Bison | 1.25 | https://www.gnu.org/software/bison/ |
|
||||
| [`bochs`](bochs/) | Bochs x86 PC emulator | 2.7 | https://sourceforge.net/projects/bochs/ |
|
||||
| [`brogue`](brogue/) | BrogueCE | 1.9.3 | https://github.com/tmewett/BrogueCE |
|
||||
| [`byacc`](byacc/) | Berkeley Yacc | 20210808 | https://invisible-island.net/byacc/byacc.html |
|
||||
| [`bzip2`](bzip2/) | bzip2 | 1.0.8 | https://sourceware.org/bzip2/ |
|
||||
|
|
9
Ports/bochs/package.sh
Executable file
9
Ports/bochs/package.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=bochs
|
||||
version=2.7
|
||||
depends=("SDL2")
|
||||
files="https://download.sourceforge.net/project/bochs/bochs/$version/bochs-$version.tar.gz bochs-${version}.tar.gz a010ab1bfdc72ac5a08d2e2412cd471c0febd66af1d9349bc0d796879de5b17a"
|
||||
auth_type=sha256
|
||||
useconfigure=true
|
||||
use_fresh_config_sub=true
|
||||
configopts=("--with-sdl2")
|
9
Ports/bochs/patches/ReadMe.md
Normal file
9
Ports/bochs/patches/ReadMe.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Patches for bochs on SerenityOS
|
||||
|
||||
## `use-pkg_config-sdl2.patch`
|
||||
|
||||
Modifies configure to use `pkg_config` to detect SDL2 installed on
|
||||
SerenityOS.
|
||||
|
||||
Without this patch, configure uses `sdl2_config` and will detect SDL2
|
||||
installed on the host system.
|
31
Ports/bochs/patches/use-pkg_config-sdl2.patch
Normal file
31
Ports/bochs/patches/use-pkg_config-sdl2.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
diff --git a/configure b/configure
|
||||
index 5cc4088..d2bff12 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -24060,7 +24060,7 @@ fi
|
||||
fi
|
||||
$as_echo "#define BX_HAVE_SOUND_SDL 1" >>confdefs.h
|
||||
|
||||
- SDL2_VERSION=`sdl2-config --version`
|
||||
+ SDL2_VERSION=`pkg-config sdl2 --version`
|
||||
# SDL version >= 2.0.5 supports audio capture
|
||||
sdl2_audio_capture=0
|
||||
|
||||
@@ -24703,14 +24703,14 @@ if test "$with_sdl2" = yes; then
|
||||
SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL2)"
|
||||
# GUI_*FLAGS are added to the compilation of every bochs file, not just
|
||||
# the files in gui/*.cc.
|
||||
- SDL2_CFLAGS=`sdl2-config --cflags`
|
||||
+ SDL2_CFLAGS=`pkg-config sdl2 --cflags`
|
||||
GUI_CFLAGS="$GUI_CFLAGS $SDL2_CFLAGS"
|
||||
GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL2_CFLAGS"
|
||||
- GUI_LINK_OPTS_SDL2="`sdl2-config --libs`"
|
||||
+ GUI_LINK_OPTS_SDL2="`pkg-config sdl2 --libs`"
|
||||
GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL2)"
|
||||
# The plugin version uses multi-threading support in Bochs core
|
||||
if test "$bx_plugins" = 1; then
|
||||
- NONPLUGIN_GUI_LINK_OPTS="`sdl2-config --libs`"
|
||||
+ NONPLUGIN_GUI_LINK_OPTS="`pkg-config sdl2 --libs`"
|
||||
fi
|
||||
# The enhanced X debugger depends on GTK2
|
||||
if test "$gui_debugger" = 1 -a "$DEFAULT_GUI" != win32; then
|
Loading…
Reference in a new issue