summaryrefslogtreecommitdiff
path: root/games-emulation/melonds
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/melonds')
-rw-r--r--games-emulation/melonds/Manifest7
-rw-r--r--games-emulation/melonds/files/melonds-system-teakra.patch23
-rw-r--r--games-emulation/melonds/melonds-0.9.3-r2.ebuild (renamed from games-emulation/melonds/melonds-0.9.3-r1.ebuild)17
-rw-r--r--games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild85
-rw-r--r--games-emulation/melonds/melonds-9999.ebuild17
5 files changed, 127 insertions, 22 deletions
diff --git a/games-emulation/melonds/Manifest b/games-emulation/melonds/Manifest
index c4a2103c6734..adbc81424684 100644
--- a/games-emulation/melonds/Manifest
+++ b/games-emulation/melonds/Manifest
@@ -1,4 +1,7 @@
+AUX melonds-system-teakra.patch 492 BLAKE2B 56c7a55ee08c79b9468f62b676f0e97f443b065577cb6053167be04aaf03aa2a656d0c60a877a05500ec7a596368900806817d05dc2a1f652b8562fad8c8ae43 SHA512 7f2c1d8fdda5ac76a6b9311bb002a0544ef6d8863b62b77d9806fe73b64218353aaad5aa808a2de8d10870054f0eb968b05520dac22eb8d311711e7f65fbeced
DIST melonDS-0.9.3.tar.gz 2241325 BLAKE2B 0ea7fbcce039a60a0553ae45d11f0b1550bfec2300faf1c99c3ee531bd5949c7293bec187fbf53e400bbb6280df29db141b2d1bcb294a8abf2eabb71993db686 SHA512 37f26f3a9784873ce1664645cea70049725367f5fe62f7c58842ebd5da2c73ffe423695dddb0ffd444bdf59df2a3fcd778cdf95b2bb083014b961fed282953f5
-EBUILD melonds-0.9.3-r1.ebuild 1687 BLAKE2B e9877ebda5bfdabec8d913096c93719474220b615c73ddeb2c905464d035cf05889399cf938cf137670c1485bd957beca7b11663d3df3a30281fcaba6c926f35 SHA512 142b857f3f5daee2031367d4bfe6bd96531f88f7a7aca5f7b5a3067e08c880576418d4533c120fab75a9a96a34cca61799db33301cfd3b46c701efb8ce4d1520
-EBUILD melonds-9999.ebuild 1687 BLAKE2B e9877ebda5bfdabec8d913096c93719474220b615c73ddeb2c905464d035cf05889399cf938cf137670c1485bd957beca7b11663d3df3a30281fcaba6c926f35 SHA512 142b857f3f5daee2031367d4bfe6bd96531f88f7a7aca5f7b5a3067e08c880576418d4533c120fab75a9a96a34cca61799db33301cfd3b46c701efb8ce4d1520
+DIST melonDS-0.9.4_p1.tar.gz 2330696 BLAKE2B f118d067505d740fef2c9f3a7761580981d43c6c63f9bfb34f48cbc5c6932e5410ee31259845787262412b040a66c85cdd4298645e2060fc6c8821a89b314711 SHA512 76886ecfbabd00ae9261c33fcd4074b20e989f4357575bf68139538136fb0ba728d7590310ce4ae9c45670ee01ec315046f03f54e7ca9a359be202709b030f6d
+EBUILD melonds-0.9.3-r2.ebuild 1617 BLAKE2B 4e4b06cea14e29a1317db43ed044013f11f4088df93ad59d82f02750e4a95918b99df9e069a4a5d90467bd3dd85f2cbb755f8e7bca327480f8d94be32feb1d11 SHA512 071aab8b56491a54a67b729917ed295355a3c3cbd86497d6676c8b5a11e906999615b6d9ed62518b7d75c6d54387c448c091311b932106707ab6c04d4c6a292a
+EBUILD melonds-0.9.4_p1-r1.ebuild 1624 BLAKE2B 452b7aae4d8e34f199adfba85b0c3af63abf93a1716f543892116736010de5db1a0fb225e9203391822a8d01405c020b91cff8aa0a3291ffa54428e4bd2dca53 SHA512 707330dca3c8764a7619ce2268617aa8946ef2376ebf398ff6bcfbbfe7f95aaadb0e4535066c1a63abbd946827db8f2a6fe737688fc05a7ddcc38fb56cc100d5
+EBUILD melonds-9999.ebuild 1617 BLAKE2B 4e4b06cea14e29a1317db43ed044013f11f4088df93ad59d82f02750e4a95918b99df9e069a4a5d90467bd3dd85f2cbb755f8e7bca327480f8d94be32feb1d11 SHA512 071aab8b56491a54a67b729917ed295355a3c3cbd86497d6676c8b5a11e906999615b6d9ed62518b7d75c6d54387c448c091311b932106707ab6c04d4c6a292a
MISC metadata.xml 404 BLAKE2B e9abe00b5ee8196030846be4e7a9e224c0fb7356f88a39949b219bb7355bcac50f6ca28b299a40f056e5a105903cb156aed77731fb3ed61d2ef88becf35d0dc3 SHA512 6e2926035441d9c93759ad92cb2c026a10d28b8354e90d56361b4afc1aa6e7f0e4bb49900ad9f6025f8f9b7070df5691583074f30620196f1305919bd7cfdbdb
diff --git a/games-emulation/melonds/files/melonds-system-teakra.patch b/games-emulation/melonds/files/melonds-system-teakra.patch
new file mode 100644
index 000000000000..b59c31e4ba9a
--- /dev/null
+++ b/games-emulation/melonds/files/melonds-system-teakra.patch
@@ -0,0 +1,23 @@
+index 7288b54..6525f11 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -110,7 +110,6 @@ if (ENABLE_JIT)
+ endif()
+ endif()
+
+-add_subdirectory(teakra EXCLUDE_FROM_ALL)
+ target_link_libraries(core teakra)
+
+
+index c889aff..a6339d9 100644
+--- a/src/DSi_DSP.cpp
++++ b/src/DSi_DSP.cpp
+@@ -16,7 +16,7 @@
+ with melonDS. If not, see http://www.gnu.org/licenses/.
+ */
+
+-#include "teakra/include/teakra/teakra.h"
++#include "teakra/teakra.h"
+
+ #include "DSi.h"
+ #include "DSi_DSP.h"
diff --git a/games-emulation/melonds/melonds-0.9.3-r1.ebuild b/games-emulation/melonds/melonds-0.9.3-r2.ebuild
index 0d497e9b94fc..0cde97c7b287 100644
--- a/games-emulation/melonds/melonds-0.9.3-r1.ebuild
+++ b/games-emulation/melonds/melonds-0.9.3-r2.ebuild
@@ -1,15 +1,12 @@
-# Copyright 2019-2021 Gentoo Authors
+# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-# NOTICE:
-# melonds bundles teakra, its upstream haven't had a release since 2020
-
EAPI=8
MY_PN="melonDS"
MY_P="${MY_PN}-${PV}"
-inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg
+inherit cmake readme.gentoo-r1 toolchain-funcs xdg
DESCRIPTION="Nintendo DS emulator, sorta"
HOMEPAGE="
@@ -32,6 +29,7 @@ SLOT="0"
DEPEND="
app-arch/libarchive
+ dev-libs/teakra
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
@@ -55,7 +53,11 @@ DOC_CONTENTS="You need the following files in order to run melonDS:
Place them in ~/.config/melonDS
Those files can be found somewhere on the Internet ;-)"
+PATCHES=( "${FILESDIR}"/melonds-system-teakra.patch )
+
src_prepare() {
+ rm -r ./src/teakra || die
+
cmake_src_prepare
}
@@ -73,16 +75,11 @@ src_compile() {
}
src_install() {
- # install teakra
- dolib.so "${BUILD_DIR}/src/teakra/src/libteakra.so"
-
cmake_src_install
-
readme.gentoo_create_doc
}
pkg_postinst() {
xdg_pkg_postinst
-
readme.gentoo_print_elog
}
diff --git a/games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild b/games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild
new file mode 100644
index 000000000000..706876b372f2
--- /dev/null
+++ b/games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="melonDS"
+MY_P="${MY_PN}-${PV}"
+
+inherit cmake readme.gentoo-r1 toolchain-funcs xdg
+
+DESCRIPTION="Nintendo DS emulator, sorta"
+HOMEPAGE="
+ http://melonds.kuribo64.net
+ https://github.com/Arisotura/melonDS
+"
+
+if [[ "${PV}" == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/Arisotura/${MY_PN}.git"
+else
+ SRC_URI="https://github.com/Arisotura/${MY_PN}/archive/0.9.4.tar.gz -> ${MY_P}.tar.gz"
+ KEYWORDS="~amd64"
+ S="${WORKDIR}"/${MY_PN}-0.9.4
+fi
+
+IUSE="+jit +opengl"
+LICENSE="BSD-2 GPL-2 GPL-3 Unlicense"
+SLOT="0"
+
+DEPEND="
+ app-arch/libarchive
+ dev-libs/teakra
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ media-libs/libsdl2[sound,video]
+ net-libs/libpcap
+ net-libs/libslirp
+ opengl? ( media-libs/libepoxy )
+"
+RDEPEND="${DEPEND}"
+
+# used for JIT recompiler
+QA_EXECSTACK="usr/bin/melonDS"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="You need the following files in order to run melonDS:
+- bios7.bin
+- bios9.bin
+- firmware.bin
+- romlist.bin
+Place them in ~/.config/melonDS
+Those files can be found somewhere on the Internet ;-)"
+
+PATCHES=( "${FILESDIR}"/melonds-system-teakra.patch )
+
+src_prepare() {
+ rm -r ./src/teakra || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_JIT=$(usex jit)
+ -DENABLE_OGLRENDERER=$(usex opengl)
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ tc-export AR
+ cmake_src_compile
+}
+
+src_install() {
+ cmake_src_install
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ readme.gentoo_print_elog
+}
diff --git a/games-emulation/melonds/melonds-9999.ebuild b/games-emulation/melonds/melonds-9999.ebuild
index 0d497e9b94fc..0cde97c7b287 100644
--- a/games-emulation/melonds/melonds-9999.ebuild
+++ b/games-emulation/melonds/melonds-9999.ebuild
@@ -1,15 +1,12 @@
-# Copyright 2019-2021 Gentoo Authors
+# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-# NOTICE:
-# melonds bundles teakra, its upstream haven't had a release since 2020
-
EAPI=8
MY_PN="melonDS"
MY_P="${MY_PN}-${PV}"
-inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg
+inherit cmake readme.gentoo-r1 toolchain-funcs xdg
DESCRIPTION="Nintendo DS emulator, sorta"
HOMEPAGE="
@@ -32,6 +29,7 @@ SLOT="0"
DEPEND="
app-arch/libarchive
+ dev-libs/teakra
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
@@ -55,7 +53,11 @@ DOC_CONTENTS="You need the following files in order to run melonDS:
Place them in ~/.config/melonDS
Those files can be found somewhere on the Internet ;-)"
+PATCHES=( "${FILESDIR}"/melonds-system-teakra.patch )
+
src_prepare() {
+ rm -r ./src/teakra || die
+
cmake_src_prepare
}
@@ -73,16 +75,11 @@ src_compile() {
}
src_install() {
- # install teakra
- dolib.so "${BUILD_DIR}/src/teakra/src/libteakra.so"
-
cmake_src_install
-
readme.gentoo_create_doc
}
pkg_postinst() {
xdg_pkg_postinst
-
readme.gentoo_print_elog
}