forked from funtoo/games-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged: flora: e6d10e75ab8e5466f85217e9d8ae2cd0b161bf35 faustoo: e957a7aac70f92628fd8c0c65263d549b5626217 fusion809: 5f4f5c5cae1e3fbf3cbb2e397ffbaf9f21b3b6b8 gentoo-staging: f5c0f86303295b15c7bdd5e99ea5e53f01153df1 kit-fixups: 519c6b6e98391abd316d32a8f23a053118a83ac9
- Loading branch information
1 parent
f401bfc
commit 1b2d929
Showing
3 changed files
with
156 additions
and
6 deletions.
There are no files selected for viewing
147 changes: 147 additions & 0 deletions
147
games-emulation/hatari/files/hatari-2.1.0_caps5_files.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
diff -Nuar hatari-2.1.0-orig/cmake/FindCapsImage.cmake hatari-2.1.0/cmake/FindCapsImage.cmake | ||
--- hatari-2.1.0-orig/cmake/FindCapsImage.cmake 2018-07-28 20:32:59.164780571 +0300 | ||
+++ hatari-2.1.0/cmake/FindCapsImage.cmake 2018-07-28 20:33:16.130781607 +0300 | ||
@@ -1,22 +1,18 @@ | ||
- | ||
IF (CAPSIMAGE_INCLUDE_DIR) | ||
- # Already in cache, be silent | ||
- SET(CAPSIMAGE_FIND_QUIETLY TRUE) | ||
+ # Already in cache, be silent | ||
+ SET(CAPSIMAGE_FIND_QUIETLY TRUE) | ||
ENDIF (CAPSIMAGE_INCLUDE_DIR) | ||
|
||
- | ||
-# Choose the library version to use : 4 or 5 | ||
-SET(CAPSIMAGE_VERSION 5) | ||
- | ||
- | ||
-if(CAPSIMAGE_VERSION STREQUAL 4) | ||
- SET(CAPSIMAGE_DIR caps) | ||
- FIND_PATH(CAPSIMAGE_INCLUDE_DIR ${CAPSIMAGE_DIR}/capsimage.h) | ||
+if(ENABLE_CAPSIMAGE5) | ||
+ SET(CAPSIMAGE_VERSION 5) | ||
+ FIND_PATH(CAPSIMAGE_INCLUDE_DIR NAMES CapsAPI.h PATH_SUFFIXES caps5) | ||
else() | ||
- SET(CAPSIMAGE_DIR caps5) | ||
- FIND_PATH(CAPSIMAGE_INCLUDE_DIR ${CAPSIMAGE_DIR}/CapsAPI.h) | ||
+ SET(CAPSIMAGE_VERSION 4) | ||
+ FIND_PATH(CAPSIMAGE_INCLUDE_DIR NAMES capsimage.h PATH_SUFFIXES caps) | ||
endif() | ||
|
||
+message(${CAPSIMAGE_INCLUDE_DIR}) | ||
+ | ||
if(WIN32) | ||
FIND_LIBRARY(CAPSIMAGE_LIBRARY NAMES capsimg PATH_SUFFIXES ${CAPSIMAGE_DIR} ) | ||
else() | ||
diff -Nuar hatari-2.1.0-orig/src/CMakeLists.txt hatari-2.1.0/src/CMakeLists.txt | ||
--- hatari-2.1.0-orig/src/CMakeLists.txt 2018-07-28 20:32:59.152780571 +0300 | ||
+++ hatari-2.1.0/src/CMakeLists.txt 2018-07-28 20:33:16.131781607 +0300 | ||
@@ -55,6 +55,10 @@ | ||
include_directories(${PNG_INCLUDE_DIR}) | ||
endif(PNG_FOUND) | ||
|
||
+if(CAPSIMAGE_FOUND) | ||
+ include_directories(${CAPSIMAGE_INCLUDE_DIR}) | ||
+endif(CAPSIMAGE_FOUND) | ||
+ | ||
if(X11_FOUND) | ||
include_directories(${X11_INCLUDE_DIR}) | ||
endif(X11_FOUND) | ||
diff -Nuar hatari-2.1.0-orig/src/floppy_ipf.c hatari-2.1.0/src/floppy_ipf.c | ||
--- hatari-2.1.0-orig/src/floppy_ipf.c 2018-07-28 20:32:59.152780571 +0300 | ||
+++ hatari-2.1.0/src/floppy_ipf.c 2018-07-28 20:34:32.782786288 +0300 | ||
@@ -30,9 +30,9 @@ | ||
|
||
#ifdef HAVE_CAPSIMAGE | ||
#if CAPSIMAGE_VERSION == 5 | ||
-#include <caps5/CapsLibAll.h> | ||
+#include <CapsLibAll.h> | ||
#else | ||
-#include <caps/fdc.h> | ||
+#include <fdc.h> | ||
#define CAPS_LIB_RELEASE 4 | ||
#define CAPS_LIB_REVISION 2 | ||
#endif | ||
@@ -61,8 +61,8 @@ | ||
|
||
struct CapsFdc Fdc; /* Fdc state */ | ||
struct CapsDrive Drive[ MAX_FLOPPYDRIVES ]; /* Physical drives */ | ||
- CapsLong CapsImage[ MAX_FLOPPYDRIVES ]; /* Image Id or -1 if drive empty */ | ||
- CapsLong CapsImageType[ MAX_FLOPPYDRIVES ]; /* ImageType or -1 if not known */ | ||
+ Sint32 CapsImage[ MAX_FLOPPYDRIVES ]; /* Image Id or -1 if drive empty */ | ||
+ Sint32 CapsImageType[ MAX_FLOPPYDRIVES ]; /* ImageType or -1 if not known */ | ||
|
||
int Rev_Track[ MAX_FLOPPYDRIVES ]; /* Needed to handle CAPSSetRevolution for type II/III commands */ | ||
int Rev_Side[ MAX_FLOPPYDRIVES ]; | ||
@@ -83,9 +83,9 @@ | ||
static char *IPF_FilenameFindTrackSide (char *FileName); | ||
static bool IPF_Insert_RawStreamImage ( int Drive ); | ||
|
||
-static void IPF_CallBack_Trk ( struct CapsFdc *pc , CapsULong State ); | ||
-static void IPF_CallBack_Irq ( struct CapsFdc *pc , CapsULong State ); | ||
-static void IPF_CallBack_Drq ( struct CapsFdc *pc , CapsULong State ); | ||
+static void IPF_CallBack_Trk ( struct CapsFdc *pc , Uint32 State ); | ||
+static void IPF_CallBack_Irq ( struct CapsFdc *pc , Uint32 State ); | ||
+static void IPF_CallBack_Drq ( struct CapsFdc *pc , Uint32 State ); | ||
static void IPF_Drive_Update_Enable_Side ( void ); | ||
static void IPF_FDC_LogCommand ( Uint8 Command ); | ||
#endif | ||
@@ -419,8 +419,8 @@ | ||
return false; | ||
|
||
#else | ||
- CapsLong ImageId; | ||
- CapsLong ImageType; | ||
+ Sint32 ImageId; | ||
+ Sint32 ImageType; | ||
|
||
ImageId = CAPSAddImage(); | ||
if ( ImageId < 0 ) | ||
@@ -470,7 +470,7 @@ | ||
ImageType = -1; | ||
#endif | ||
|
||
- if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk ) | ||
+ if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (Uint32)ImageSize , DI_LOCK_MEMREF ) == imgeOk ) | ||
{ | ||
struct CapsImageInfo cii; | ||
int i; | ||
@@ -703,7 +703,7 @@ | ||
* We need to update the track data by calling CAPSLockTrack | ||
*/ | ||
#ifdef HAVE_CAPSIMAGE | ||
-static void IPF_CallBack_Trk ( struct CapsFdc *pc , CapsULong State ) | ||
+static void IPF_CallBack_Trk ( struct CapsFdc *pc , Uint32 State ) | ||
{ | ||
int Drive = State; /* State is the drive number in that case */ | ||
struct CapsDrive *pd = pc->drive+Drive; /* Current drive where the track change occurred */ | ||
@@ -732,7 +732,7 @@ | ||
* Callback function used when the FDC change the IRQ signal | ||
*/ | ||
#ifdef HAVE_CAPSIMAGE | ||
-static void IPF_CallBack_Irq ( struct CapsFdc *pc , CapsULong State ) | ||
+static void IPF_CallBack_Irq ( struct CapsFdc *pc , Uint32 State ) | ||
{ | ||
LOG_TRACE(TRACE_FDC, "fdc ipf callback irq state=0x%x VBL=%d HBL=%d\n" , (int)State , nVBLs , nHBL ); | ||
|
||
@@ -751,7 +751,7 @@ | ||
* -> copy the byte to/from the DMA's FIFO if it's a read or a write to the disk | ||
*/ | ||
#ifdef HAVE_CAPSIMAGE | ||
-static void IPF_CallBack_Drq ( struct CapsFdc *pc , CapsULong State ) | ||
+static void IPF_CallBack_Drq ( struct CapsFdc *pc , Uint32 State ) | ||
{ | ||
Uint8 Byte; | ||
|
||
diff -Nuar hatari-2.1.0-orig/src/uae-cpu/newcpu.c hatari-2.1.0/src/uae-cpu/newcpu.c | ||
--- hatari-2.1.0-orig/src/uae-cpu/newcpu.c 2018-07-28 20:32:59.158780571 +0300 | ||
+++ hatari-2.1.0/src/uae-cpu/newcpu.c 2018-07-28 20:33:16.132781607 +0300 | ||
@@ -167,7 +167,7 @@ | ||
|
||
#ifdef HAVE_CAPSIMAGE | ||
#if CAPSIMAGE_VERSION == 5 | ||
-#include <caps5/CapsLibAll.h> | ||
+#include <CapsLibAll.h> | ||
#endif | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ta/md5-cache/games-emulation/hatari-2.1.0 → ...md5-cache/games-emulation/hatari-2.1.0-r1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
DEFINED_PHASES=compile configure install postinst postrm prepare setup test | ||
DEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] games-emulation/caps sdl2? ( media-libs/libsdl2[X,sound,video] ) !sdl2? ( media-libs/libsdl[X,sound,video] ) media-libs/portaudio media-libs/portmidi sys-libs/readline:0= media-libs/libpng:0= sys-libs/zlib:0= virtual/pkgconfig sys-devel/make >=dev-util/cmake-3.7.2 | ||
DEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] >=dev-libs/spsdeclib-5.1-r1 sdl2? ( media-libs/libsdl2[X,sound,video] ) !sdl2? ( media-libs/libsdl[X,sound,video] ) media-libs/portaudio media-libs/portmidi sys-libs/readline:0= media-libs/libpng:0= sys-libs/zlib:0= virtual/pkgconfig sys-devel/make >=dev-util/cmake-3.7.2 | ||
DESCRIPTION=Atari ST emulator | ||
EAPI=6 | ||
HOMEPAGE=http://hatari.tuxfamily.org/ | ||
IUSE=+sdl2 python_targets_python2_7 | ||
KEYWORDS=~amd64 ~x86 | ||
LICENSE=GPL-2 | ||
PDEPEND=dev-python/pygtk[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] >=games-emulation/emutos-0.9.9.1 | ||
RDEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] games-emulation/caps sdl2? ( media-libs/libsdl2[X,sound,video] ) !sdl2? ( media-libs/libsdl[X,sound,video] ) media-libs/portaudio media-libs/portmidi sys-libs/readline:0= media-libs/libpng:0= sys-libs/zlib:0= | ||
RDEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] >=dev-libs/spsdeclib-5.1-r1 sdl2? ( media-libs/libsdl2[X,sound,video] ) !sdl2? ( media-libs/libsdl[X,sound,video] ) media-libs/portaudio media-libs/portmidi sys-libs/readline:0= media-libs/libpng:0= sys-libs/zlib:0= | ||
REQUIRED_USE=python_targets_python2_7 | ||
SLOT=0 | ||
SRC_URI=http://download.tuxfamily.org/hatari/2.1.0/hatari-2.1.0.tar.bz2 | ||
_eclasses_=cmake-utils 1878df07fb7968266bdbcfcd576fea4b epatch 8233751dc5105a6ae8fcd86ce2bb0247 epunt-cxx f8073339d152f56626493f43d8ba4691 estack 5ac2a138d0b33354b764d84f9e835db8 eutils 1fb064d93b3ffd05c2fb19ef430a4aa1 flag-o-matic 02908f00f002f0f07c5b74783d778325 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing cac3169468f893670dac3e7cb940e045 ninja-utils 2e13cdcb950cddcb1f52c92c9712a675 python-single-r1 3e0889f7794cf229af65fd448a9e202b python-utils-r1 b5fdfa15cbe2f6299a482bf5d0c5925d toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee versionator c80ccf29e90adea7c5cae94b42eb76d0 xdg-utils 9ef13b5c5bcf0c50d6aa53692d8e441c | ||
_md5_=b518ce003e9f4c93921721b7b54057e2 | ||
_eclasses_=cmake-utils 1878df07fb7968266bdbcfcd576fea4b epatch 8233751dc5105a6ae8fcd86ce2bb0247 epunt-cxx f8073339d152f56626493f43d8ba4691 estack 5ac2a138d0b33354b764d84f9e835db8 eutils 1fb064d93b3ffd05c2fb19ef430a4aa1 flag-o-matic 02908f00f002f0f07c5b74783d778325 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing cac3169468f893670dac3e7cb940e045 ninja-utils 2e13cdcb950cddcb1f52c92c9712a675 python-single-r1 3e0889f7794cf229af65fd448a9e202b python-utils-r1 b5fdfa15cbe2f6299a482bf5d0c5925d readme.gentoo-r1 2b27b7fcc73685ec7e0456c3b48a2fff toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee versionator c80ccf29e90adea7c5cae94b42eb76d0 xdg-utils 9ef13b5c5bcf0c50d6aa53692d8e441c | ||
_md5_=b2338c570fad2bfc77f958a76ef0e7d3 |