Compare commits
194 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8496117da | ||
|
|
073575dbb0 | ||
|
|
458b0e260e | ||
|
|
c187814d4a | ||
|
|
d5d9e9fbef | ||
|
|
8c57c7c189 | ||
|
|
d433b28817 | ||
|
|
fd2ec56e3d | ||
|
|
cc6ad16b54 | ||
|
|
5a2c57740d | ||
|
|
eb8ea2fd87 | ||
|
|
610a1c7fcd | ||
|
|
e29c03785d | ||
|
|
152ba9cc34 | ||
|
|
b9c4750766 | ||
|
|
cc9dff1141 | ||
|
|
285493123d | ||
|
|
9a7ae33e6d | ||
|
|
1df5443044 | ||
|
|
74d319614f | ||
|
|
440a53ff3f | ||
|
|
b0cf5e2105 | ||
|
|
4c7d3f65ac | ||
|
|
45fa9d19d4 | ||
|
|
ad9cc190c7 | ||
|
|
95b3efdc1a | ||
|
|
b0fc2a23a2 | ||
|
|
c93984aeb9 | ||
|
|
22d0111fdc | ||
|
|
dfd8aafe3d | ||
|
|
1abd72da40 | ||
|
|
c8c1654ba5 | ||
|
|
2c0a7b1811 | ||
|
|
5ac29a5973 | ||
|
|
b01607d5a6 | ||
|
|
669852600f | ||
|
|
97997c2500 | ||
|
|
5a4022b667 | ||
|
|
5b2bc56814 | ||
|
|
743f57ca85 | ||
|
|
81679ae24a | ||
|
|
f5025bf011 | ||
|
|
1afd502587 | ||
|
|
9b45c1b37f | ||
|
|
c6101e5784 | ||
|
|
3dfa40697f | ||
|
|
8621059408 | ||
|
|
b02233a6fb | ||
|
|
6186877bc5 | ||
|
|
f1d752f0a5 | ||
|
|
aa72123e12 | ||
|
|
68669c2c1b | ||
|
|
37289dfccd | ||
|
|
c927bbb699 | ||
|
|
0ff9ba3a8e | ||
|
|
e2a6b5b492 | ||
|
|
98ea806374 | ||
|
|
f0755285e3 | ||
|
|
1de25643cf | ||
|
|
362438cb49 | ||
|
|
663630c4ce | ||
|
|
521bca485e | ||
|
|
3a3f8188c9 | ||
|
|
7f96da9298 | ||
|
|
1a762aa0fc | ||
|
|
17ea76c314 | ||
|
|
1522a42536 | ||
|
|
157249a152 | ||
|
|
b9e215678e | ||
|
|
fba6ea3f1e | ||
|
|
3b208515ed | ||
|
|
61be80c51e | ||
|
|
6a7a0c9cc6 | ||
|
|
4f593451b2 | ||
|
|
a9c7f16cbf | ||
|
|
519162419b | ||
|
|
475bc53f19 | ||
|
|
b2c63928a1 | ||
|
|
e1d46300a5 | ||
|
|
90740e6d39 | ||
|
|
ee04bcdcb9 | ||
|
|
775fc818bb | ||
|
|
351863bd53 | ||
|
|
ce2c630c82 | ||
|
|
13216f6bbb | ||
|
|
b234683913 | ||
|
|
e460305ac9 | ||
|
|
c8545696d9 | ||
|
|
16afcade9b | ||
|
|
368ee22a59 | ||
|
|
2be950e1c8 | ||
|
|
4b5edad658 | ||
|
|
e70f909501 | ||
|
|
1af61446fa | ||
|
|
492cc044c0 | ||
|
|
560876fdb7 | ||
|
|
e54a8384f6 | ||
|
|
b706cf267d | ||
|
|
b3e170047e | ||
|
|
cdbfe06e83 | ||
|
|
9e3300c646 | ||
|
|
42e399c0f7 | ||
|
|
136dee2eac | ||
|
|
f607a83eab | ||
|
|
7de1712fac | ||
|
|
398261e82b | ||
|
|
c0e7a80a7e | ||
|
|
45eec2837a | ||
|
|
99382e1e81 | ||
|
|
4dc6cfb528 | ||
|
|
f497d56cc3 | ||
|
|
8e17c15a58 | ||
|
|
98c38b3b9a | ||
|
|
8c7c78625f | ||
|
|
40d0e0a737 | ||
|
|
b0979e90d3 | ||
|
|
811ec4fd4a | ||
|
|
a9ace0b00a | ||
|
|
fe30925eb9 | ||
|
|
0731df8ae6 | ||
|
|
8ed31b759d | ||
|
|
e9e2884e4b | ||
|
|
6ea71f3257 | ||
|
|
3a343f1cc0 | ||
|
|
e070e08113 | ||
|
|
07f7d6e7f6 | ||
|
|
1f3213b461 | ||
|
|
87269ef2d3 | ||
|
|
1c2df55d33 | ||
|
|
d37a4c2843 | ||
|
|
5ba79cbfd3 | ||
|
|
4c59484a58 | ||
|
|
4efd2b12a6 | ||
|
|
d94bd168c1 | ||
|
|
45129fe430 | ||
|
|
44f3ef2b7c | ||
|
|
2655720ab8 | ||
|
|
7465aa6ce6 | ||
|
|
ceebd516b5 | ||
|
|
57a16f33ef | ||
|
|
df91c16f07 | ||
|
|
2b6d865da4 | ||
|
|
40aee0ebf4 | ||
|
|
997fb0203c | ||
|
|
4876f737e7 | ||
|
|
9f0e801b3f | ||
|
|
3b3dc67bbe | ||
|
|
b70f89d0f7 | ||
|
|
0f4512f223 | ||
|
|
d354597505 | ||
|
|
80fb6c39ee | ||
|
|
f7e303aa4d | ||
|
|
44adac19d8 | ||
|
|
a2f89f74cd | ||
|
|
6622445abf | ||
|
|
817bb2b0e2 | ||
|
|
abdc056942 | ||
|
|
8e331dc790 | ||
|
|
1dcb78a87a | ||
|
|
43d327c345 | ||
|
|
00aef02835 | ||
|
|
d531df3af0 | ||
|
|
f7ed4d9e73 | ||
|
|
0d67a6d16d | ||
|
|
b8fe3147e2 | ||
|
|
0c1e7f6cd9 | ||
|
|
7596b6195b | ||
|
|
106081e31a | ||
|
|
0f33da9e5a | ||
|
|
edda184eef | ||
|
|
279d2bfd32 | ||
|
|
9efa55d805 | ||
|
|
7f6f2e4520 | ||
|
|
ca531fdc2b | ||
|
|
5dda562627 | ||
|
|
a8f3b1177b | ||
|
|
95a81a31e9 | ||
|
|
0e49d50f1b | ||
|
|
f6c4639407 | ||
|
|
91c18615d3 | ||
|
|
2d99e9044b | ||
|
|
b52ff24ca4 | ||
|
|
1ba03c6494 | ||
|
|
b11abed246 | ||
|
|
a9dc0c13df | ||
|
|
c03690cf1d | ||
|
|
347a2bebae | ||
|
|
979574e784 | ||
|
|
80b9ac0bde | ||
|
|
453c6b3070 | ||
|
|
4b7177f5c3 | ||
|
|
1edd08a8c8 | ||
|
|
a16b96ca86 | ||
|
|
ac8eaf7ed8 |
14
README
@@ -1,14 +0,0 @@
|
||||
OE layer for all in midlife crisis
|
||||
|
||||
This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
branch: master
|
||||
revision: HEAD
|
||||
|
||||
URI: git://git.openembedded.org/meta-openembedded
|
||||
branch: master
|
||||
revision: HEAD
|
||||
layers: meta-oe
|
||||
|
||||
Layer maintainer: Andreas Müller <schnitzeltony@gmail.com>
|
||||
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
OE layer for emulators and games from 8/16-bit era
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
Layer dependencies:
|
||||
-------------------
|
||||
see [layer.conf](conf/layer.conf) for dependencies and [Layer-index](https://layers.openembedded.org/layerindex/branch/master/layers/) where to find layers
|
||||
|
||||
|
||||
Contributing
|
||||
------------
|
||||
* Submit any patches against the `meta-retro` layer by using the GitHub pull-request feature.
|
||||
|
||||
|
||||
Policies
|
||||
--------
|
||||
* **Please do not send private emails to maintainer - they will not be answered anymore**. For bug-reports/questions/suggestions.. use [issues](https://github.com/schnitzeltony/meta-retro/issues).
|
||||
* Pull requests should follow [OE-Styleguide](https://www.openembedded.org/wiki/Styleguide) with the following additions:
|
||||
* Use 4 spaces for indentation always (shell and python code)
|
||||
* For splitting of long list values use four-space indentation on successive lines and prefer the closing quote as the first character ([OE-Styleguide](https://www.openembedded.org/wiki/Styleguide) - second example)
|
||||
* Pull-requests with patches fixing issues for musl, clang or gold-linker are accepted only if patches have upstream-status "Applied" or "Backport" and contain a link to the upstream patch.
|
||||
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
||||
Layer maintainer: Andreas Müller <schnitzeltony@gmail.com>
|
||||
@@ -8,5 +8,13 @@ BBFILE_COLLECTIONS += "meta-retro"
|
||||
BBFILE_PATTERN_meta-retro := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-retro = "10"
|
||||
|
||||
LAYERDEPENDS_meta-retro = "core openembedded-layer filesystems-layer games-layer"
|
||||
LAYERSERIES_COMPAT_meta-retro = "rocko sumo thud"
|
||||
LICENSE_PATH += "${LAYERDIR}/files/licenses"
|
||||
|
||||
# ffmpeg4-layer: https://github.com/schnitzeltony/meta-ffmpeg4
|
||||
LAYERDEPENDS_meta-retro = " \
|
||||
core \
|
||||
openembedded-layer \
|
||||
filesystems-layer \
|
||||
ffmpeg4-layer \
|
||||
"
|
||||
LAYERSERIES_COMPAT_meta-retro = "honister kirkstone"
|
||||
|
||||
72
files/licenses/DXX-Rebirth
Normal file
@@ -0,0 +1,72 @@
|
||||
DXX-REBIRTH LICENSE
|
||||
====================
|
||||
The original Descent source release is copyright by Parallax and subject
|
||||
to the Parallax license below. Contributions from the D1X/D2X ("DXX")
|
||||
and D1X-Rebirth/D2X-Rebirth ("Rebirth") projects are copyright their
|
||||
respective contributors. The DXX and Rebirth contributors grant you
|
||||
permission to convey their work, with or without modifications, pursuant
|
||||
to the terms of the GNU General Public License, version 3 ("GPLv3"). As
|
||||
a special exception, in recognition of the restrictions imposed by the
|
||||
original Parallax license, you are excused from GPLv3 requirements that
|
||||
conflict with the restrictions of the original Parallax license, but
|
||||
only to the extent that such excuse is required to prevent a conflict
|
||||
between the terms of the original Parallax license and the GNU General
|
||||
Public License v3. This special exception is an "Additional permission"
|
||||
as defined by section 7 of the GNU General Public License v3. All
|
||||
provisions of the GPLv3 that can be satisfied without violating the
|
||||
original Parallax license must be satisfied to the greatest extent
|
||||
possible without violating the original Parallax license. Failure to
|
||||
satisfy any non-excused GPLv3 provision is expressly prohibited under
|
||||
this license, and is therefore void and is handled pursuant to GPLv3
|
||||
section 8 "Termination.", exactly as would occur for a non-permitted
|
||||
propagation or modification of a GPLv3 covered work that had no special
|
||||
exceptions.
|
||||
|
||||
For purposes of this document, "copyright by Parallax" shall include any
|
||||
subsequent entities to which some or all of the Parallax copyrights were
|
||||
transferred, without regard to how the transfer occurred. In the event
|
||||
that you are permitted to convey the material originally copyright by
|
||||
Parallax under terms other than the original Parallax license below,
|
||||
whether due to a general relicensing by the appropriate copyright
|
||||
holders, due to special permission from the appropriate copyright
|
||||
holders, or any other circumstance, the contributions from the DXX and
|
||||
Rebirth projects remain subject to the GNU General Public License,
|
||||
version 3. The special exception described in the preceding paragraph
|
||||
excuses only conflicts with the original Parallax license. If a
|
||||
subsequent license to the Parallax work conflicts with the GPLv3 in any
|
||||
way that the original Parallax license did not conflict, then such new
|
||||
conflicts are not excused. As detailed in GPLv3 section 12 "No
|
||||
Surrender of Others' Freedom.", if you cannot simultaneously satisfy the
|
||||
non-excused terms of the GPLv3 and all other conditions imposed on you,
|
||||
then you may not convey the GPLv3 covered work at all.
|
||||
|
||||
Additionally, if you are permitted to convey the material originally
|
||||
copyright by Parallax under terms other than the original Parallax
|
||||
license, and such new permission allows you to comply with the GPLv3 to
|
||||
a greater extent than the original Parallax license allowed, and you
|
||||
convey the covered work or a portion thereof, then such conveyance must
|
||||
comply with all GPLv3 terms which can be satisfied without violating the
|
||||
permission under which you convey the material originally copyright by
|
||||
Parallax.
|
||||
|
||||
|
||||
See GPL-3.txt for further details on the GPLv3.
|
||||
For project history and its contributors, please visit the
|
||||
DXX-Rebirth GIT repository at https://github.com/dxx-rebirth/dxx-rebirth/
|
||||
|
||||
|
||||
|
||||
PARALLAX LICENSE
|
||||
================
|
||||
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
||||
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
||||
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
||||
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
||||
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
||||
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
||||
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
||||
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
||||
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
||||
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||
|
||||
We make no warranties as to the usability or correctness of this code.
|
||||
49
recipes-emulators/dosbox/dosbox-staging.bb
Normal file
@@ -0,0 +1,49 @@
|
||||
SUMMARY = "DOS/x86 emulator focusing on ease of use"
|
||||
HOMEPAGE = "https://dosbox-staging.github.io/"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=ca8be14ecd86a8ae1155f8023c73bca6"
|
||||
|
||||
DEPENDS = " \
|
||||
libsdl2 \
|
||||
libsdl2-net \
|
||||
libpcap \
|
||||
libxkbfile \
|
||||
libpng \
|
||||
alsa-lib \
|
||||
fluidsynth \
|
||||
opusfile \
|
||||
munt \
|
||||
libslirp \
|
||||
iir1 \
|
||||
"
|
||||
|
||||
inherit meson pkgconfig gtk-icon-cache features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11 opengl"
|
||||
|
||||
SRC_URI = "git://github.com/dosbox-staging/dosbox-staging.git;branch=release/0.79.x;protocol=https"
|
||||
SRCREV = "dd7f21809870cc998005b3b09a33f1c36bd764a6"
|
||||
PV = "0.79.1"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DYNCORE ?= "-Ddynamic_core=dynrec"
|
||||
|
||||
EXTRA_OEMESON = " \
|
||||
${DYNCORE} \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
# avoid clashes
|
||||
mv ${D}${bindir}/dosbox ${D}${bindir}/dosbox-staging
|
||||
sed -i 's:Exec=dosbox:Exec=dosbox-staging:g' ${D}${datadir}/applications/dosbox-staging.desktop
|
||||
}
|
||||
|
||||
# sorry - but it does not make sense
|
||||
COMPATIBLE_HOST:armv4 = 'null'
|
||||
COMPATIBLE_HOST:armv5 = 'null'
|
||||
COMPATIBLE_HOST:armv6 = 'null'
|
||||
|
||||
FILES:${PN} += "${datadir}/metainfo"
|
||||
FILES:${PN}-doc += "${datadir}/licenses"
|
||||
|
||||
43
recipes-emulators/dosbox/dosbox-x.bb
Normal file
@@ -0,0 +1,43 @@
|
||||
SUMMARY = "DOSBox-X fork of the DOSBox project"
|
||||
HOMEPAGE = "https://dosbox-x.com/"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b5d36d7c1f35e9597b9843b9bedb6667"
|
||||
|
||||
DEPENDS = " \
|
||||
libsdl2 \
|
||||
libsdl2-net \
|
||||
libpcap \
|
||||
libxkbfile \
|
||||
libpng \
|
||||
alsa-lib \
|
||||
fluidsynth \
|
||||
"
|
||||
|
||||
inherit autotools-brokensep pkgconfig dos2unix gtk-icon-cache features_check bash-completion
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11 opengl"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/joncampbell123/dosbox-x.git;branch=master;protocol=https \
|
||||
file://0001-use-pkgconfig-to-find-sdl2.patch \
|
||||
file://0002-Enable-unaligned-memory-based-on-recipe-s-suggestion.patch \
|
||||
"
|
||||
SRCREV = "f35f2e895b58bcebac4212ef96f672f22d447700"
|
||||
PV = "0.84.3"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--disable-sdl \
|
||||
--disable-sdltest \
|
||||
--enable-sdl2 \
|
||||
--disable-sdl2test \
|
||||
--disable-alsatest \
|
||||
"
|
||||
|
||||
# sorry - but it does not make sense
|
||||
COMPATIBLE_HOST:armv4 = 'null'
|
||||
COMPATIBLE_HOST:armv5 = 'null'
|
||||
COMPATIBLE_HOST:armv6 = 'null'
|
||||
|
||||
FILES:${PN} += "${datadir}/metainfo"
|
||||
@@ -0,0 +1,100 @@
|
||||
From 94c1308880c9bed9f7ddecf930e8f1e771a9f552 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Wed, 8 Dec 2021 23:34:23 +0100
|
||||
Subject: [PATCH] use pkgconfig to find sdl2
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
acinclude.m4 | 63 ++++------------------------------------------------
|
||||
1 file changed, 4 insertions(+), 59 deletions(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index faf376e2c..23f260630 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -12,37 +12,9 @@ AC_ARG_ENABLE(sdl2, [ --enable-sdl2 Enable SDL 2.x],
|
||||
|
||||
AH_TEMPLATE(C_SDL2,[Set to 1 to enable SDL 2.x support])
|
||||
|
||||
- SDL2_CONFIG=no
|
||||
if test x$enable_sdl2enable = xyes ; then
|
||||
- if test x$sdl2_exec_prefix != x ; then
|
||||
- sdl2_args="$sdl2_args --exec-prefix=$sdl2_exec_prefix"
|
||||
- if test x${SDL2_CONFIG+set} != xset ; then
|
||||
- SDL2_CONFIG=$sdl2_exec_prefix/bin/sdl2-config
|
||||
- fi
|
||||
- fi
|
||||
- if test x$sdl2_prefix != x ; then
|
||||
- sdl2_args="$sdl2_args --prefix=$sdl2_prefix"
|
||||
- if test x${SDL2_CONFIG+set} != xset ; then
|
||||
- SDL2_CONFIG=$sdl2_prefix/bin/sdl2-config
|
||||
- fi
|
||||
- fi
|
||||
-
|
||||
- if test -x vs/sdl2/linux-host/bin/sdl2-config ; then
|
||||
- SDL2_CONFIG=vs/sdl2/linux-host/bin/sdl2-config
|
||||
- PATH=vs/sdl2/linux-host/bin:$PATH
|
||||
- fi
|
||||
-
|
||||
- AC_PATH_PROG(SDL2_CONFIG, sdl2-config, no)
|
||||
- min_sdl2_version=ifelse([$1], ,0.11.0,$1)
|
||||
- AC_MSG_CHECKING(for SDL2 - version >= $min_sdl2_version)
|
||||
- no_sdl2=""
|
||||
- if test "$SDL2_CONFIG" = "no" ; then
|
||||
- no_sdl2=yes
|
||||
- else
|
||||
- SDL2_CFLAGS=`$SDL2_CONFIG $sdl2conf_args --cflags`
|
||||
- SDL2_LIBS=`$SDL2_CONFIG $sdl2conf_args --libs`
|
||||
- AC_DEFINE(C_SDL2,1)
|
||||
- fi
|
||||
+ AC_DEFINE(C_SDL2,1)
|
||||
+ PKG_CHECK_MODULES([SDL2], [sdl2])
|
||||
fi
|
||||
|
||||
AC_SUBST(SDL2_CFLAGS)
|
||||
@@ -69,35 +41,8 @@ AC_ARG_ENABLE(sdl, [ --enable-sdl Enable SDL 1.x],
|
||||
|
||||
SDL_CONFIG=no
|
||||
if test x$enable_sdlenable = xyes ; then
|
||||
- if test x$sdl_exec_prefix != x ; then
|
||||
- sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
|
||||
- if test x${SDL_CONFIG+set} != xset ; then
|
||||
- SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
|
||||
- fi
|
||||
- fi
|
||||
- if test x$sdl_prefix != x ; then
|
||||
- sdl_args="$sdl_args --prefix=$sdl_prefix"
|
||||
- if test x${SDL_CONFIG+set} != xset ; then
|
||||
- SDL_CONFIG=$sdl_prefix/bin/sdl-config
|
||||
- fi
|
||||
- fi
|
||||
-
|
||||
- if test -x vs/sdl/linux-host/bin/sdl-config ; then
|
||||
- SDL_CONFIG=vs/sdl/linux-host/bin/sdl-config
|
||||
- PATH=vs/sdl/linux-host/bin:$PATH
|
||||
- fi
|
||||
-
|
||||
- AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
|
||||
- min_sdl_version=ifelse([$1], ,0.11.0,$1)
|
||||
- AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
|
||||
- no_sdl=""
|
||||
- if test "$SDL_CONFIG" = "no" ; then
|
||||
- no_sdl=yes
|
||||
- else
|
||||
- SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
|
||||
- SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
|
||||
- AC_DEFINE(C_SDL1,1)
|
||||
- fi
|
||||
+ AC_DEFINE(C_SDL1,1)
|
||||
+ PKG_CHECK_MODULES([SDL], [sdl])
|
||||
fi
|
||||
|
||||
AC_SUBST(SDL_CFLAGS)
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From 7513e63ca7621f730adb41df556af470f9fba372 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Mon, 19 Oct 2020 23:02:41 +0200
|
||||
Subject: [PATCH] Enable unaligned memory based on recipe's suggestion
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
CPU detection as dosbox-x handles it does not work here. So set in recipe
|
||||
what configure would do.
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index d832bcc9a..8841e6c4d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -850,7 +850,7 @@ dnl FEATURE: Whether to enable unaligned memory access
|
||||
AH_TEMPLATE(C_UNALIGNED_MEMORY,[Define to 1 to use a unaligned memory access])
|
||||
AC_ARG_ENABLE(unaligned_memory,AC_HELP_STRING([--disable-unaligned-memory],[Disable unaligned memory access]),,enable_unaligned_memory=yes)
|
||||
AC_MSG_CHECKING(whether to enable unaligned memory access)
|
||||
-if test x$enable_unaligned_memory = xyes -a x$c_unalignedmemory = xyes; then
|
||||
+if test x$enable_unaligned_memory = xyes; then
|
||||
AC_DEFINE(C_UNALIGNED_MEMORY,1)
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
--
|
||||
2.26.2
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
[dosbox]
|
||||
title=Windows 98
|
||||
memsize=64
|
||||
|
||||
[sdl]
|
||||
priority = higher,higher
|
||||
autolock = true
|
||||
fullresolution = desktop
|
||||
windowresolution = 1024x768
|
||||
output = opengl
|
||||
mouse_wheel_key = -0
|
||||
|
||||
[render]
|
||||
scaler = none
|
||||
aspect = true
|
||||
|
||||
[cpu]
|
||||
cycles = fixed 60000
|
||||
core = dynamic
|
||||
cputype = auto
|
||||
dynamic core cache block size = 32
|
||||
|
||||
[video]
|
||||
vesa modelist width limit=0
|
||||
vesa modelist height limit=0
|
||||
|
||||
[dos]
|
||||
automountall=true
|
||||
|
||||
[fdc, primary]
|
||||
int13fakev86io=true
|
||||
|
||||
[ide, primary]
|
||||
enable=true
|
||||
pnp=true
|
||||
int13fakeio=true
|
||||
int13fakev86io=true
|
||||
enable pio32=true
|
||||
|
||||
[ide, secondary]
|
||||
int13fakeio=true
|
||||
int13fakev86io=true
|
||||
cd-rom insertion delay=2000
|
||||
|
||||
[autoexec]
|
||||
keyb de
|
||||
|
||||
# This is done once only
|
||||
imgmake /home/morona/Emulators/dosbox-x/win98/win98hd.img -t hd_2gig
|
||||
|
||||
# This will be our C:
|
||||
imgmount 2 /home/morona/Emulators/dosbox-x/win98/win98hd.img -t hdd
|
||||
|
||||
# Installation CD
|
||||
imgmount d /home/morona/Emulators/dosbox-x/win98/install-media/win98-de.iso
|
||||
|
||||
# Bootdisc - comment after install
|
||||
boot /home/morona/Emulators/dosbox-x/win98/install-media/win98-boot.img
|
||||
@@ -0,0 +1,59 @@
|
||||
[dosbox]
|
||||
title=Windows 98
|
||||
memsize=64
|
||||
|
||||
[sdl]
|
||||
priority = higher,normal
|
||||
autolock = true
|
||||
fullresolution = desktop
|
||||
windowresolution = 1024x768
|
||||
output = opengl
|
||||
mouse_wheel_key = -0
|
||||
|
||||
[render]
|
||||
aspect = true
|
||||
|
||||
[cpu]
|
||||
cycles = fixed 12000
|
||||
#core = dynamic
|
||||
core = normal
|
||||
|
||||
cputype = auto
|
||||
#dynamic core cache block size = 1
|
||||
#use dynamic core with paging on = false
|
||||
|
||||
[video]
|
||||
vesa modelist width limit=0
|
||||
vesa modelist height limit=0
|
||||
|
||||
[dos]
|
||||
automountall=true
|
||||
|
||||
[mixer]
|
||||
blocksize = 1024
|
||||
|
||||
[fdc, primary]
|
||||
int13fakev86io=true
|
||||
|
||||
[ide, primary]
|
||||
enable=true
|
||||
pnp=true
|
||||
int13fakeio=true
|
||||
int13fakev86io=true
|
||||
enable pio32=true
|
||||
|
||||
[ide, secondary]
|
||||
int13fakeio=true
|
||||
int13fakev86io=true
|
||||
cd-rom insertion delay=2000
|
||||
|
||||
[autoexec]
|
||||
keyb de
|
||||
|
||||
# This is our C:
|
||||
imgmount 2 /home/morona/Emulators/dosbox-x/win98/win98hd.img -t hdd
|
||||
|
||||
# Installation CD
|
||||
imgmount d /home/morona/Emulators/dosbox-x/win98/install-media/win98-de.iso
|
||||
|
||||
boot /home/morona/Emulators/dosbox-x/win98/win98hd.img
|
||||
@@ -1,7 +1,7 @@
|
||||
SUMMARY = "DOSBox is a DOS-emulator that uses the SDL-library"
|
||||
HOMEPAGE = "http://www.dosbox.com/"
|
||||
|
||||
LICENSE = "GPLv2+"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
|
||||
DEPENDS = "libsdl libsdl-net libpng"
|
||||
@@ -14,16 +14,13 @@ SRC_URI = " \
|
||||
file://dosbox.png \
|
||||
file://0001-use-pkgconfig-to-find-sdl.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "7110ee24a45a2b4951ad52eb1a3722be"
|
||||
SRC_URI[sha256sum] = "7077303595bedd7cd0bb94227fa9a6b5609e7c90a3e6523af11bc4afcb0a57cf"
|
||||
|
||||
PACKAGECONFIG ??= " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl', '', d)} \
|
||||
"
|
||||
SRC_URI[sha256sum] = "c0d13dd7ed2ed363b68de615475781e891cd582e8162b5c3669137502222260a"
|
||||
PV = "0.74-3"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
|
||||
PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,virtual/libgl libglu"
|
||||
|
||||
do_install_append() {
|
||||
do_install:append() {
|
||||
install -d ${D}/${datadir}/applications
|
||||
install -m 0644 ${WORKDIR}/*.desktop ${D}/${datadir}/applications
|
||||
|
||||
@@ -5,4 +5,4 @@ Exec=dosbox
|
||||
Icon=dosbox.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=System;Emulator;Game;
|
||||
Categories=Emulator;Game;
|
||||
BIN
recipes-emulators/dosbox/dosbox/dosbox.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 206 B |
222
recipes-emulators/mame/mame.bb
Normal file
@@ -0,0 +1,222 @@
|
||||
SUMMARY = "Multiple Arcade Machine Emulator"
|
||||
HOMEPAGE = "http://www.mamedev.org/index.php"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=07be887a543dff60d56851e4cb65a910"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/mamedev/mame.git;branch=master;protocol=https \
|
||||
file://mame.desktop \
|
||||
file://mame32k.desktop \
|
||||
"
|
||||
PV = "0248"
|
||||
SRCREV = "2d3d0deec8fa4025ea51c1722a21e6b9a7a8bb92"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit pkgconfig siteinfo gtk-icon-cache
|
||||
|
||||
DEPENDS = " \
|
||||
libsdl2 \
|
||||
libsdl2-ttf \
|
||||
fontconfig \
|
||||
libxinerama \
|
||||
\
|
||||
expat \
|
||||
zlib \
|
||||
flac \
|
||||
jpeg \
|
||||
glm \
|
||||
sqlite3 \
|
||||
portaudio-v19 \
|
||||
rapidjson \
|
||||
portmidi \
|
||||
"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
# avoid stip fail for size of executable >> 4GB - stolen from chromium
|
||||
DEBUG_FLAGS:remove:arm = "-g"
|
||||
DEBUG_FLAGS:append:arm = "-g1"
|
||||
DEBUG_FLAGS:remove:x86 = "-g"
|
||||
DEBUG_FLAGS:append:x86 = "-g1"
|
||||
DEBUG_FLAGS:remove:aarch64 = "-g"
|
||||
DEBUG_FLAGS:append:aarch64 = "-g1"
|
||||
DEBUG_FLAGS:remove:x86-64 = "-g"
|
||||
DEBUG_FLAGS:append:x86-64 = "-g1"
|
||||
|
||||
PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
|
||||
|
||||
# TBD: x86 may overrideoverrides later - cannot test
|
||||
MAME_NOASM="NOASM=1"
|
||||
|
||||
# genie.lua does not detect 64bit targets at least on aarch64
|
||||
MAME_PTR64 = "${@oe.utils.conditional('SITEINFO_BITS', '64', '-DPTR64=1', '', d)}"
|
||||
|
||||
EXTRA_OEMAKE = " \
|
||||
linux \
|
||||
CROSS_BUILD=1 \
|
||||
OVERRIDE_CC='${CC} ${MAME_PTR64}' \
|
||||
OVERRIDE_CXX='${CXX} ${MAME_PTR64}' \
|
||||
OPTIMIZE=3 \
|
||||
TOOLS=1 \
|
||||
USE_QTDEBUG=0 \
|
||||
LTO=0 \
|
||||
NOWERROR=1 \
|
||||
${MAME_NOASM} \
|
||||
USE_SYSTEM_LIB_EXPAT=1 \
|
||||
USE_SYSTEM_LIB_FLAC=1 \
|
||||
USE_SYSTEM_LIB_JPEG=1 \
|
||||
USE_SYSTEM_LIB_GLM=1 \
|
||||
USE_SYSTEM_LIB_PORTAUDIO=1 \
|
||||
USE_SYSTEM_LIB_SQLITE3=1 \
|
||||
USE_SYSTEM_LIB_ZLIB=1 \
|
||||
USE_SYSTEM_LIB_RAPIDJSON=1 \
|
||||
USE_OPENMP=1 \
|
||||
USE_SYSTEM_LIB_PORTMIDI=1 \
|
||||
SDL_INI_PATH=${sysconfdir}/${BPN} \
|
||||
PYTHON_EXECUTABLE=python3 \
|
||||
"
|
||||
|
||||
do_compile:prepend() {
|
||||
# seems there is some race. Build complains
|
||||
# | Assembler messages:
|
||||
# | Fatal error: can't create obj/Release/3rdparty/lzma/C/7zAlloc.o: No such file or directory
|
||||
# | Assembler messages:
|
||||
# | Fatal error: can't create obj/Release/src/mame/drivers/acvirus.o: No such file or directory
|
||||
# But that directory is created with a few files
|
||||
mkdir -p ${S}/build/projects/sdl/mame/gmake-linux/obj/Release/3rdparty/lzma/C
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# stolen much from https://src.fedoraproject.org/cgit/rpms/mame.git/tree/mame.spec
|
||||
|
||||
# executables
|
||||
install -d ${D}${bindir}
|
||||
install -pm 755 castool chdman floptool imgtool jedutil ldresample ldverify \
|
||||
mame nltool nlwav pngcmp romcmp unidasm ${D}${bindir}
|
||||
for tool in regrep split srcclean; do
|
||||
install -pm 755 $tool ${D}${bindir}/${BPN}-$tool
|
||||
done
|
||||
|
||||
# misc
|
||||
install -d ${D}${datadir}/applications
|
||||
install -m 644 ${WORKDIR}/mame.desktop ${D}${datadir}/applications
|
||||
install -m 644 ${WORKDIR}/mame32k.desktop ${D}${datadir}/applications
|
||||
|
||||
pushd artwork
|
||||
find -type d -exec install -d ${D}${datadir}/${BPN}/artwork/{} \;
|
||||
find -type f -exec install -pm 644 {} ${D}${datadir}/${BPN}/artwork/{} \;
|
||||
popd
|
||||
|
||||
install -d ${D}${datadir}/${BPN}/ctrlr
|
||||
install -pm 644 ctrlr/*.cfg ${D}${datadir}/${BPN}/ctrlr
|
||||
|
||||
install -d ${D}${datadir}/${BPN}/fonts
|
||||
install -m 644 uismall.bdf ${D}${datadir}/${BPN}/fonts
|
||||
|
||||
install -d ${D}${datadir}/${BPN}/hash
|
||||
install -pm 644 hash/* ${D}${datadir}/${BPN}/hash
|
||||
|
||||
install -d ${D}${datadir}/${BPN}/hlsl
|
||||
install -pm 644 hlsl/*.fx ${D}${datadir}/${BPN}/hlsl
|
||||
|
||||
install -d ${D}${datadir}/${BPN}/keymaps
|
||||
install -pm 644 keymaps/* ${D}${datadir}/${BPN}/keymaps
|
||||
|
||||
pushd language
|
||||
find -type d -exec install -d ${D}${datadir}/${BPN}/language/{} \;
|
||||
find -type f -name \*.mo -exec install -pm 644 {} ${D}${datadir}/${BPN}/language/{} \;
|
||||
popd
|
||||
|
||||
pushd plugins
|
||||
find -type d -exec install -d ${D}${datadir}/${BPN}/plugins/{} \;
|
||||
find -type f -exec install -pm 644 {} ${D}${datadir}/${BPN}/plugins/{} \;
|
||||
popd
|
||||
|
||||
install -d ${D}${datadir}/${BPN}/shader
|
||||
pushd src/osd/modules/opengl
|
||||
install -pm 644 shader/*.?sh ${D}${datadir}/${BPN}/shader
|
||||
popd
|
||||
|
||||
pushd docs/man
|
||||
install -d ${D}${mandir}/man1
|
||||
install -pm 644 castool.1 chdman.1 imgtool.1 floptool.1 jedutil.1 ldresample.1 \
|
||||
ldverify.1 romcmp.1 ${D}${mandir}/man1
|
||||
install -d ${D}${mandir}/man6
|
||||
install -pm 644 mame.6 ${D}${mandir}/man6
|
||||
popd
|
||||
|
||||
# install paths where user can add downloaded files
|
||||
for folder in roms samples; do
|
||||
install -d ${D}${sysconfdir}/skel/Emulators/${BPN}/$folder
|
||||
done
|
||||
echo "Store your downloaded files in subfolders" >> ${D}${sysconfdir}/skel/Emulators/${BPN}/Readme
|
||||
|
||||
# install paths for created data
|
||||
for folder in cfg comments diff history inp nvram snap state; do
|
||||
install -d ${D}${sysconfdir}/skel/.${BPN}/$folder
|
||||
done
|
||||
|
||||
# user config
|
||||
install -d ${D}${sysconfdir}/skel/.config/${BPN}/ini
|
||||
|
||||
# Create ini file
|
||||
cat > ${WORKDIR}/${BPN}.ini << EOF
|
||||
# Define source paths
|
||||
artpath ${datadir}/${BPN}/artwork
|
||||
#bgfx_path ${datadir}/${BPN}/bgfx
|
||||
#cheatpath ${datadir}/${BPN}/cheat
|
||||
#crosshairpath ${datadir}/${BPN}/crosshair
|
||||
ctrlrpath ${datadir}/${BPN}/ctrlr
|
||||
fontpath ${datadir}/${BPN}/fonts
|
||||
hashpath ${datadir}/${BPN}/hash
|
||||
languagepath ${datadir}/${BPN}/language
|
||||
pluginspath ${datadir}/${BPN}/plugins
|
||||
# Have these per user for simple download/install
|
||||
rompath \$HOME/Emulators/${BPN}/roms
|
||||
samplepath \$HOME/Emulators/${BPN}/samples
|
||||
|
||||
# Allow user to override ini settings
|
||||
inipath \$HOME/.config/${BPN}/ini;${sysconfdir}/${BPN}
|
||||
|
||||
# Set paths for local storage
|
||||
cfg_directory \$HOME/.${BPN}/cfg
|
||||
comment_directory \$HOME/.${BPN}/comments
|
||||
diff_directory \$HOME/.${BPN}/diff
|
||||
historypath \$HOME/.${BPN}/history
|
||||
input_directory \$HOME/.${BPN}/inp
|
||||
nvram_directory \$HOME/.${BPN}/nvram
|
||||
snapshot_directory \$HOME/.${BPN}/snap
|
||||
state_directory \$HOME/.${BPN}/state
|
||||
EOF
|
||||
install -d ${D}${sysconfdir}/${BPN}
|
||||
install -m 644 ${WORKDIR}/${BPN}.ini ${D}${sysconfdir}/${BPN}
|
||||
|
||||
# Logo
|
||||
install -d ${D}${datadir}/pixmaps
|
||||
install -m 644 ${S}/docs/source/images/MAMElogo.svg ${D}${datadir}/pixmaps
|
||||
|
||||
# cleanup
|
||||
find ${D}${datadir}/${BPN} -name LICENSE -exec rm {} \;
|
||||
find ${D}${datadir}/${BPN} -name README.md -exec rm {} \;
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-tools"
|
||||
FILES:${PN}-tools = " \
|
||||
${bindir}/castool \
|
||||
${bindir}/chdman \
|
||||
${bindir}/floptool \
|
||||
${bindir}/imgtool \
|
||||
${bindir}/jedutil \
|
||||
${bindir}/ldresample \
|
||||
${bindir}/ldverify \
|
||||
${bindir}/nltool \
|
||||
${bindir}/nlwav \
|
||||
${bindir}/pngcmp \
|
||||
${bindir}/${BPN}-regrep \
|
||||
${bindir}/romcmp \
|
||||
${bindir}/${BPN}-split \
|
||||
${bindir}/${BPN}-src2html \
|
||||
${bindir}/${BPN}-srcclean \
|
||||
${bindir}/unidasm \
|
||||
"
|
||||
9
recipes-emulators/mame/mame/mame.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Mame
|
||||
Comment=MAME is a multi-purpose emulation framework
|
||||
Exec=mame
|
||||
Icon=MAMElogo.svg
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Game
|
||||
9
recipes-emulators/mame/mame/mame32k.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Mame (32k RAM)
|
||||
Comment=MAME is a multi-purpose emulation framework
|
||||
Exec=mame -ramsize 32k
|
||||
Icon=MAMElogo.svg
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Game
|
||||
@@ -1,92 +0,0 @@
|
||||
SUMMARY = "Multiple Arcade Machine Emulator"
|
||||
HOMEPAGE = "http://www.mamedev.org/index.php"
|
||||
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=f7c747554c44283f89bdf31be2d12551"
|
||||
|
||||
SRC_URI = " \
|
||||
https://github.com/mamedev/mame/archive/${BPN}${PV}.tar.gz \
|
||||
"
|
||||
SRC_URI[md5sum] = "e690994e57a13380045bd74258a698ca"
|
||||
SRC_URI[sha256sum] = "d51f2a3d740dff13acbe23b0bdcdd9a7077ee873baeabdf8ad5b1499bd9df99f"
|
||||
|
||||
S = "${WORKDIR}/${BPN}-${BPN}${PV}"
|
||||
|
||||
inherit siteinfo
|
||||
|
||||
DEPENDS = " \
|
||||
libsdl2 \
|
||||
libsdl2-ttf \
|
||||
fontconfig \
|
||||
libxinerama \
|
||||
\
|
||||
expat \
|
||||
zlib \
|
||||
flac \
|
||||
jpeg \
|
||||
lua lua-native \
|
||||
sqlite3 \
|
||||
portaudio-v19 \
|
||||
"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
# TBD: x86 may overrideoverrides later - cannot test
|
||||
MAME_NOASM="NOASM=1"
|
||||
|
||||
# genie.lua does not detect 64bit targets at least on aarch64
|
||||
MAME_PTR64 = "${@oe.utils.conditional('SITEINFO_BITS', '64', '-DPTR64=1', '', d)}"
|
||||
|
||||
EXTRA_OEMAKE = " \
|
||||
linux \
|
||||
CROSS_BUILD=1 \
|
||||
OVERRIDE_CC='${CC} ${MAME_PTR64}' \
|
||||
OVERRIDE_CXX='${CXX} ${MAME_PTR64}' \
|
||||
TOOLS=1 \
|
||||
USE_QTDEBUG=0 \
|
||||
NOWERROR=1 \
|
||||
${MAME_NOASM} \
|
||||
USE_SYSTEM_LIB_EXPAT=1 \
|
||||
USE_SYSTEM_LIB_ZLIB=1 \
|
||||
USE_SYSTEM_LIB_FLAC=1 \
|
||||
USE_SYSTEM_LIB_JPEG=1 \
|
||||
USE_SYSTEM_LIB_LUA=1 \
|
||||
USE_SYSTEM_LIB_SQLITE3=1 \
|
||||
USE_SYSTEM_LIB_PORTAUDIO=1 \
|
||||
"
|
||||
|
||||
do_compile_prepend() {
|
||||
# seems there is some race. Build complains
|
||||
# | Assembler messages:
|
||||
# | Fatal error: can't create obj/Release/3rdparty/lzma/C/7zAlloc.o: No such file or directory
|
||||
# | Assembler messages:
|
||||
# | Fatal error: can't create obj/Release/src/mame/drivers/acvirus.o: No such file or directory
|
||||
# But that directory is created with a few files
|
||||
mkdir -p ${S}/build/projects/sdl/mame/gmake-linux/obj/Release/3rdparty/lzma/C
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# Note: Unstripped mame binary for armv7 is > 1GB!!
|
||||
install -d ${D}${bindir}
|
||||
install mame ${D}${bindir}/
|
||||
|
||||
install -d ${D}${libexecdir}
|
||||
for binary in \
|
||||
castool \
|
||||
chdman \
|
||||
floptool \
|
||||
imgtool \
|
||||
jedutil \
|
||||
ldresample \
|
||||
ldverify \
|
||||
mame \
|
||||
nltool \
|
||||
romcmp \
|
||||
split \
|
||||
src2html \
|
||||
unidasm \
|
||||
; \
|
||||
do
|
||||
install $binary ${D}${libexecdir}/
|
||||
done
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
From 389ed0e18c10a8b3368d0b9fbd2e1f5a7e37f072 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Fri, 30 Jun 2017 09:30:32 +0200
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Wed, 20 May 2020 22:12:52 +0200
|
||||
Subject: [PATCH] custtomize configure and Makefile to our needs
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
@@ -8,31 +8,17 @@ Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [oe-specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
|
||||
---
|
||||
Makefile | 2 +-
|
||||
configure | 39 +++++++++++++++++++++++----------------
|
||||
2 files changed, 24 insertions(+), 17 deletions(-)
|
||||
configure | 12 +++++++-----
|
||||
1 file changed, 7 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 35a1e36..a8984d0 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -177,7 +177,7 @@ config.mak: $(srcdir)/configure
|
||||
|
||||
install: all
|
||||
$(INSTALL) -d "$(DESTDIR)$(BINDIR)"
|
||||
- $(INSTALL) -c -s -m 755 "$(srcdir)/stella$(EXEEXT)" "$(DESTDIR)$(BINDIR)/stella$(EXEEXT)"
|
||||
+ $(INSTALL) -c -m 755 "$(srcdir)/stella$(EXEEXT)" "$(DESTDIR)$(BINDIR)/stella$(EXEEXT)"
|
||||
$(INSTALL) -d "$(DESTDIR)$(DOCDIR)"
|
||||
$(INSTALL) -c -m 644 "$(srcdir)/Announce.txt" "$(srcdir)/Changes.txt" "$(srcdir)/Copyright.txt" "$(srcdir)/License.txt" "$(srcdir)/README-SDL.txt" "$(srcdir)/Readme.txt" "$(srcdir)/Todo.txt" "$(srcdir)/docs/index.html" "$(srcdir)/docs/debugger.html" "$(DESTDIR)$(DOCDIR)/"
|
||||
$(INSTALL) -d "$(DESTDIR)$(DOCDIR)/graphics"
|
||||
diff --git a/configure b/configure
|
||||
index a1ecfb1..05e5c1c 100755
|
||||
index df91054..81690b2 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -307,6 +307,7 @@ mingw32-cross)
|
||||
@@ -323,6 +323,7 @@ mingw32-cross)
|
||||
_host_cpu=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
||||
_host_os=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
_host_vendor=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
||||
@@ -40,47 +26,8 @@ index a1ecfb1..05e5c1c 100755
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -347,21 +348,26 @@ esac
|
||||
#
|
||||
# Determine the C++ compiler
|
||||
#
|
||||
-echo_n "Looking for C++ compiler... "
|
||||
-if test -n "$_host"; then
|
||||
- compilers="$CXX $_host_prefix-g++ $_host_prefix-c++ $_host_cpu-$_host_os-g++ $_host_cpu-$_host_os-c++"
|
||||
+if test_compiler "$CXX"; then
|
||||
+ echo "$CXX"
|
||||
else
|
||||
- compilers="$CXX g++ c++"
|
||||
+ if test -n "$_host"; then
|
||||
+ compilers="$_host_prefix-g++ $_host_prefix-c++ $_host_cpu-$_host_os-g++ $_host_cpu-$_host_os-c++"
|
||||
+ else
|
||||
+ compilers="g++ c++"
|
||||
+ fi
|
||||
+
|
||||
+ for compiler in $compilers; do
|
||||
+ echo "testing compile $compiler"
|
||||
+ if test_compiler $compiler; then
|
||||
+ CXX=$compiler
|
||||
+ echo $CXX
|
||||
+ break
|
||||
+ fi
|
||||
+ done
|
||||
fi
|
||||
|
||||
-for compiler in $compilers; do
|
||||
- if test_compiler "$compiler -std=c++14"; then
|
||||
- CXX=$compiler
|
||||
- echo $CXX
|
||||
- break
|
||||
- fi
|
||||
-done
|
||||
-if test -z $CXX; then
|
||||
+if test -z "$CXX"; then
|
||||
echo "none found!"
|
||||
exit 1
|
||||
fi
|
||||
@@ -511,8 +517,9 @@ if test -n "$_host"; then
|
||||
_host_os=win32
|
||||
@@ -549,8 +550,9 @@ if test -n "$_host"; then
|
||||
_host_os=unix
|
||||
;;
|
||||
*)
|
||||
- echo "Cross-compiling to unknown target, please add your target to configure."
|
||||
@@ -91,7 +38,7 @@ index a1ecfb1..05e5c1c 100755
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -676,7 +683,7 @@ fi
|
||||
@@ -762,7 +764,7 @@ fi
|
||||
# Now, add the appropriate defines/libraries/headers
|
||||
#
|
||||
echo
|
||||
@@ -100,15 +47,24 @@ index a1ecfb1..05e5c1c 100755
|
||||
|
||||
SRC="src"
|
||||
CORE="$SRC/emucore"
|
||||
@@ -694,7 +701,7 @@ ZLIB="$SRC/zlib"
|
||||
@@ -783,7 +785,7 @@ JSON="$SRC/json"
|
||||
|
||||
INCLUDES="-I$CORE -I$COMMON -I$TV -I$GUI -I$TIA -I$TIA_FRAME_MANAGER"
|
||||
INCLUDES="-I$CORE -I$COMMON -I$TV -I$TIA -I$TIA_FRAME_MANAGER -I$JSON -I$SQLITE_REPO -I$SQLITE_LIB"
|
||||
|
||||
-INCLUDES="$INCLUDES `$_sdlconfig --cflags`"
|
||||
+INCLUDES="$INCLUDES `pkg-config --cflags sdl2`"
|
||||
if test "$_build_static" = yes ; then
|
||||
_sdl_conf_libs="--static-libs"
|
||||
LDFLAGS="-static $LDFLAGS"
|
||||
@@ -791,7 +793,7 @@ else
|
||||
_sdl_conf_libs="--libs"
|
||||
fi
|
||||
|
||||
-LIBS="$LIBS `$_sdlconfig $_sdl_conf_libs`"
|
||||
+LIBS="$LIBS `pkg-config $_sdl_conf_libs sdl2`"
|
||||
LD=$CXX
|
||||
|
||||
case $_host_os in
|
||||
--
|
||||
2.14.3
|
||||
2.21.1
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@ SUMMARY = "Multi-platform Atari 2600 VCS emulator"
|
||||
HOMEPAGE = "https://stella-emu.github.io/"
|
||||
SECTION = "emulators"
|
||||
|
||||
LICENSE = "GPLv2"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://License.txt;md5=878e3965c7b52d85827c75f5a2f3b314"
|
||||
|
||||
inherit autotools-brokensep gtk-icon-cache
|
||||
inherit autotools-brokensep pkgconfig gtk-icon-cache
|
||||
|
||||
DEPENDS += "libsdl2 zlib libpng"
|
||||
|
||||
@@ -13,9 +13,6 @@ SRC_URI = " \
|
||||
https://github.com/stella-emu/stella/releases/download/${PV}/${BPN}-${PV}-src.tar.xz \
|
||||
file://0001-custtomize-configure-and-Makefile-to-our-needs.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "f7cccdf4761b7183a235ffeef136e180"
|
||||
SRC_URI[sha256sum] = "e074317c25e5d4cabec4558909d301c3a7654ad620863f05d342244fe6bdfe0a"
|
||||
SRC_URI[sha256sum] = "b49d5e5a5aa872e1f4b6f24eabd72304abdd577801d6ec349760c73b99e7f14d"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
FILES_${PN} += "${datadir}/icons"
|
||||
@@ -1,34 +0,0 @@
|
||||
From 701abed61ce01e2d91394bc266b98281f006efe7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Fri, 21 Oct 2016 18:15:31 +0200
|
||||
Subject: [PATCH] fix autoreconfig
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
fixes:
|
||||
|
||||
| gnu-configize: 'configure.ac' or 'configure.in' is required
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
configure.ac | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index b5403d2..3b7f0bb 100755
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -2360,7 +2360,6 @@ if test x"$FFMPEG_DO_SUBDIRS" = "xyes"; then
|
||||
else
|
||||
ac_configure_args="$ac_configure_args --enable-yasm-command=${YASM} --enable-make-command=${MAKE-make} --enable-full-host=${ac_cv_host} --enable-compiler=${CC} --prefix=${prefix}"
|
||||
fi
|
||||
- AC_CONFIG_SUBDIRS(src/lib/ffmpeg)
|
||||
fi
|
||||
|
||||
if test x"$HAVE_SHARED_FFMPEG" = "xyes"; then
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -1,101 +0,0 @@
|
||||
From 6f69c122f0ea97b89bb0bb72cb75e97dc24d5506 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Fri, 8 Jun 2018 11:10:25 +0200
|
||||
Subject: [PATCH] Hack build with latest FFMPEG
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Taking videos in raw format won't work with ne FFMPEG.
|
||||
|
||||
| ../../../vice-3.2/src/gfxoutputdrv/ffmpegdrv.c:363:34: error: 'CODEC_CAP_VARIABLE_FRAME_SIZE' undeclared (first use in this function); did you mean 'AV_CODEC_CAP_VARIABLE_FRAME_SIZE'?
|
||||
| if (c->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) {
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
| AV_CODEC_CAP_VARIABLE_FRAME_SIZE
|
||||
|
||||
| ../../../vice-3.2/src/gfxoutputdrv/ffmpegdrv.c:461:21: error: 'CODEC_FLAG_GLOBAL_HEADER' undeclared (first use in this function); did you mean 'AV_CODEC_FLAG_GLOBAL_HEADER'?
|
||||
| c->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
||||
| AV_CODEC_FLAG_GLOBAL_HEADER
|
||||
|
||||
| ../../../../../../../../../oe-core/workspace/sources/vice/src/gfxoutputdrv/ffmpegdrv.c:982:40: error: 'AVFMT_RAWPICTURE' undeclared (first use in this function); did you mean 'FF_API_AVPICTURE'?
|
||||
| if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) {
|
||||
| ^~~~~~~~~~~~~~~~
|
||||
| FF_API_AVPICTURE
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
src/gfxoutputdrv/ffmpegdrv.c | 16 ++++++++++++++++
|
||||
1 file changed, 16 insertions(+)
|
||||
|
||||
diff --git a/src/gfxoutputdrv/ffmpegdrv.c b/src/gfxoutputdrv/ffmpegdrv.c
|
||||
index 4748348..b52e39b 100644
|
||||
--- a/src/gfxoutputdrv/ffmpegdrv.c
|
||||
+++ b/src/gfxoutputdrv/ffmpegdrv.c
|
||||
@@ -360,7 +360,11 @@ static int ffmpegdrv_open_audio(AVFormatContext *oc, AVStream *st)
|
||||
}
|
||||
|
||||
audio_is_open = 1;
|
||||
+#ifdef AV_CODEC_CAP_VARIABLE_FRAME_SIZE
|
||||
+ if (c->codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE) {
|
||||
+#else
|
||||
if (c->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) {
|
||||
+#endif
|
||||
audio_inbuf_samples = 10000;
|
||||
} else {
|
||||
audio_inbuf_samples = c->frame_size;
|
||||
@@ -454,7 +458,11 @@ static int ffmpegmovie_init_audio(int speed, int channels, soundmovie_buffer_t *
|
||||
|
||||
/* Some formats want stream headers to be separate. */
|
||||
if (ffmpegdrv_oc->oformat->flags & AVFMT_GLOBALHEADER)
|
||||
+#ifdef AV_CODEC_FLAG_GLOBAL_HEADER
|
||||
+ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
|
||||
+#else
|
||||
c->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
||||
+#endif
|
||||
|
||||
/* create resampler context */
|
||||
#ifndef HAVE_FFMPEG_AVRESAMPLE
|
||||
@@ -787,7 +795,11 @@ static void ffmpegdrv_init_video(screenshot_t *screenshot)
|
||||
|
||||
/* Some formats want stream headers to be separate. */
|
||||
if (ffmpegdrv_oc->oformat->flags & AVFMT_GLOBALHEADER) {
|
||||
+#ifdef AV_CODEC_FLAG_GLOBAL_HEADER
|
||||
+ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
|
||||
+#else
|
||||
c->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
||||
+#endif
|
||||
}
|
||||
|
||||
if (audio_init_done) {
|
||||
@@ -967,6 +979,7 @@ static int ffmpegdrv_record(screenshot_t *screenshot)
|
||||
|
||||
video_st.frame->pts = video_st.next_pts++;
|
||||
|
||||
+#ifdef AVFMT_RAWPICTURE
|
||||
if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) {
|
||||
AVPacket pkt;
|
||||
VICE_P_AV_INIT_PACKET(&pkt);
|
||||
@@ -978,6 +991,7 @@ static int ffmpegdrv_record(screenshot_t *screenshot)
|
||||
|
||||
ret = VICE_P_AV_INTERLEAVED_WRITE_FRAME(ffmpegdrv_oc, &pkt);
|
||||
} else {
|
||||
+#endif
|
||||
AVPacket pkt = { 0 };
|
||||
int got_packet;
|
||||
|
||||
@@ -998,7 +1012,9 @@ static int ffmpegdrv_record(screenshot_t *screenshot)
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
+#ifdef AVFMT_RAWPICTURE
|
||||
}
|
||||
+#endif
|
||||
if (ret < 0) {
|
||||
log_debug("Error while writing video frame");
|
||||
return -1;
|
||||
--
|
||||
2.14.3
|
||||
|
||||
63
recipes-emulators/vice/vice/0001-Adjust-to-ffmpeg4.patch
Normal file
@@ -0,0 +1,63 @@
|
||||
From 7a5b60cce751eb9603541d8fd2d30290edb0dbf3 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Thu, 17 Mar 2022 00:18:20 +0100
|
||||
Subject: [PATCH] Adjust to ffmpeg4
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
configure.ac | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 3f206ab..1cc40db 100755
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -2336,13 +2336,13 @@ if test x"$enable_external_ffmpeg" = "xyes"; then
|
||||
|
||||
if test x"$valid_ffmpeg_platform" = "xyes"; then
|
||||
AC_MSG_RESULT([via pkg-config])
|
||||
- PKG_CHECK_MODULES(FFMPEG_AV, [libavcodec libavformat libavutil],
|
||||
+ PKG_CHECK_MODULES(FFMPEG_AV, [libavcodec4 libavformat4 libavutil4],
|
||||
[old_CFLAGS=$CFLAGS
|
||||
old_CPPFLAGS=$CPPFLAGS
|
||||
CFLAGS="$CFLAGS $FFMPEG_AV_CFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $FFMPEG_AV_CFLAGS"
|
||||
|
||||
- AC_CHECK_HEADER(libavformat/avformat.h,
|
||||
+ AC_CHECK_HEADER(ffmpeg4/libavformat/avformat.h,
|
||||
[AC_DEFINE([HAVE_FFMPEG_HEADER_SUBDIRS],,[FFMPEG uses subdirs for headers])],
|
||||
[AC_CHECK_HEADER(avformat.h,,
|
||||
[AC_MSG_ERROR([No suitable FFMPEG header found!])])])
|
||||
@@ -2350,7 +2350,7 @@ if test x"$enable_external_ffmpeg" = "xyes"; then
|
||||
CFLAGS=$old_CFLAGS
|
||||
CPPFLAGS=$old_CPPFLAGS
|
||||
|
||||
- PKG_CHECK_MODULES(FFMPEG_SWSCALE, [libswscale],
|
||||
+ PKG_CHECK_MODULES(FFMPEG_SWSCALE, [libswscale4],
|
||||
[have_swscale=yes],
|
||||
[echo "no. trying img_convert"]
|
||||
[old_LIBS=$LIBS]
|
||||
@@ -2375,13 +2375,13 @@ if test x"$enable_external_ffmpeg" = "xyes"; then
|
||||
)
|
||||
AC_DEFINE([EXTERNAL_FFMPEG],,[External FFMPEG libraries are used])
|
||||
HAVE_EXTERNAL_FFMPEG=yes
|
||||
- PKG_CHECK_MODULES(FFMPEG_SWRESAMPLE, [libswresample], [have_swresample=yes], [have_swresample=no])
|
||||
+ PKG_CHECK_MODULES(FFMPEG_SWRESAMPLE, [libswresample4], [have_swresample=yes], [have_swresample=no])
|
||||
if test x"$have_swresample" = "xyes"; then
|
||||
AC_DEFINE([HAVE_FFMPEG_SWRESAMPLE],,[Have FFMPEG swresample lib available])
|
||||
HAVE_FFMPEG_SWRESAMPLE_SUPPORT="yes"
|
||||
else
|
||||
# dnl libav is abandoned and support should be removed, but check for it if swresample is missing.
|
||||
- PKG_CHECK_MODULES(FFMPEG_AVRESAMPLE, [libavresample], [have_avresample=yes], [have_avresample=no])
|
||||
+ PKG_CHECK_MODULES(FFMPEG_AVRESAMPLE, [libavresample4], [have_avresample=yes], [have_avresample=no])
|
||||
if test x"$have_avresample" = "xyes"; then
|
||||
AC_DEFINE([HAVE_FFMPEG_AVRESAMPLE],,[Have libav avresample lib available])
|
||||
HAVE_FFMPEG_AVRESAMPLE_SUPPORT="yes"
|
||||
--
|
||||
2.34.1
|
||||
|
||||
|
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 620 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 572 B |
9
recipes-emulators/vice/vice/vice_64.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=X64-old (Vice)
|
||||
Comment=Commodore 64 Emulator (performing best currently)
|
||||
Exec=x64
|
||||
Icon=c64
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Game
|
||||
10
recipes-emulators/vice/vice/vice_64dtv.desktop
Normal file
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=X64dtv (Vice)
|
||||
Comment=Commodore 64 Emulator
|
||||
Exec=x64dtv
|
||||
Icon=c64
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Game
|
||||
Name[en_US]=vice_64dtv
|
||||
@@ -1,9 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=X64 (Vice)
|
||||
Name=X64sc (Vice)
|
||||
Comment=Commodore 64 Emulator
|
||||
Exec=x64
|
||||
Exec=x64sc
|
||||
Icon=c64
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Game
|
||||
Name[en_US]=vice_64sc
|
||||
@@ -1,65 +0,0 @@
|
||||
SUMMARY = "Versatile Commodore Emulator"
|
||||
HOMEPAGE = "http://vice-emu.sourceforge.net"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b"
|
||||
|
||||
# Sources for c64 software:
|
||||
# [1] ftp://arnold.c64.org/pub/games/
|
||||
|
||||
SRC_URI = " \
|
||||
${SOURCEFORGE_MIRROR}/vice-emu/${PN}-${PV}.tar.gz \
|
||||
file://0001-fix-autoreconfig.patch \
|
||||
file://0002-Hack-build-with-latest-FFMPEG.patch \
|
||||
file://c64_16.png \
|
||||
file://c64_32.png \
|
||||
file://c64_48.png \
|
||||
file://vice_64.desktop \
|
||||
"
|
||||
SRC_URI[md5sum] = "58ba6b6653097898e059e0194615705a"
|
||||
SRC_URI[sha256sum] = "28d99f5e110720c97ef16d8dd4219cf9a67661d58819835d19378143697ba523"
|
||||
|
||||
inherit autotools pkgconfig gtk-icon-cache
|
||||
|
||||
DEPENDS = " \
|
||||
bdftopcf-native \
|
||||
mkfontdir-native \
|
||||
mkfontscale-native \
|
||||
xa-native \
|
||||
bison-native \
|
||||
gtk+ \
|
||||
libav \
|
||||
libsdl \
|
||||
libpng \
|
||||
jpeg \
|
||||
giflib \
|
||||
libxxf86vm \
|
||||
portaudio-v19 \
|
||||
mpg123 \
|
||||
virtual/libgl \
|
||||
vte9 \
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "x11 opengl", "gtkglext", "", d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG[pulseaudio] = "--with-pulse,--without-pulse,pulseaudio,pulseaudio-server"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--disable-option-checking \
|
||||
--enable-external-ffmpeg \
|
||||
--enable-parsid \
|
||||
--enable-fullscreen \
|
||||
--enable-gnomeui \
|
||||
--with-uithreads \
|
||||
--without-oss \
|
||||
"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}/${datadir}/applications
|
||||
install -m 0644 ${WORKDIR}/vice_64.desktop ${D}/${datadir}/applications
|
||||
|
||||
for size in 16 32 48; do
|
||||
install -d ${D}/${datadir}/icons/hicolor/${size}x${size}/apps
|
||||
install -m 0644 ${WORKDIR}/c64_${size}.png ${D}/${datadir}/icons/hicolor/${size}x${size}/apps/c64.png
|
||||
done
|
||||
}
|
||||
|
||||
FILES_${PN} += "${datadir}/icons"
|
||||
95
recipes-emulators/vice/vice_3.6.1.bb
Normal file
@@ -0,0 +1,95 @@
|
||||
SUMMARY = "Versatile Commodore Emulator"
|
||||
HOMEPAGE = "http://vice-emu.sourceforge.net"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b"
|
||||
|
||||
# Sources for c64 software:
|
||||
# [1] ftp://arnold.c64.org/pub/games/
|
||||
|
||||
SRC_URI = " \
|
||||
${SOURCEFORGE_MIRROR}/vice-emu/${BPN}-${PV}.tar.gz \
|
||||
file://0001-Adjust-to-ffmpeg4.patch \
|
||||
file://c64_16.png \
|
||||
file://c64_32.png \
|
||||
file://c64_48.png \
|
||||
file://vice_64.desktop \
|
||||
file://vice_64dtv.desktop \
|
||||
file://vice_64sc.desktop \
|
||||
"
|
||||
SRC_URI[sha256sum] = "20df84c851aaf2f5000510927f6d31b32f269916d351465c366dc0afc9dc150c"
|
||||
|
||||
inherit autotools-brokensep pkgconfig gtk-icon-cache features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "opengl x11"
|
||||
|
||||
DEPENDS = " \
|
||||
glib-2.0-native \
|
||||
bdftopcf-native \
|
||||
mkfontdir-native \
|
||||
mkfontscale-native \
|
||||
dos2unix-native \
|
||||
xa-native \
|
||||
bison-native \
|
||||
glew \
|
||||
gtk+3 \
|
||||
libsdl \
|
||||
libpng \
|
||||
jpeg \
|
||||
giflib \
|
||||
libxxf86vm \
|
||||
portaudio-v19 \
|
||||
mpg123 \
|
||||
virtual/libgl \
|
||||
vte9 \
|
||||
ffmpeg4 \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)}"
|
||||
PACKAGECONFIG[pulseaudio] = "--with-pulse,--without-pulse,pulseaudio,pulseaudio-server"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--enable-external-ffmpeg \
|
||||
--enable-native-gtk3ui \
|
||||
--without-oss \
|
||||
--disable-pdf-docs \
|
||||
--libdir=${libdir} \
|
||||
--enable-x64 \
|
||||
"
|
||||
|
||||
EXTRA_OECONF:remove = " \
|
||||
--disable-static \
|
||||
"
|
||||
|
||||
CONFIGUREOPTS:remove = " \
|
||||
--disable-silent-rules \
|
||||
${@append_libtool_sysroot(d)} \
|
||||
"
|
||||
|
||||
export ar_check="no"
|
||||
|
||||
|
||||
do_configure() {
|
||||
cd ${S}/src/resid
|
||||
echo "Configuring resid..."
|
||||
ACLOCAL="$ACLOCAL" autoreconf -Wcross -Wno-obsolete --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || die "autoreconf execution failed."
|
||||
echo "Configuring resid done"
|
||||
cd ${S}
|
||||
rm -f ./configure
|
||||
ACLOCAL="$ACLOCAL" autoreconf -Wcross -Wno-obsolete --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || die "autoreconf execution failed."
|
||||
oe_runconf
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}/${datadir}/applications
|
||||
install -m 0644 ${WORKDIR}/vice_64*.desktop ${D}/${datadir}/applications
|
||||
|
||||
for size in 16 32 48; do
|
||||
install -d ${D}/${datadir}/icons/hicolor/${size}x${size}/apps
|
||||
install -m 0644 ${WORKDIR}/c64_${size}.png ${D}/${datadir}/icons/hicolor/${size}x${size}/apps/c64.png
|
||||
done
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} += "hicolor-icon-theme"
|
||||
|
||||
RREPLACES:${PN} += "vice-3.2"
|
||||
RCONFLICTS:${PN} += "vice-3.2"
|
||||
21
recipes-emulators/z80/cass80.bb
Normal file
@@ -0,0 +1,21 @@
|
||||
DESCRIPTION = "Cas juggler"
|
||||
AUTHOR = "Jürgen Buchmüller"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=9fa70e05c591cf3ab4016b22aab701df"
|
||||
|
||||
SRC_URI = "git://github.com/pullmoll/cass80.git;branch=master;protocol=https"
|
||||
SRCREV= "372455830343e5c8ebd42125cfe13191f976c343"
|
||||
PV = "0.0.0+git${SRCPV}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit qmake5
|
||||
|
||||
DEPENDS = "qtbase"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${bindir}
|
||||
mv ${D}/opt/cass80/bin/cass80 ${D}${bindir}
|
||||
rm -r ${D}/opt
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
DESCRIPTION = "Radio Shack® TRS-80 and the EACA Colour Genie EG2000 emulator"
|
||||
HOMEPAGE = "http://pmbits.de/40846.html"
|
||||
AUTHOR = "Jürgen Buchmüller"
|
||||
LICENSE = "GPLv2"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/schnitzeltony/z80.git;branch=master \
|
||||
git://github.com/schnitzeltony/z80.git;branch=master;protocol=https \
|
||||
file://0001-use-pkg-config-to-find-sdl.patch \
|
||||
file://cgenie.desktop \
|
||||
file://trs80.desktop \
|
||||
"
|
||||
|
||||
SRCREV= "413ca44336c4423ac0e39b55d75fce95ff4c31fc"
|
||||
SRCREV= "a9658c2fd33e862adc618d9dcbccf55a52d0c89d"
|
||||
PV = "0.3.1+git${SRCPV}"
|
||||
|
||||
inherit pkgconfig
|
||||
@@ -46,4 +46,4 @@ do_install() {
|
||||
install -m 0644 ${WORKDIR}/*.desktop ${D}/${datadir}/applications
|
||||
}
|
||||
|
||||
FILES_${PN} += "${datadir}/cgenie ${datadir}/trs80"
|
||||
FILES:${PN} += "${datadir}/cgenie ${datadir}/trs80"
|
||||
|
||||
26
recipes-games/doomretro/doomretro.bb
Normal file
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "The classic, refined DOOM source port"
|
||||
HOMEPAGE = "https://www.doomretro.com"
|
||||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=435fa6b85536eff97b3594b76fd0048f"
|
||||
|
||||
DEPENDS = "libsdl2 libsdl2-image libsdl2-mixer"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/bradharding/doomretro.git;branch=master;protocol=https \
|
||||
file://doomretro.png \
|
||||
file://doomretro.desktop \
|
||||
"
|
||||
SRCREV = "bdcad451c02ffc38ac44900d32648952ad710971"
|
||||
PV = "4.4.1"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/applications
|
||||
install ${WORKDIR}/${BPN}.desktop ${D}${datadir}/applications
|
||||
|
||||
install -d ${D}${datadir}/pixmaps
|
||||
install ${WORKDIR}/${BPN}.png ${D}${datadir}/pixmaps/${BPN}.png
|
||||
}
|
||||
9
recipes-games/doomretro/doomretro/doomretro.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Doomretro
|
||||
Comment=The classic, refined DOOM source port
|
||||
Exec=doomretro
|
||||
Icon=doomretro
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Game
|
||||
BIN
recipes-games/doomretro/doomretro/doomretro.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
@@ -2,18 +2,29 @@ SUMMARY = "D1X-Rebirth is a Source Port of the Descent Game"
|
||||
HOMEPAGE = "http://www.dxx-rebirth.com/"
|
||||
SECTION = "games"
|
||||
LICENSE = "DXX-Rebirth"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=022f1bfd6fd458067b51b10cd3186e78"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7077769a51d612f2edcc6abd1e5dfa6d"
|
||||
|
||||
DEPENDS = "python-scons-native libsdl libsdl-mixer physfs"
|
||||
inherit python3native pkgconfig
|
||||
|
||||
DEPENDS = " \
|
||||
python3-scons-native \
|
||||
libsdl \
|
||||
libsdl-mixer \
|
||||
libsdl-image \
|
||||
physfs \
|
||||
libpng \
|
||||
"
|
||||
|
||||
SRC_URI = " \
|
||||
http://www.dxx-rebirth.com/download/dxx/${BPN}_${PV}-src.tar.gz \
|
||||
git://github.com/dxx-rebirth/dxx-rebirth.git;branch=master;protocol=https \
|
||||
http://www.dxx-rebirth.com/download/dxx/content/descent-mac-demo.zip;name=data \
|
||||
http://www.descent2.de/files/sound/hires-sounds.7z;name=sound \
|
||||
http://www.dxx-rebirth.com/download/dxx/res/d1xr-sc55-music.dxa;name=music;unpack=0 \
|
||||
"
|
||||
SRC_URI[md5sum] = "8f43e66191fdedd0c7ff9278719accf1"
|
||||
SRC_URI[sha256sum] = "5befc8a2ab1159fdb4d4141ba9f0e229450592d5ada209e832101da5b0b3e38e"
|
||||
SRCREV = "ad46235b67a24a38dec4734f94a59eba149ad94a"
|
||||
PV = "v0.59+git${SRCPV}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI[data.md5sum] = "010815be5d87d61150a938ad593102fe"
|
||||
SRC_URI[data.sha256sum] = "17d2fdefc06a96a50f54d4eba745835b619115e5327ddc3d23052bf4ec0e3300"
|
||||
SRC_URI[sound.md5sum] = "474fdf1c1f8d2bbbc68f271cb9aa28b8"
|
||||
@@ -21,26 +32,24 @@ SRC_URI[sound.sha256sum] = "39cab9e2aed4c6ec9e3b811bbdf2c880d4acd87e4c66a9e1f80f
|
||||
SRC_URI[music.md5sum] = "bf54b45a648052b2531bbb95c001403b"
|
||||
SRC_URI[music.sha256sum] = "b27f7b9dc5f9c2744402c56c9499dfd9503c17e73a2a5223e745529d7867962f"
|
||||
|
||||
S = "${WORKDIR}/${BPN}_${PV}-src"
|
||||
|
||||
do_unpack[depends] += "p7zip-native:do_populate_sysroot"
|
||||
|
||||
do_compile() {
|
||||
scons opengl=0 prefix=${D}${prefix} sharepath=${datadir}/${BPN}
|
||||
scons ${PARALLEL_MAKE} opengl=0 prefix=${D}${prefix} sharepath=${datadir}/${BPN}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install ${BPN} ${D}${bindir}
|
||||
install ${S}/build/${BPN}/${BPN} ${D}${bindir}
|
||||
|
||||
install -d ${D}${datadir}/applications
|
||||
install ${BPN}.desktop ${D}${datadir}/applications
|
||||
install ${S}/${BPN}/${BPN}.desktop ${D}${datadir}/applications
|
||||
|
||||
install -d ${D}${datadir}/pixmaps
|
||||
install ${BPN}.xpm ${D}${datadir}/pixmaps
|
||||
install ${S}/${BPN}/${BPN}.xpm ${D}${datadir}/pixmaps
|
||||
|
||||
install -d ${D}${datadir}/${BPN}
|
||||
install ../descent.hog ../descent.pig ../d1xr-sc55-music.dxa ${D}${datadir}/${BPN}
|
||||
install ${WORKDIR}/descent.hog ${WORKDIR}/descent.pig ${WORKDIR}/d1xr-sc55-music.dxa ${D}${datadir}/${BPN}
|
||||
}
|
||||
|
||||
RRECOMMENDS_${PN} = "tremor"
|
||||
RRECOMMENDS:${PN} = "tremor"
|
||||
@@ -1,42 +0,0 @@
|
||||
From de64bf5798755f4ea24cc1b8f1d6197b8a0fc7c7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Sun, 16 Aug 2015 15:43:44 +0200
|
||||
Subject: [PATCH 1/2] Makefile: use pkgconfig to find sdl
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [Configuration]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
Makefile | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 88a8bd6..63c2983 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -14,8 +14,6 @@ WITH_NETWORK := true
|
||||
|
||||
STRIP := strip
|
||||
|
||||
-SDL_CONFIG := sdl-config
|
||||
-
|
||||
SRCS := $(wildcard src/*.c)
|
||||
OBJS := $(SRCS:src/%.c=obj/%.o)
|
||||
|
||||
@@ -39,8 +37,8 @@ endif
|
||||
|
||||
EXTRA_LDLIBS += -lm
|
||||
|
||||
-SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||
-SDL_LDLIBS := $(shell $(SDL_CONFIG) --libs)
|
||||
+SDL_CFLAGS := $(shell pkg-config --cflags sdl)
|
||||
+SDL_LDLIBS := $(shell pkg-config --libs sdl)
|
||||
ifeq ($(WITH_NETWORK), true)
|
||||
SDL_LDLIBS += -lSDL_net
|
||||
endif
|
||||
--
|
||||
2.1.0
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
From 7e1c9fb3c30d12139ad531b6b14c53fb5764b24c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Sun, 16 Aug 2015 16:04:41 +0200
|
||||
Subject: [PATCH 2/2] Fix several uninitialized variable warnings
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Backport [1]
|
||||
|
||||
[1] https://bitbucket.org/opentyrian/opentyrian/commits/03cdbc8922f7856378f2e4b51f9adb5073f6fc9e/raw/
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
src/mainint.c | 2 +-
|
||||
src/shots.c | 2 +-
|
||||
src/tyrian2.c | 4 ++--
|
||||
3 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/mainint.c b/src/mainint.c
|
||||
index 2805752..b00074e 100644
|
||||
--- a/src/mainint.c
|
||||
+++ b/src/mainint.c
|
||||
@@ -3635,7 +3635,7 @@ redo:
|
||||
blit_sprite2x2(VGAScreen, this_player->x - 17, this_player->y - 7, *shapes9ptr_, 220);
|
||||
blit_sprite2x2(VGAScreen, this_player->x + 7, this_player->y - 7, *shapes9ptr_, 222);
|
||||
|
||||
- int ship_banking;
|
||||
+ int ship_banking = 0;
|
||||
switch (ship_sprite)
|
||||
{
|
||||
case 5:
|
||||
diff --git a/src/shots.c b/src/shots.c
|
||||
index 606a19f..7aa6ac5 100644
|
||||
--- a/src/shots.c
|
||||
+++ b/src/shots.c
|
||||
@@ -319,7 +319,7 @@ JE_integer player_shot_create( JE_word portNum, uint bay_i, JE_word PX, JE_word
|
||||
if (weapon->sound > 0)
|
||||
soundQueue[soundChannel[bay_i]] = weapon->sound;
|
||||
|
||||
- int shot_id;
|
||||
+ int shot_id = MAX_PWEAPON;
|
||||
/*Rot*/
|
||||
for (int multi_i = 1; multi_i <= weapon->multi; multi_i++)
|
||||
{
|
||||
diff --git a/src/tyrian2.c b/src/tyrian2.c
|
||||
index 3a0a101..4d528cf 100644
|
||||
--- a/src/tyrian2.c
|
||||
+++ b/src/tyrian2.c
|
||||
@@ -4325,8 +4325,8 @@ void JE_eventSystem( void )
|
||||
|
||||
case 19: /* Enemy Global Move */
|
||||
{
|
||||
- int initial_i, max_i;
|
||||
- bool all_enemies;
|
||||
+ int initial_i = 0, max_i = 0;
|
||||
+ bool all_enemies = false;
|
||||
|
||||
if (eventRec[eventLoc-1].eventdat3 > 79 && eventRec[eventLoc-1].eventdat3 < 90)
|
||||
{
|
||||
--
|
||||
2.1.0
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
From 95788b1b09b0bd8e89cc3c7e5ed769ae3e87ac34 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Sun, 31 Jul 2016 04:02:51 +0200
|
||||
Subject: [PATCH] fix build with pedantic gcc6
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
src/joystick.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/src/joystick.c b/src/joystick.c
|
||||
index 63dd75d..bf99647 100644
|
||||
--- a/src/joystick.c
|
||||
+++ b/src/joystick.c
|
||||
@@ -42,7 +42,6 @@ bool ignore_joystick = false;
|
||||
int joysticks = 0;
|
||||
Joystick *joystick = NULL;
|
||||
|
||||
-static const char joystick_cfg_version = 1;
|
||||
static const int joystick_analog_max = 32767;
|
||||
|
||||
// eliminates axis movement below the threshold
|
||||
--
|
||||
2.5.5
|
||||
|
||||
47
recipes-games/opentyrian/opentyrian.bb
Normal file
@@ -0,0 +1,47 @@
|
||||
SUMMARY = "OpenTyrian is a port of the DOS shoot-em-up Tyrian"
|
||||
HOMEPAGE = "https://bitbucket.org/opentyrian/opentyrian/wiki/Home"
|
||||
SECTION = "games"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
DEPENDS = "libsdl2 libsdl2-net"
|
||||
|
||||
inherit autotools-brokensep pkgconfig
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/opentyrian/opentyrian.git;branch=master;protocol=https \
|
||||
http://camanis.net/opentyrian/tyrian21.zip;name=data \
|
||||
file://0001-increase-buffer-size-to-avoid-gcc7-format-overflow-e.patch \
|
||||
file://0002-fix-build-with-gcc8.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
SRCREV = "822c71943f6a06bc2599a0478ea41b6d413648d6"
|
||||
PV = "2.1.20130907+git${SRCPV}"
|
||||
|
||||
SRC_URI[data.sha256sum] = "7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install ${BPN} ${D}${bindir}
|
||||
|
||||
install -d ${D}${mandir}/man6
|
||||
install linux/man/${BPN}.6 ${D}${mandir}/man6
|
||||
|
||||
install -d ${D}${datadir}/applications
|
||||
install linux/${BPN}.desktop ${D}${datadir}/applications
|
||||
|
||||
install -d ${D}${datadir}/pixmaps
|
||||
install linux/icons/tyrian-128.png ${D}${datadir}/pixmaps/${BPN}.png
|
||||
|
||||
install -d ${D}${datadir}/games/tyrian
|
||||
install ${WORKDIR}/tyrian21/* ${D}${datadir}/games/tyrian
|
||||
|
||||
# remove unneeded DOS stuff
|
||||
find ${D}${datadir}/games/tyrian -name '*.exe' -exec rm -f {} \;
|
||||
find ${D}${datadir}/games/tyrian -name '*.ovl' -exec rm -f {} \;
|
||||
find ${D}${datadir}/games/tyrian -name 'setup.*' -exec rm -f {} \;
|
||||
find ${D}${datadir}/games/tyrian -name '*.doc' -exec rm -f {} \;
|
||||
find ${D}${datadir}/games/tyrian -name '*.tfp' -exec rm -f {} \;
|
||||
}
|
||||
|
||||
FILES:${PN} += "${datadir}/games"
|
||||
@@ -53,21 +53,6 @@ diff --git a/src/tyrian2.c b/src/tyrian2.c
|
||||
index 4d528cf..411d8b6 100644
|
||||
--- a/src/tyrian2.c
|
||||
+++ b/src/tyrian2.c
|
||||
@@ -2088,12 +2088,12 @@ draw_player_shot_loop_end:
|
||||
if (debug)
|
||||
{
|
||||
strcpy(tempStr, "");
|
||||
- for (temp = 0; temp < 9; temp++)
|
||||
+ /*for (temp = 0; temp < 9; temp++)
|
||||
{
|
||||
sprintf(tempStr, "%s%c", tempStr, smoothies[temp] + 48);
|
||||
}
|
||||
sprintf(buffer, "SM = %s", tempStr);
|
||||
- JE_outText(VGAScreen, 30, 70, buffer, 4, 0);
|
||||
+ JE_outText(VGAScreen, 30, 70, buffer, 4, 0);*/
|
||||
|
||||
sprintf(buffer, "Memory left = %d", -1);
|
||||
JE_outText(VGAScreen, 30, 80, buffer, 4, 0);
|
||||
@@ -2608,7 +2608,7 @@ new_game:
|
||||
read_encrypted_pascal_string(s, sizeof(s), ep_f);
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
SUMMARY = "OpenTyrian is a port of the DOS shoot-em-up Tyrian"
|
||||
HOMEPAGE = "https://bitbucket.org/opentyrian/opentyrian/wiki/Home"
|
||||
SECTION = "games"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
DEPENDS = "libsdl libsdl-net"
|
||||
|
||||
inherit autotools-brokensep pkgconfig
|
||||
|
||||
SRC_URI = " \
|
||||
http://www.camanis.net/opentyrian/releases/${BPN}-${PV}-src.tar.gz \
|
||||
http://camanis.net/opentyrian/tyrian21.zip;name=data \
|
||||
file://0001-Makefile-use-pkgconfig-to-find-sdl.patch \
|
||||
file://0002-Fix-several-uninitialized-variable-warnings.patch \
|
||||
file://0003-fix-build-with-pedantic-gcc6.patch \
|
||||
file://0004-increase-buffer-size-to-avoid-gcc7-format-overflow-e.patch \
|
||||
file://0005-fix-build-with-gcc8.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "978686c5a1dfbac69a2161aadf084c2b"
|
||||
SRC_URI[sha256sum] = "f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f"
|
||||
|
||||
SRC_URI[data.md5sum] = "2a3b206a6de25ed4b771af073f8ca904"
|
||||
SRC_URI[data.sha256sum] = "7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277"
|
||||
|
||||
CFLAGS += "-Wimplicit-fallthrough=0"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install ${BPN} ${D}${bindir}
|
||||
|
||||
install -d ${D}${mandir}/man6
|
||||
install linux/man/${BPN}.6 ${D}${mandir}/man6
|
||||
|
||||
install -d ${D}${datadir}/applications
|
||||
install linux/${BPN}.desktop ${D}${datadir}/applications
|
||||
|
||||
install -d ${D}${datadir}/pixmaps
|
||||
install linux/icons/tyrian-128.png ${D}${datadir}/pixmaps/${BPN}.png
|
||||
|
||||
install -d ${D}${datadir}/${BPN}/data
|
||||
install ${WORKDIR}/tyrian21/* ${D}${datadir}/${BPN}/data
|
||||
|
||||
# remove unneeded DOS stuff
|
||||
find ${D}${datadir}/${BPN}/data -name '*.exe' -exec rm -f {} \;
|
||||
find ${D}${datadir}/${BPN}/data -name '*.ovl' -exec rm -f {} \;
|
||||
find ${D}${datadir}/${BPN}/data -name 'setup.*' -exec rm -f {} \;
|
||||
find ${D}${datadir}/${BPN}/data -name '*.doc' -exec rm -f {} \;
|
||||
find ${D}${datadir}/${BPN}/data -name '*.tfp' -exec rm -f {} \;
|
||||
}
|
||||
@@ -1,173 +0,0 @@
|
||||
From be3b1dcbe0d9920eff4094e0a2ef8cd736051dff Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Wed, 21 Dec 2016 08:20:27 +0100
|
||||
Subject: [PATCH] gtkglwidget: various fixes
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Taken from [1]
|
||||
|
||||
[1] http://pkgs.fedoraproject.org/cgit/rpms/gtkglext.git/plain/gtkglext-1.2.0-bz677457.diff
|
||||
|
||||
Upstream Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
gtk/gtkglwidget.c | 31 +++++++++++++++++++------------
|
||||
1 file changed, 19 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/gtk/gtkglwidget.c b/gtk/gtkglwidget.c
|
||||
index ecb41ef..2e5e9f6 100644
|
||||
--- a/gtk/gtkglwidget.c
|
||||
+++ b/gtk/gtkglwidget.c
|
||||
@@ -16,7 +16,9 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
||||
*/
|
||||
|
||||
-#include <gtk/gtkmain.h>
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+#include "config.h"
|
||||
+#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "gtkglprivate.h"
|
||||
#include "gtkglwidget.h"
|
||||
@@ -68,6 +70,7 @@
|
||||
gtk_gl_widget_realize (GtkWidget *widget,
|
||||
GLWidgetPrivate *private)
|
||||
{
|
||||
+ GdkWindow *window;
|
||||
GdkGLWindow *glwindow;
|
||||
|
||||
GTK_GL_NOTE_FUNC_PRIVATE ();
|
||||
@@ -77,9 +80,10 @@
|
||||
* handlers.
|
||||
*/
|
||||
|
||||
- if (!gdk_window_is_gl_capable (widget->window))
|
||||
+ window = gtk_widget_get_window (widget);
|
||||
+ if (!gdk_window_is_gl_capable (window))
|
||||
{
|
||||
- glwindow = gdk_window_set_gl_capability (widget->window,
|
||||
+ glwindow = gdk_window_set_gl_capability (window,
|
||||
private->glconfig,
|
||||
NULL);
|
||||
if (glwindow == NULL)
|
||||
@@ -127,9 +131,9 @@
|
||||
* Synchronize OpenGL and window resizing request streams.
|
||||
*/
|
||||
|
||||
- if (GTK_WIDGET_REALIZED (widget) && private->is_realized)
|
||||
+ if (gtk_widget_get_realized (widget) && private->is_realized)
|
||||
{
|
||||
- gldrawable = gdk_window_get_gl_drawable (widget->window);
|
||||
+ gldrawable = gdk_window_get_gl_drawable (gtk_widget_get_window (widget));
|
||||
gdk_gl_drawable_wait_gdk (gldrawable);
|
||||
}
|
||||
}
|
||||
@@ -146,7 +150,7 @@
|
||||
|
||||
if (private->glcontext != NULL)
|
||||
{
|
||||
- gdk_gl_context_destroy (private->glcontext);
|
||||
+ g_object_unref (private->glcontext);
|
||||
private->glcontext = NULL;
|
||||
}
|
||||
|
||||
@@ -154,8 +158,8 @@
|
||||
* Remove OpenGL-capability from widget->window.
|
||||
*/
|
||||
|
||||
- if (GTK_WIDGET_REALIZED (widget))
|
||||
- gdk_window_unset_gl_capability (widget->window);
|
||||
+ if (gtk_widget_get_realized (widget))
|
||||
+ gdk_window_unset_gl_capability (gtk_widget_get_window (widget));
|
||||
|
||||
private->is_realized = FALSE;
|
||||
}
|
||||
@@ -174,7 +178,7 @@
|
||||
*/
|
||||
|
||||
toplevel = gtk_widget_get_toplevel (widget);
|
||||
- if (GTK_WIDGET_TOPLEVEL (toplevel) && !GTK_WIDGET_REALIZED (toplevel))
|
||||
+ if (gtk_widget_is_toplevel (toplevel) && !gtk_widget_get_realized (toplevel))
|
||||
{
|
||||
GTK_GL_NOTE (MISC,
|
||||
g_message (" - Install colormap to the top-level window."));
|
||||
@@ -188,23 +192,27 @@
|
||||
GtkStyle *previous_style,
|
||||
gpointer user_data)
|
||||
{
|
||||
+ GdkWindow *window;
|
||||
+
|
||||
GTK_GL_NOTE_FUNC_PRIVATE ();
|
||||
|
||||
/*
|
||||
* Set a background of "None" on window to avoid AIX X server crash.
|
||||
*/
|
||||
|
||||
- if (GTK_WIDGET_REALIZED (widget))
|
||||
+ if (gtk_widget_get_realized (widget))
|
||||
{
|
||||
+ window = gtk_widget_get_window (widget);
|
||||
+
|
||||
GTK_GL_NOTE (MISC,
|
||||
g_message (" - window->bg_pixmap = %p",
|
||||
- ((GdkWindowObject *) (widget->window))->bg_pixmap));
|
||||
+ ((GdkWindowObject *) window)->bg_pixmap));
|
||||
|
||||
- gdk_window_set_back_pixmap (widget->window, NULL, FALSE);
|
||||
+ gdk_window_set_back_pixmap (window, NULL, FALSE);
|
||||
|
||||
GTK_GL_NOTE (MISC,
|
||||
g_message (" - window->bg_pixmap = %p",
|
||||
- ((GdkWindowObject *) (widget->window))->bg_pixmap));
|
||||
+ ((GdkWindowObject *) window)->bg_pixmap));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,8 +258,8 @@
|
||||
GTK_GL_NOTE_FUNC ();
|
||||
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
|
||||
- g_return_val_if_fail (!GTK_WIDGET_NO_WINDOW (widget), FALSE);
|
||||
- g_return_val_if_fail (!GTK_WIDGET_REALIZED (widget), FALSE);
|
||||
+ g_return_val_if_fail (gtk_widget_get_has_window (widget), FALSE);
|
||||
+ g_return_val_if_fail (!gtk_widget_get_realized (widget), FALSE);
|
||||
g_return_val_if_fail (GDK_IS_GL_CONFIG (glconfig), FALSE);
|
||||
|
||||
/*
|
||||
@@ -432,9 +440,9 @@
|
||||
GTK_GL_NOTE_FUNC ();
|
||||
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
||||
- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
|
||||
+ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
|
||||
|
||||
- gldrawable = gdk_window_get_gl_drawable (widget->window);
|
||||
+ gldrawable = gdk_window_get_gl_drawable (gtk_widget_get_window (widget));
|
||||
if (gldrawable == NULL)
|
||||
return NULL;
|
||||
|
||||
@@ -474,7 +482,7 @@
|
||||
GLWidgetPrivate *private;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
||||
- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
|
||||
+ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
|
||||
|
||||
private = g_object_get_qdata (G_OBJECT (widget), quark_gl_private);
|
||||
if (private == NULL)
|
||||
@@ -501,7 +509,7 @@
|
||||
gtk_widget_get_gl_window (GtkWidget *widget)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
||||
- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL);
|
||||
+ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
|
||||
|
||||
- return gdk_window_get_gl_window (widget->window);
|
||||
+ return gdk_window_get_gl_window (gtk_widget_get_window (widget));
|
||||
}
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
From 9cbea61c54ee97b6a92263f6392cd84a4918aa54 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Wed, 6 Jun 2018 14:10:19 +0200
|
||||
Subject: [PATCH] Fix variable name conflict
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
| ../../gtkglext-1.2.0/gdk/gdkglshapes.c:547:12: error: 'index' redeclared as different kind of symbol
|
||||
| static int index[20][3] =
|
||||
| ^~~~~
|
||||
| In file included from /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/gtkglext/1.2.0-r0/recipe-sysroot/usr/include/string.h:431:0,
|
||||
| from /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/gtkglext/1.2.0-r0/recipe-sysroot/usr/include/glib-2.0/glib/gtestutils.h:30,
|
||||
| from /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/gtkglext/1.2.0-r0/recipe-sysroot/usr/include/glib-2.0/glib.h:82,
|
||||
| from ../../gtkglext-1.2.0/gdk/gdkglshapes.c:21:
|
||||
| /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/gtkglext/1.2.0-r0/recipe-sysroot/usr/include/strings.h:68:14: note: previous declaration of 'index' was here
|
||||
| extern char *index (const char *__s, int __c)
|
||||
| ^~~~~
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
gdk/gdkglshapes.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gdk/gdkglshapes.c b/gdk/gdkglshapes.c
|
||||
index f72abba..d468b05 100644
|
||||
--- a/gdk/gdkglshapes.c
|
||||
+++ b/gdk/gdkglshapes.c
|
||||
@@ -544,7 +544,7 @@ static GLfloat idata[12][3] =
|
||||
{-Z, -X, 0}
|
||||
};
|
||||
|
||||
-static int index[20][3] =
|
||||
+static int _index[20][3] =
|
||||
{
|
||||
{0, 4, 1},
|
||||
{0, 9, 4},
|
||||
@@ -574,7 +574,7 @@ icosahedron(GLenum shadeType)
|
||||
int i;
|
||||
|
||||
for (i = 19; i >= 0; i--) {
|
||||
- drawtriangle(i, idata, index, shadeType);
|
||||
+ drawtriangle(i, idata, _index, shadeType);
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
SUMMARY = "OpenGL Extension to GTK"
|
||||
LICENSE = "GPLv2 | LGPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff"
|
||||
|
||||
inherit gnomebase pkgconfig distro_features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11 opengl"
|
||||
|
||||
DEPENDS += "gtk+ glib-2.0-native pangox-compat libglu libxmu"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-gtkglwidget-various-fixes.patch \
|
||||
file://0002-Fix-variable-name-conflict.patch \
|
||||
"
|
||||
SRC_URI[archive.md5sum] = "ed7ba24ce06a8630c07f2d0ee5f04ab4"
|
||||
SRC_URI[archive.sha256sum] = "16bd736074f6b14180f206b7e91263fc721b49912ea3258ab5f094cfa5497f51"
|
||||
GNOME_COMPRESS_TYPE="bz2"
|
||||
|
||||
FILES_${PN}-dev += "${libdir}/gtkglext-1.0"
|
||||
10
recipes-support/iir/iir1.bb
Normal file
@@ -0,0 +1,10 @@
|
||||
SUMMARY = "DSP IIR realtime filter library written in C++"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=3e4bda4204237f84ed771428f1b0a656"
|
||||
|
||||
SRC_URI = "git://github.com/berndporr/iir1.git;protocol=https;branch=master"
|
||||
SRCREV = "f5eaccc87c437d7ca3d050bdfe0783523dbb9d0e"
|
||||
PV = "1.9.3"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
35
recipes-support/munt/munt.bb
Normal file
@@ -0,0 +1,35 @@
|
||||
SUMMARY = "A multi-platform software synthesiser"
|
||||
DESCRIPTION = "A multi-platform software synthesiser emulating pre-GM MIDI devices such as the Roland MT-32, CM-32L, CM-64 and LAPC-I. In no way endorsed by or affiliated with Roland Corp"
|
||||
HOMEPAGE = "https://sourceforge.net/projects/munt/"
|
||||
|
||||
LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later & GPL-3.0-or-later"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://mt32emu/COPYING.LESSER.txt;md5=243b725d71bb5df4a1e5920b344b86ad \
|
||||
file://mt32emu/COPYING.txt;md5=751419260aa954499f7abaabaa882bbe \
|
||||
file://mt32emu_alsadrv/COPYING.LESSER.txt;md5=243b725d71bb5df4a1e5920b344b86ad \
|
||||
file://mt32emu_alsadrv/COPYING.txt;md5=751419260aa954499f7abaabaa882bbe \
|
||||
file://mt32emu_qt/COPYING.txt;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
file://mt32emu_smf2wav/COPYING.txt;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
file://mt32emu_win32drv/COPYING.LESSER.txt;md5=243b725d71bb5df4a1e5920b344b86ad \
|
||||
file://mt32emu_win32drv/COPYING.txt;md5=751419260aa954499f7abaabaa882bbe \
|
||||
"
|
||||
|
||||
DEPENDS = " \
|
||||
glib-2.0 \
|
||||
"
|
||||
|
||||
inherit cmake
|
||||
inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)}
|
||||
|
||||
SRC_URI = "git://github.com/munt/munt.git;branch=master;protocol=https"
|
||||
SRCREV = "4c5fd03fdcc6545fdaad539962df0e88059b11d0"
|
||||
PV = "2.5.3"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECMAKE = " \
|
||||
-Dlibmt32emu_SHARED=ON \
|
||||
"
|
||||
|
||||
#PACKAGECONFIG ??= "${@bb.utils.contains_any('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}"
|
||||
PACKAGECONFIG[qt5] = "-Dmunt_WITH_MT32EMU_QT=ON,-Dmunt_WITH_MT32EMU_QT=OFF,qttools-native qtbase qtmultimedia"
|
||||
|
||||
23
recipes-support/packagegroups/meta-retro-world.bb
Normal file
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "All layer packages - just for build test"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
# wlroots gets dynamically renamed
|
||||
PACKAGE_ARCH = "${TUNE_PKGARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
dosbox dosbox-staging dosbox-x \
|
||||
mame \
|
||||
stella \
|
||||
vice \
|
||||
cass80 z80 \
|
||||
\
|
||||
doomretro \
|
||||
d1x-rebirth \
|
||||
\
|
||||
cage \
|
||||
wlroots \
|
||||
"
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
SUMMARY = "Compatibility library for pangox"
|
||||
LICENSE = "LGPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
|
||||
|
||||
inherit gnomebase pkgconfig
|
||||
|
||||
DEPENDS += "pango"
|
||||
|
||||
SRC_URI[archive.md5sum] = "7bcbd0187f03e1e27af9a81e07249c33"
|
||||
SRC_URI[archive.sha256sum] = "552092b3b6c23f47f4beee05495d0f9a153781f62a1c4b7ec53857a37dfce046"
|
||||
@@ -0,0 +1,97 @@
|
||||
From 908d5fcdfeac32d7ab5cff307d0a46a962ed600f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Tue, 6 Sep 2016 00:08:16 +0200
|
||||
Subject: [PATCH] do not build java application to set midi defaults
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
dragging in whole java environment for a small tool not everybody misses
|
||||
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
CMakeLists.txt | 2 --
|
||||
pm_common/CMakeLists.txt | 18 +-----------------
|
||||
pm_dylib/CMakeLists.txt | 14 --------------
|
||||
3 files changed, 1 insertion(+), 33 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4919b78..2137ce4 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -72,6 +72,4 @@ add_subdirectory(pm_test)
|
||||
|
||||
add_subdirectory(pm_dylib)
|
||||
|
||||
-# Cannot figure out how to make an xcode Java application with CMake
|
||||
-add_subdirectory(pm_java)
|
||||
|
||||
diff --git a/pm_common/CMakeLists.txt b/pm_common/CMakeLists.txt
|
||||
index bfd4ab9..9ea9030 100644
|
||||
--- a/pm_common/CMakeLists.txt
|
||||
+++ b/pm_common/CMakeLists.txt
|
||||
@@ -67,15 +67,6 @@ if(UNIX)
|
||||
message(STATUS "SYSROOT: " ${CMAKE_OSX_SYSROOT})
|
||||
else(APPLE)
|
||||
# LINUX settings...
|
||||
- include(FindJNI)
|
||||
- message(STATUS "JAVA_JVM_LIB_PATH is " ${JAVA_JVM_LIB_PATH})
|
||||
- message(STATUS "JAVA_INCLUDE_PATH is " ${JAVA_INCLUDE_PATH})
|
||||
- message(STATUS "JAVA_INCLUDE_PATH2 is " ${JAVA_INCLUDE_PATH2})
|
||||
- message(STATUS "JAVA_JVM_LIBRARY is " ${JAVA_JVM_LIBRARY})
|
||||
- set(JAVA_INCLUDE_PATHS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})
|
||||
- # libjvm.so is found relative to JAVA_INCLUDE_PATH:
|
||||
- set(JAVAVM_LIB ${JAVA_JVM_LIBRARY}/libjvm.so)
|
||||
-
|
||||
set(LINUXSRC pmlinuxalsa pmlinux finddefault)
|
||||
prepend_path(LIBSRC ../pm_linux/ ${LINUXSRC})
|
||||
list(APPEND LIBSRC ../porttime/ptlinux)
|
||||
@@ -109,17 +100,10 @@ add_library(portmidi-static ${LIBSRC})
|
||||
set_target_properties(portmidi-static PROPERTIES OUTPUT_NAME "portmidi_s")
|
||||
target_link_libraries(portmidi-static ${PM_NEEDED_LIBS})
|
||||
|
||||
-# define the jni library
|
||||
-include_directories(${JAVA_INCLUDE_PATHS})
|
||||
-
|
||||
-set(JNISRC ${LIBSRC} ../pm_java/pmjni/pmjni.c)
|
||||
-add_library(pmjni SHARED ${JNISRC})
|
||||
-target_link_libraries(pmjni ${JNI_EXTRA_LIBS})
|
||||
-set_target_properties(pmjni PROPERTIES EXECUTABLE_EXTENSION "jnilib")
|
||||
|
||||
# install the libraries (Linux and Mac OS X command line)
|
||||
if(UNIX)
|
||||
- INSTALL(TARGETS portmidi-static pmjni
|
||||
+ INSTALL(TARGETS portmidi-static
|
||||
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
||||
ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
|
||||
# .h files installed by pm_dylib/CMakeLists.txt, so don't need them here
|
||||
diff --git a/pm_dylib/CMakeLists.txt b/pm_dylib/CMakeLists.txt
|
||||
index a0c615e..8ad415f 100644
|
||||
--- a/pm_dylib/CMakeLists.txt
|
||||
+++ b/pm_dylib/CMakeLists.txt
|
||||
@@ -63,20 +63,6 @@ if(UNIX)
|
||||
message(STATUS "SYSROOT: " ${CMAKE_OSX_SYSROOT})
|
||||
else(APPLE)
|
||||
# LINUX settings...
|
||||
- include(FindJNI)
|
||||
- # message(STATUS "JAVA_JVM_LIB_PATH is " ${JAVA_JVM_LIB_PATH})
|
||||
- # message(STATUS "JAVA_INCLUDE_PATH is " ${JAVA_INCLUDE_PATH})
|
||||
- # note: should use JAVA_JVM_LIB_PATH, but it is not set properly
|
||||
- # note: user might need to set JAVA_INCLUDE_PATH manually
|
||||
- #
|
||||
- # this will probably break on BSD and other Unix systems; the fix
|
||||
- # depends on whether FindJNI can find Java or not. If yes, then
|
||||
- # we should try to rely on automatically set JAVA_INCLUDE_PATH and
|
||||
- # JAVA_INCLUDE_PATH2; if no, then we need to make both JAVA_INCLUDE_PATH
|
||||
- # and JAVA_INCLUDE_PATH2 set by user (will need clear documentation
|
||||
- # because JAVA_INCLUDE_PATH2 is pretty obscure)
|
||||
- set(JAVAVM_LIB ${JAVA_JVM_LIBRARY})
|
||||
-
|
||||
set(LINUXSRC pmlinuxalsa pmlinux finddefault)
|
||||
prepend_path(LIBSRC ../pm_linux/ ${LINUXSRC})
|
||||
list(APPEND LIBSRC ../porttime/ptlinux)
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
From 7240f951277e47f2f37523b3ca5408bfe5fc3c53 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Tue, 6 Sep 2016 01:04:42 +0200
|
||||
Subject: [PATCH 2/2] fix compilation du to unkown functions
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
pm_linux/finddefault.c | 3 +++
|
||||
pm_linux/pmlinux.c | 2 ++
|
||||
2 files changed, 5 insertions(+)
|
||||
|
||||
diff --git a/pm_linux/finddefault.c b/pm_linux/finddefault.c
|
||||
index 6340316..89ca43a 100644
|
||||
--- a/pm_linux/finddefault.c
|
||||
+++ b/pm_linux/finddefault.c
|
||||
@@ -5,10 +5,13 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
+#include <ctype.h>
|
||||
#include "portmidi.h"
|
||||
|
||||
#define STRING_MAX 256
|
||||
|
||||
+int pm_find_default_device(char *pattern, int is_input);
|
||||
+
|
||||
/* skip over spaces, return first non-space */
|
||||
void skip_spaces(FILE *inf)
|
||||
{
|
||||
diff --git a/pm_linux/pmlinux.c b/pm_linux/pmlinux.c
|
||||
index 49e266d..42c0906 100755
|
||||
--- a/pm_linux/pmlinux.c
|
||||
+++ b/pm_linux/pmlinux.c
|
||||
@@ -26,6 +26,8 @@
|
||||
PmDeviceID pm_default_input_device_id = -1;
|
||||
PmDeviceID pm_default_output_device_id = -1;
|
||||
|
||||
+PmDeviceID find_default_device(char *path, int input, PmDeviceID id);
|
||||
+
|
||||
void pm_init()
|
||||
{
|
||||
/* Note: it is not an error for PMALSA to fail to initialize.
|
||||
--
|
||||
2.5.5
|
||||
|
||||
124
recipes-support/portmidi/files/0003-fix-format-security..patch
Normal file
@@ -0,0 +1,124 @@
|
||||
From e597c5c8636a269dbe5e664c706e66887479f161 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Tue, 26 Sep 2018 01:44:12 +0200
|
||||
Subject: [PATCH] Fix format-security
|
||||
|
||||
Stolen from [1]
|
||||
|
||||
[1] https://src.fedoraproject.org/cgit/rpms/portmidi.git/plain/portmidi-217-format-security.patch
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
pm_test/latency.c | 2 +-
|
||||
pm_test/midiclock.c | 4 ++--
|
||||
pm_test/mm.c | 8 ++++----
|
||||
pm_test/sysex.c | 2 +-
|
||||
pm_test/test.c | 2 +-
|
||||
5 files changed, 9 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/pm_test/latency.c b/pm_test/latency.c
|
||||
index 507648c..5f4bb5c 100755
|
||||
--- a/pm_test/latency.c
|
||||
+++ b/pm_test/latency.c
|
||||
@@ -280,7 +280,7 @@ int get_number(char *prompt)
|
||||
{
|
||||
char line[STRING_MAX];
|
||||
int n = 0, i;
|
||||
- printf(prompt);
|
||||
+ printf("%s",prompt);
|
||||
while (n != 1) {
|
||||
n = scanf("%d", &i);
|
||||
fgets(line, STRING_MAX, stdin);
|
||||
diff --git a/pm_test/midiclock.c b/pm_test/midiclock.c
|
||||
index 60fcf7a..17967a5 100644
|
||||
--- a/pm_test/midiclock.c
|
||||
+++ b/pm_test/midiclock.c
|
||||
@@ -167,7 +167,7 @@ int get_number(char *prompt)
|
||||
{
|
||||
char line[STRING_MAX];
|
||||
int n = 0, i;
|
||||
- printf(prompt);
|
||||
+ printf("%s",prompt);
|
||||
while (n != 1) {
|
||||
n = scanf("%d", &i);
|
||||
fgets(line, STRING_MAX, stdin);
|
||||
@@ -256,7 +256,7 @@ int main(int argc, char **argv)
|
||||
err = Pm_OpenOutput(&midi, outp, DRIVER_INFO, OUTPUT_BUFFER_SIZE,
|
||||
TIME_PROC, TIME_INFO, LATENCY);
|
||||
if (err) {
|
||||
- printf(Pm_GetErrorText(err));
|
||||
+ printf("%s",Pm_GetErrorText(err));
|
||||
goto error_exit_no_device;
|
||||
}
|
||||
active = true;
|
||||
diff --git a/pm_test/mm.c b/pm_test/mm.c
|
||||
index 209ff74..f3e6e7b 100755
|
||||
--- a/pm_test/mm.c
|
||||
+++ b/pm_test/mm.c
|
||||
@@ -119,7 +119,7 @@ int get_number(char *prompt)
|
||||
{
|
||||
char line[STRING_MAX];
|
||||
int n = 0, i;
|
||||
- printf(prompt);
|
||||
+ printf("%s",prompt);
|
||||
while (n != 1) {
|
||||
n = scanf("%d", &i);
|
||||
fgets(line, STRING_MAX, stdin);
|
||||
@@ -136,7 +136,7 @@ void receive_poll(PtTimestamp timestamp, void *userData)
|
||||
if (!active) return;
|
||||
while ((count = Pm_Read(midi_in, &event, 1))) {
|
||||
if (count == 1) output(event.message);
|
||||
- else printf(Pm_GetErrorText(count));
|
||||
+ else printf("%s",Pm_GetErrorText(count));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ int main(int argc, char **argv)
|
||||
inp = get_number("Type input device number: ");
|
||||
err = Pm_OpenInput(&midi_in, inp, NULL, 512, NULL, NULL);
|
||||
if (err) {
|
||||
- printf(Pm_GetErrorText(err));
|
||||
+ printf("%s",Pm_GetErrorText(err));
|
||||
Pt_Stop();
|
||||
mmexit(1);
|
||||
}
|
||||
@@ -484,7 +484,7 @@ private int put_pitch(int p)
|
||||
"gs", "a", "bf", "b" };
|
||||
/* note octave correction below */
|
||||
sprintf(result, "%s%d", ptos[p % 12], (p / 12) - 1);
|
||||
- printf(result);
|
||||
+ printf("%s",result);
|
||||
return strlen(result);
|
||||
}
|
||||
|
||||
diff --git a/pm_test/sysex.c b/pm_test/sysex.c
|
||||
index 627a3df..da2bb90 100755
|
||||
--- a/pm_test/sysex.c
|
||||
+++ b/pm_test/sysex.c
|
||||
@@ -39,7 +39,7 @@ int get_number(char *prompt)
|
||||
{
|
||||
char line[STRING_MAX];
|
||||
int n = 0, i;
|
||||
- printf(prompt);
|
||||
+ printf("%s",prompt);
|
||||
while (n != 1) {
|
||||
n = scanf("%d", &i);
|
||||
fgets(line, STRING_MAX, stdin);
|
||||
diff --git a/pm_test/test.c b/pm_test/test.c
|
||||
index 03d6331..dcac1bc 100755
|
||||
--- a/pm_test/test.c
|
||||
+++ b/pm_test/test.c
|
||||
@@ -37,7 +37,7 @@ int get_number(char *prompt)
|
||||
{
|
||||
char line[STRING_MAX];
|
||||
int n = 0, i;
|
||||
- printf(prompt);
|
||||
+ printf("%s",prompt);
|
||||
while (n != 1) {
|
||||
n = scanf("%d", &i);
|
||||
fgets(line, STRING_MAX, stdin);
|
||||
--
|
||||
2.14.4
|
||||
|
||||
107
recipes-support/portmidi/files/fedora-portmidi-cmake.patch
Normal file
@@ -0,0 +1,107 @@
|
||||
diff -rupN portmidi.old/pm_common/CMakeLists.txt portmidi/pm_common/CMakeLists.txt
|
||||
--- portmidi.old/pm_common/CMakeLists.txt 2010-09-20 15:57:48.000000000 -0400
|
||||
+++ portmidi/pm_common/CMakeLists.txt 2011-06-23 22:35:41.000000000 -0400
|
||||
@@ -120,8 +120,8 @@ set_target_properties(pmjni PROPERTIES E
|
||||
# install the libraries (Linux and Mac OS X command line)
|
||||
if(UNIX)
|
||||
INSTALL(TARGETS portmidi-static pmjni
|
||||
- LIBRARY DESTINATION /usr/local/lib
|
||||
- ARCHIVE DESTINATION /usr/local/lib)
|
||||
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
||||
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
|
||||
# .h files installed by pm_dylib/CMakeLists.txt, so don't need them here
|
||||
# INSTALL(FILES portmidi.h ../porttime/porttime.h
|
||||
# DESTINATION /usr/local/include)
|
||||
diff -rupN portmidi.old/pm_dylib/CMakeLists.txt portmidi/pm_dylib/CMakeLists.txt
|
||||
--- portmidi.old/pm_dylib/CMakeLists.txt 2009-11-20 00:41:09.000000000 -0500
|
||||
+++ portmidi/pm_dylib/CMakeLists.txt 2011-06-23 22:35:41.000000000 -0400
|
||||
@@ -59,7 +59,7 @@ if(UNIX)
|
||||
|
||||
set(JAVAVM_LIB "${FRAMEWORK_PATH}/JavaVM.framework")
|
||||
set(JAVA_INCLUDE_PATHS ${JAVAVM_LIB}/Headers)
|
||||
- set(INSTALL_NAME_DIR "/usr/local/lib")
|
||||
+ set(INSTALL_NAME_DIR ${LIB_INSTALL_DIR})
|
||||
message(STATUS "SYSROOT: " ${CMAKE_OSX_SYSROOT})
|
||||
else(APPLE)
|
||||
# LINUX settings...
|
||||
@@ -75,11 +75,7 @@ if(UNIX)
|
||||
# JAVA_INCLUDE_PATH2; if no, then we need to make both JAVA_INCLUDE_PATH
|
||||
# and JAVA_INCLUDE_PATH2 set by user (will need clear documentation
|
||||
# because JAVA_INCLUDE_PATH2 is pretty obscure)
|
||||
- set(JAVA_INCLUDE_PATH ${JAVA_INCLUDE_PATH-UNKNOWN}
|
||||
- CACHE STRING "where to find Java SDK include directory")
|
||||
- set(JAVA_INCLUDE_PATHS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH}/linux)
|
||||
- # libjvm.so is found relative to JAVA_INCLUDE_PATH:
|
||||
- set(JAVAVM_LIB ${JAVA_INCLUDE_PATH}/../jre/lib/i386/client/libjvm.so)
|
||||
+ set(JAVAVM_LIB ${JAVA_JVM_LIBRARY})
|
||||
|
||||
set(LINUXSRC pmlinuxalsa pmlinux finddefault)
|
||||
prepend_path(LIBSRC ../pm_linux/ ${LINUXSRC})
|
||||
@@ -114,14 +110,14 @@ prepend_path(SHARED_PATHS ../pm_common/
|
||||
list(APPEND LIBSRC ${SHARED_PATHS})
|
||||
|
||||
add_library(portmidi-dynamic SHARED ${LIBSRC})
|
||||
-set_target_properties(portmidi-dynamic PROPERTIES OUTPUT_NAME "portmidi")
|
||||
+set_target_properties(portmidi-dynamic PROPERTIES LINK_FLAGS "-L${CMAKE_CACHEFILE_DIR}/Release" SOVERSION 0 VERSION 0.${VERSION} OUTPUT_NAME "portmidi")
|
||||
target_link_libraries(portmidi-dynamic ${PM_NEEDED_LIBS})
|
||||
|
||||
# install the libraries (Linux and Mac OS X command line)
|
||||
if(UNIX)
|
||||
INSTALL(TARGETS portmidi-dynamic
|
||||
- LIBRARY DESTINATION /usr/local/lib
|
||||
- ARCHIVE DESTINATION /usr/local/lib)
|
||||
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
||||
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
|
||||
INSTALL(FILES ../pm_common/portmidi.h ../porttime/porttime.h
|
||||
- DESTINATION /usr/local/include)
|
||||
+ DESTINATION ${INCLUDE_INSTALL_DIR})
|
||||
endif(UNIX)
|
||||
diff -rupN portmidi.old/pm_java/CMakeLists.txt portmidi/pm_java/CMakeLists.txt
|
||||
--- portmidi.old/pm_java/CMakeLists.txt 2009-11-04 10:20:44.000000000 -0500
|
||||
+++ portmidi/pm_java/CMakeLists.txt 2011-06-23 22:35:54.000000000 -0400
|
||||
@@ -16,12 +16,12 @@ if(UNIX)
|
||||
COMMAND javac -classpath . pmdefaults/PmDefaultsFrame.java
|
||||
MAIN_DEPENDENCY pmdefaults/PmDefaultsFrame.java
|
||||
DEPENDS pmdefaults/PmDefaults.java
|
||||
- WORKING_DIRECTORY pm_java)
|
||||
+ )
|
||||
add_custom_command(OUTPUT pmdefaults/PmDefaults.class
|
||||
COMMAND javac -classpath . pmdefaults/PmDefaults.java
|
||||
MAIN_DEPENDENCY pmdefaults/PmDefaults.java
|
||||
DEPENDS pmdefaults/PmDefaultsFrame.java
|
||||
- WORKING_DIRECTORY pm_java)
|
||||
+ )
|
||||
add_custom_command(OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults.jar
|
||||
COMMAND cp pmdefaults/portmusic_logo.png .
|
||||
COMMAND jar cmf pmdefaults/manifest.txt pmdefaults.jar
|
||||
@@ -32,7 +32,7 @@ if(UNIX)
|
||||
COMMAND rm portmusic_logo.png
|
||||
MAIN_DEPENDENCY pmdefaults/PmDefaults.class
|
||||
DEPENDS ${PMDEFAULTS_ALL_CLASSES}
|
||||
- WORKING_DIRECTORY pm_java)
|
||||
+ )
|
||||
add_custom_target(pmdefaults_target ALL
|
||||
DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults.jar)
|
||||
# message(STATUS "add_custom_target: pmdefaults.jar")
|
||||
@@ -41,7 +41,7 @@ if(UNIX)
|
||||
INSTALL(FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults.jar
|
||||
DESTINATION /usr/share/java)
|
||||
INSTALL(PROGRAMS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults
|
||||
- DESTINATION /usr/local/bin)
|
||||
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
endif(APPLE)
|
||||
endif(UNIX)
|
||||
# In windows, use pm_java/make.bat
|
||||
diff -rupN portmidi.old/pm_test/CMakeLists.txt portmidi/pm_test/CMakeLists.txt
|
||||
--- portmidi.old/pm_test/CMakeLists.txt 2010-09-20 15:57:48.000000000 -0400
|
||||
+++ portmidi/pm_test/CMakeLists.txt 2011-06-23 22:35:41.000000000 -0400
|
||||
@@ -12,7 +12,7 @@ endif(WIN32)
|
||||
|
||||
macro(make_a_test name)
|
||||
add_executable(${name} ${name}.c)
|
||||
- target_link_libraries(${name} portmidi-static ${PM_NEEDED_LIBS})
|
||||
+ target_link_libraries(${name} portmidi-dynamic)
|
||||
add_dependencies(${name} portmidi-static)
|
||||
endmacro(make_a_test)
|
||||
|
||||
|
||||
36
recipes-support/portmidi/portmidi_217.bb
Normal file
@@ -0,0 +1,36 @@
|
||||
SUMMARY = "Real-time Midi I/O Library"
|
||||
HOMEPAGE = "http://portmedia.sourceforge.net"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://license.txt;md5=a0c1c261bc48165d48388e3a121a31e9"
|
||||
|
||||
inherit cmake dos2unix
|
||||
|
||||
DEPENDS += " \
|
||||
alsa-lib \
|
||||
"
|
||||
|
||||
SRC_URI = " \
|
||||
${SOURCEFORGE_MIRROR}/project/portmedia/${BPN}/${PV}/${BPN}-src-${PV}.zip \
|
||||
file://fedora-portmidi-cmake.patch \
|
||||
file://0001-do-not-build-java-application-to-set-midi-defaults.patch \
|
||||
file://0002-fix-compilation-du-to-unkown-functions.patch \
|
||||
file://0003-fix-format-security..patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "03f46fd3947e2ef4c8c465baaf832241"
|
||||
SRC_URI[sha256sum] = "08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f"
|
||||
|
||||
S = "${WORKDIR}/${BPN}"
|
||||
|
||||
EXTRA_OECMAKE += " \
|
||||
-DLIB_INSTALL_DIR=${libdir} \
|
||||
-DINCLUDE_INSTALL_DIR=${includedir} \
|
||||
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
|
||||
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
|
||||
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
ln -s libportmidi.so.0. "${D}/${libdir}/libporttime.so"
|
||||
ln -s libportmidi.so.0. "${D}/${libdir}/libporttime.so.0"
|
||||
ln -s libportmidi.so.0. "${D}/${libdir}/libporttime.so.0."
|
||||
}
|
||||
14
recipes-support/slirp/libslirp.bb
Normal file
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "A general purpose TCP-IP emulator"
|
||||
LICENSE = "BSD-3-Clause & MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=bca0186b14e6b05e338e729f106db727"
|
||||
|
||||
SRC_URI = "git://gitlab.freedesktop.org/slirp/libslirp.git;protocol=https;branch=master"
|
||||
SRCREV = "cceced0cce9d578ed01db68edf31af78eb66f858"
|
||||
PV = "4.6.1"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = " \
|
||||
glib-2.0 \
|
||||
"
|
||||
|
||||
inherit meson pkgconfig
|
||||
@@ -75,7 +75,7 @@ index 0cda4d6..5b9ead0 100644
|
||||
+ install -m 644 man/file65.1 man/ldo65.1 man/printcbm.1 man/reloc65.1 man/uncpk.1 man/xa.1 $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
|
||||
dist: clean
|
||||
#cd .. ; tar cvf xa-2.3.8A.tar xa-2.3.8 ; gzip xa-2.3.8A.tar
|
||||
cd .. ; tar cvf xa-2.3.11.tar xa-2.3.11 ; gzip xa-2.3.11.tar
|
||||
diff --git a/misc/Makefile b/misc/Makefile
|
||||
index 2b450e0..6967dad 100644
|
||||
--- a/misc/Makefile
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
SUMMARY = "Open-source 6502 cross assembler"
|
||||
LICENSE = "GPLv2"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1f67e705f4eb5064027b8c40ccfdb43e"
|
||||
|
||||
# They move old versions to a different folder
|
||||
MIRRORS =+ "http://www.floodgap.com/retrotech/xa/dists/ http://www.floodgap.com/retrotech/xa/dists/unsupported/"
|
||||
|
||||
SRC_URI = " \
|
||||
http://www.floodgap.com/retrotech/xa/dists/${BPN}-${PV}.tar.gz \
|
||||
file://0001-Align-Makefiles-for-cross-compiling.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "884c3dc5bcc8e8f10b05a6907781623d"
|
||||
SRC_URI[sha256sum] = "3b97d2fe8891336676ca28ff127b69e997f0b5accf2c7009b4517496929b462a"
|
||||
SRC_URI[md5sum] = "72cbd5619f75b0c9839b90c41d0f9ea6"
|
||||
SRC_URI[sha256sum] = "32f2164c99e305218e992970856dd8e2309b5cb6ac4758d7b2afe3bfebc9012d"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
26
recipes-wayland/cage/cage.bb
Normal file
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "Cage: a Wayland kiosk"
|
||||
HOMEPAGE = "https://www.hjdskes.nl/projects/cage/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3d06ce025701c9a0b391f15902ce8ed"
|
||||
|
||||
DEPENDS = " \
|
||||
wayland-native \
|
||||
wayland \
|
||||
wayland-protocols \
|
||||
wlroots \
|
||||
pixman \
|
||||
libxkbcommon \
|
||||
"
|
||||
|
||||
inherit meson pkgconfig features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "wayland"
|
||||
|
||||
SRC_URI = "git://github.com/Hjdskes/${BPN}.git;branch=master;protocol=https"
|
||||
SRCREV = "646b3e80b45a011676eb4190652b8c506d56e7a4"
|
||||
PV = "0.1.4"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES','x11','xwayland','',d)}"
|
||||
PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,xserver-xorg,xwayland"
|
||||
|
||||
33
recipes-wayland/seatd/seatd.bb
Normal file
@@ -0,0 +1,33 @@
|
||||
# stolen from: https://github.com/MarkusVolk/meta-wayland/blob/master/recipes-core/seatd/seatd_git.bb
|
||||
|
||||
SUMMARY = "A minimal seat management daemon, and a universal seat management library."
|
||||
DESCRIPTION = "Seat management takes care of mediating access to shared devices (graphics, input), without requiring the applications needing access to be root."
|
||||
AUTHOR = "kennylevinsen"
|
||||
HOMEPAGE = "https://git.sr.ht/~kennylevinsen/seatd"
|
||||
SECTION = "libs"
|
||||
LICENSE = "0BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=715a99d2dd552e6188e74d4ed2914d5a"
|
||||
|
||||
SRC_URI = "git://git.sr.ht/~kennylevinsen/seatd;protocol=https;branch=master"
|
||||
|
||||
PACKAGECONFIG[systemd] = ",,systemd"
|
||||
PACKAGECONFIG[sysvinit] = ",,elogind"
|
||||
|
||||
# On systems without logind/elogind, you need to use libseat-builtin.
|
||||
# You have to suid the sway binary. Sway will drop root permissions shortly after startup.
|
||||
PACKAGECONFIG[libseat-builtin] = "-Dlibseat-builtin=enabled -Dlibseat-logind=disabled,-Dlibseat-builtin=disabled"
|
||||
|
||||
PACKAGECONFIG[man-pages] = ",,scdoc-native"
|
||||
|
||||
PACKAGECONFIG ?= " \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)} \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
PV = "0.5.0+${SRCREV}"
|
||||
SRCREV = "2204db5531ed16bf32f969645e7177f6118f8a8e"
|
||||
|
||||
inherit meson
|
||||
|
||||
EXTRA_OEMESON += "--buildtype release"
|
||||
32
recipes-wayland/sway/wlroots.bb
Normal file
@@ -0,0 +1,32 @@
|
||||
SUMMARY = "Modules for building a Wayland compositor"
|
||||
HOMEPAGE = "https://github.com/swaywm/wlroots"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7578fad101710ea2d289ff5411f1b818"
|
||||
|
||||
DEPENDS = " \
|
||||
wayland-native \
|
||||
wayland \
|
||||
wayland-protocols \
|
||||
virtual/egl \
|
||||
virtual/libgles2 \
|
||||
libdrm \
|
||||
virtual/libgbm \
|
||||
libinput \
|
||||
libxkbcommon \
|
||||
udev \
|
||||
pixman \
|
||||
seatd \
|
||||
"
|
||||
|
||||
inherit meson pkgconfig features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "wayland opengl"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES','x11','xwayland x11-backend','',d)}"
|
||||
PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,virtual/libx11 xwayland xcb-util-wm"
|
||||
PACKAGECONFIG[x11-backend] = "-Dx11-backend=enabled,-Dx11-backend=disabled,virtual/libx11 xcb-util-renderutil"
|
||||
|
||||
SRC_URI = "git://github.com/swaywm/${BPN}.git;branch=0.14;protocol=https"
|
||||
SRCREV = "49a574420138646845fb664862db03982cfd9f5b"
|
||||
PV = "0.14.1"
|
||||
S = "${WORKDIR}/git"
|
||||