Skip to content

Commit

Permalink
New package: dosbox-x-2025.02.01
Browse files Browse the repository at this point in the history
  • Loading branch information
MIvanchev committed Feb 15, 2025
1 parent e728034 commit cb1c2bb
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
24 changes: 24 additions & 0 deletions srcpkgs/dosbox-x/patches/missing_includes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp
index ff5cb8ccf..0f8d70525 100644
--- a/src/dos/drive_local.cpp
+++ b/src/dos/drive_local.cpp
@@ -38,6 +38,7 @@
#include <sys/locking.h>
#endif
#include <sys/stat.h>
+#include <fcntl.h>

#include "dosbox.h"
#include "dos_inc.h"
diff --git a/src/ints/bios_vhd.cpp b/src/ints/bios_vhd.cpp
index 8972b1dad..56374b42d 100644
--- a/src/ints/bios_vhd.cpp
+++ b/src/ints/bios_vhd.cpp
@@ -18,6 +18,7 @@
*/

#include <assert.h>
+#include <limits.h>
#include <stdlib.h>
#include <time.h>
#include "dosbox.h"
41 changes: 41 additions & 0 deletions srcpkgs/dosbox-x/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Template file for 'dosbox-x'
pkgname=dosbox-x
version=2025.02.01
revision=1
build_style=gnu-makefile
build_helper=qemu
hostmakedepends="pkg-config which autoconf automake nasm"
makedepends="SDL2-devel SDL2_net-devel
libpcap-devel libslirp-devel fluidsynth-devel libavdevice6
libavformat6 libavcodec6 libswscale6
freetype-devel libxkbfile-devel libXrandr-devel"
depends="hicolor-icon-theme"
short_desc="Cross-platform DOS emulator based on the DOSBox project"
maintainer="Mihail Ivanchev <[email protected]>"
license="GPL-2.0-or-later"
homepage="https://github.com/joncampbell123/dosbox-x"
distfiles="https://github.com/joncampbell123/dosbox-x/archive/refs/tags/dosbox-x-v${version}.tar.gz"
checksum=3a6fdfd659bb05db82bf2d850af806f666562cce9a37609fd33b59f7e4bd8fa4
build_options="debug"
desc_option_png="Enable debugging mode"

do_build() {
if [ "$CROSS_BUILD" ]; then
# Host argument for the main build script
host="--host=${XBPS_CROSS_TRIPLET}"
# For the vs/sdlnet/build-dosbox.sh subscript
export opts=" --host=${XBPS_CROSS_TRIPLET}"
fi

if [ -z "$build_option_debug" ]; then
vsed -i build-sdl2 -e 's/--enable-debug//'
fi

vsed -i vs/sdlnet/build-dosbox.sh -e 's/^opts=$//'

# Patch the oddly specific number of build jobs.
vsed -i build-sdl2 -e 's/-j3/'$makejobs'/g'
vsed -i vs/sdlnet/build-dosbox.sh -e 's/-j3/'$makejobs'/g'

./build-sdl2 $host
}

0 comments on commit cb1c2bb

Please sign in to comment.