diff options
author | Alice Sell <quarkyalice@disroot.org> | 2022-07-07 13:04:48 -0700 |
---|---|---|
committer | Alice Sell <quarkyalice@disroot.org> | 2022-07-07 13:08:00 -0700 |
commit | 8ac2e455c466f3fc136da27a15a66069ac3e48fc (patch) | |
tree | 548234a333b9695ffc6152978b2d8390d584d804 /games-emulation/dosbox-x | |
download | alicela1n-8ac2e455c466f3fc136da27a15a66069ac3e48fc.tar.gz alicela1n-8ac2e455c466f3fc136da27a15a66069ac3e48fc.tar.bz2 alicela1n-8ac2e455c466f3fc136da27a15a66069ac3e48fc.zip |
initial commit
Signed-off-by: Alice Sell <quarkyalice@disroot.org>
Diffstat (limited to 'games-emulation/dosbox-x')
-rw-r--r-- | games-emulation/dosbox-x/Manifest | 7 | ||||
-rw-r--r-- | games-emulation/dosbox-x/dosbox-x-0.83.20.ebuild | 61 | ||||
-rw-r--r-- | games-emulation/dosbox-x/dosbox-x-9999.ebuild | 58 | ||||
-rw-r--r-- | games-emulation/dosbox-x/files/cmath.patch | 12 | ||||
-rw-r--r-- | games-emulation/dosbox-x/files/sys-perm.patch | 12 | ||||
-rw-r--r-- | games-emulation/dosbox-x/files/z_of_fix.patch | 14 | ||||
-rw-r--r-- | games-emulation/dosbox-x/metadata.xml | 12 |
7 files changed, 176 insertions, 0 deletions
diff --git a/games-emulation/dosbox-x/Manifest b/games-emulation/dosbox-x/Manifest new file mode 100644 index 0000000..9ba4caf --- /dev/null +++ b/games-emulation/dosbox-x/Manifest @@ -0,0 +1,7 @@ +AUX cmath.patch 320 BLAKE2B 58d90b073b741f0da1cd5a1be822d55a3f23c663cad461a00dcf2a8b6020fb4f828c8dbcb26aa07d865583b505cf62be9fc4d7e0cc692d261e147f6cfe1430e3 SHA512 6eb08923e523e7017e8c16b7f97f5a169259654cf99cea801c1206138d36482293b8bdcc19cf8d1c1d677329dd076a1187611dc23bedf76d130b2dcc4f22f22d +AUX sys-perm.patch 442 BLAKE2B ea9ec41bc8701b967c3f7ed312225d618ee835a0ab6a65169170a2a7fd35e2a6f9c53b0ebbac074c87375bfe6705b1579ac5a6aa192597afb7e12612625f78e7 SHA512 239d2e779298037a88084191d94514c632d580070c8bab73fec39c2adb1b3cbdc7932b181f21675e846728d829a1fff569c2e866ed704f51915a1746f46cce86 +AUX z_of_fix.patch 375 BLAKE2B 4ebfaceeef9cc418031791a44d49856a95982c7c95e3a70fc88f1de61872dd1777adc8d3fa772e016089b5aca5d1c0c18b93cd7d30523cd64073e98f3f35c26c SHA512 9eec7b08c986af24f87615e87df6aa2bc1ffc65028af57de3d1be510552040809cde86dfd271963f39bbfdc6fac0f1e4fad0f03a2f5a6c69d13657f8e514e41c +DIST dosbox-x-v0.83.20.tar.gz 63731032 BLAKE2B f0c9270f6800b781a8a323786dc2288df32194a3a7ade792c3a25b2a8ed2fb3deea2bf758a4a31f98e072db31ffa453f9dddc6afb90c98b79d880dcc9899f893 SHA512 6581a4bc4ef8fd67bb1d1c2860e763664240f7fd08994dfb8f05f5171b2e0384be13520237aea3ebb892bcb638baf75c6c1120d9d7993fb1a7eb1c24ca354796 +EBUILD dosbox-x-0.83.20.ebuild 1408 BLAKE2B 914a3d50589dabcf1601bb58b3b179d031b3ae7ef3c1e17d4577842e0660586d51d89bd9eeb776258cc4381547028d0050f5148a4154701bdbbe50cbcec43ef0 SHA512 5b232e219717b73385a13b7404922fb1faa8ef33f16d1ce7db007bf69804a5e764aafd1879e7e2a4dda87c65195bf022f9e6e34d7b8b8f62d6edb1ebfb7449c9 +EBUILD dosbox-x-9999.ebuild 1334 BLAKE2B 827e7e3bcc6a6f3748f689592a31d9cec9e3519255c8e285efeefe53948b2b477e3e55b1e8c1d2b3c2e45df9777ee9304f646395d3eeb3bb6912b44162151886 SHA512 4bbb8cf6d76f3007222445b7c0f4f2a70b7f2fce874c2188afb605deadf4275460bdb0a05dbf92e67912c2dc1ffd578a88bf080adfb810d459ceab0fe761bf7f +MISC metadata.xml 390 BLAKE2B 3f7a6f01be42b3fdab905c387d38fa03cf9e23da0b06edf8c27585865d62cb0ac136218f47eb155d5c4fbff18b936e4d8ba0e4234a577744039879e136600680 SHA512 fad1e0a0bc826b54ea28c6976c3ffcdc7681b4773f975a7f1846469eb5d6423b798e92c193d1379ec590733578310cdc9c71eeee4cc8be9fa0e1c620431565fa diff --git a/games-emulation/dosbox-x/dosbox-x-0.83.20.ebuild b/games-emulation/dosbox-x/dosbox-x-0.83.20.ebuild new file mode 100644 index 0000000..2772d20 --- /dev/null +++ b/games-emulation/dosbox-x/dosbox-x-0.83.20.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic + +DESCRIPTION="A fork of DOSBox, with patches and more features" +HOMEPAGE="https://dosbox-x.com/" +SRC_URI="https://github.com/joncampbell123/${PN}/archive/${PN}-v${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +IUSE="alsa debug hardened ffmpeg opengl +sdl2" + +DEPEND="alsa? ( media-libs/alsa-lib ) + ffmpeg? ( media-video/ffmpeg ) + opengl? ( virtual/glu virtual/opengl ) + debug? ( sys-libs/ncurses:0 ) + sdl2? ( + media-libs/libsdl2[X,joystick,video,sound] + media-libs/sdl2-net + ) + !sdl2? ( + media-libs/libsdl[X,joystick,video,sound] + media-libs/sdl-net + ) + media-libs/libpng" +RDEPEND=${DEPEND} + +S="${WORKDIR}/${PN}-${PN}-v${PV}" + +PATCHES=( + "${FILESDIR}/sys-perm.patch" + "${FILESDIR}/cmath.patch" + "${FILESDIR}/z_of_fix.patch" +) + +src_prepare() { + default + eautoreconf + chmod +x vs/sdl/build-scripts/strip_fPIC.sh + chmod +x configure + if use !sdl2; then + # Prefer to compile against the internal copy of SDL 1.x + (cd vs/sdl && ./build-dosbox.sh) || die + fi +} + +src_configure() { + econf \ + $(use_enable alsa alsa-midi) \ + $(use_enable ffmpeg avcodec) \ + $(use_enable !hardened dynamic-core) \ + $(use_enable !hardened core-inline) \ + $(use_enable !sdl2 sdl) \ + $(use_enable sdl2) \ + $(use_enable debug) \ + $(use_enable opengl) +} diff --git a/games-emulation/dosbox-x/dosbox-x-9999.ebuild b/games-emulation/dosbox-x/dosbox-x-9999.ebuild new file mode 100644 index 0000000..74d0e89 --- /dev/null +++ b/games-emulation/dosbox-x/dosbox-x-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic git-r3 + +DESCRIPTION="A fork of DOSBox, with patches and more features" +HOMEPAGE="https://dosbox-x.com/" +EGIT_REPO_URI="https://github.com/joncampbell123/${PN}" + +LICENSE="GPL-2" +SLOT="0" +IUSE="alsa debug hardened ffmpeg opengl +sdl2" + +DEPEND="alsa? ( media-libs/alsa-lib ) + ffmpeg? ( media-video/ffmpeg ) + opengl? ( virtual/glu virtual/opengl ) + debug? ( sys-libs/ncurses:0 ) + sdl2? ( + media-libs/libsdl2[X,joystick,video,sound] + media-libs/sdl2-net + ) + !sdl2? ( + media-libs/libsdl[X,joystick,video,sound] + media-libs/sdl-net + ) + media-libs/libpng" +RDEPEND=${DEPEND} + +PATCHES=( + "${FILESDIR}/sys-perm.patch" + "${FILESDIR}/cmath.patch" + "${FILESDIR}/z_of_fix.patch" +) + +src_prepare() { + default + eautoreconf + chmod +x vs2015/sdl/build-scripts/strip_fPIC.sh + chmod +x configure + if use !sdl2; then + # Prefer to compile against the internal copy of SDL 1.x + (cd vs2015/sdl && ./build-dosbox.sh) || exit 1 + fi +} + +src_configure() { + econf \ + $(use_enable alsa alsa-midi) \ + $(use_enable ffmpeg avcodec) \ + $(use_enable !hardened dynamic-core) \ + $(use_enable !hardened core-inline) \ + $(use_enable !sdl2 sdl) \ + $(use_enable sdl2) \ + $(use_enable debug) \ + $(use_enable opengl) +} diff --git a/games-emulation/dosbox-x/files/cmath.patch b/games-emulation/dosbox-x/files/cmath.patch new file mode 100644 index 0000000..1643606 --- /dev/null +++ b/games-emulation/dosbox-x/files/cmath.patch @@ -0,0 +1,12 @@ +--- a/src/dos/dos_programs.cpp 2020-08-03 12:33:31.000000000 +0800 ++++ b/src/dos/dos_programs.cpp 2020-08-03 15:56:10.462020649 +0800 +@@ -24,7 +24,7 @@ + #include <stdlib.h> + #include <string.h> + #include <ctype.h> +-#include <math.h> ++#include <cmath> + #include <algorithm> + #include <string> + #include <vector> + diff --git a/games-emulation/dosbox-x/files/sys-perm.patch b/games-emulation/dosbox-x/files/sys-perm.patch new file mode 100644 index 0000000..43f1ba5 --- /dev/null +++ b/games-emulation/dosbox-x/files/sys-perm.patch @@ -0,0 +1,12 @@ +--- a/src/libs/porttalk/porttalk.cpp 2020-03-01 10:25:52.000000000 +0800 ++++ b/src/libs/porttalk/porttalk.cpp 2020-03-01 21:06:30.937404111 +0800 +@@ -239,7 +239,7 @@ + #ifdef LINUX + # if defined(__i386__) || defined(__amd64__) || defined(__x86_64__) + // This Linux ioperm only works up to port 0x3FF +-#include <sys/perm.h> ++#include <sys/io.h> + // For musl-libc based toolchain, use <sys/io.h> instead of <sys/perm.h> + //#include <sys/io.h> + + diff --git a/games-emulation/dosbox-x/files/z_of_fix.patch b/games-emulation/dosbox-x/files/z_of_fix.patch new file mode 100644 index 0000000..e557088 --- /dev/null +++ b/games-emulation/dosbox-x/files/z_of_fix.patch @@ -0,0 +1,14 @@ +diff -Naurp a/include/ioapi.h b/include/ioapi.h +--- a/include/ioapi.h 2020-08-03 21:18:18.606933344 +0200 ++++ b/include/ioapi.h 2020-08-03 21:19:30.329932231 +0200 +@@ -105,6 +105,10 @@ typedef unsigned long long int ZPOS64_T; + extern "C" { + #endif + ++#ifdef _Z_OF ++#undef OF ++#define OF _Z_OF ++#endif + + #define ZLIB_FILEFUNC_SEEK_CUR (1) + #define ZLIB_FILEFUNC_SEEK_END (2) diff --git a/games-emulation/dosbox-x/metadata.xml b/games-emulation/dosbox-x/metadata.xml new file mode 100644 index 0000000..0105a39 --- /dev/null +++ b/games-emulation/dosbox-x/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>jpizarrocallejas@gmail.com</email> + <name>Jorge Pizarro Callejas</name> + <description>Jorgicio Gentoo Overlay</description> + </maintainer> + <use> + <flag name="sdl2">Use SDL 2.x instead of SDL 1.x</flag> + </use> +</pkgmetadata> |