Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 765115
Collapse All | Expand All

(-)a/games-emulation/hatari/files/hatari-2.2.1-capslib-5.1-fix.patch (+44 lines)
Line 0 Link Here
1
From f63bab9182ce9e23a5f650f9d02c69cc03436dd6 Mon Sep 17 00:00:00 2001
2
From: Thomas Huth <huth@tuxfamily.org>
3
Date: Sun, 10 Feb 2019 15:30:27 +0100
4
Subject: [PATCH] Work-around problems with capslib 5.1
5
6
---
7
 src/CMakeLists.txt | 3 +++
8
 src/floppy_ipf.c   | 5 +++++
9
 2 files changed, 8 insertions(+)
10
11
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
12
index 36bb166b..2f684661 100644
13
--- a/src/CMakeLists.txt
14
+++ b/src/CMakeLists.txt
15
@@ -59,6 +59,9 @@ if(X11_FOUND)
16
 	include_directories(${X11_INCLUDE_DIR})
17
 endif(X11_FOUND)
18
 
19
+if(CAPSIMAGE_FOUND)
20
+	include_directories(${CAPSIMAGE_INCLUDE_DIR})
21
+endif(CAPSIMAGE_FOUND)
22
 
23
 link_directories(${CMAKE_CURRENT_BINARY_DIR}/debug
24
 		 ${CMAKE_CURRENT_BINARY_DIR}/falcon
25
diff --git a/src/floppy_ipf.c b/src/floppy_ipf.c
26
index 4347a5c3..37bf0c4d 100644
27
--- a/src/floppy_ipf.c
28
+++ b/src/floppy_ipf.c
29
@@ -30,7 +30,12 @@ const char floppy_ipf_fileid[] = "Hatari floppy_ipf.c : " __DATE__ " " __TIME__;
30
 
31
 #ifdef HAVE_CAPSIMAGE
32
 #if CAPSIMAGE_VERSION == 5
33
+#ifndef __cdecl
34
+#define __cdecl  /* CAPS headers need this, but do not define it on their own */
35
+#endif
36
 #include <caps5/CapsLibAll.h>
37
+#define CapsLong SDWORD
38
+#define CapsULong UDWORD
39
 #else
40
 #include <caps/fdc.h>
41
 #define CAPS_LIB_RELEASE	4
42
-- 
43
2.30.0
44
(-)a/games-emulation/hatari/hatari-2.2.1-r1.ebuild (-1 / +1 lines)
Lines 41-46 BDEPEND="virtual/pkgconfig" Link Here
41
PATCHES=(
41
PATCHES=(
42
	"${FILESDIR}"/${PN}-2.2.1-default-rom.patch
42
	"${FILESDIR}"/${PN}-2.2.1-default-rom.patch
43
	"${FILESDIR}"/${PN}-2.2.1-joystick.patch
43
	"${FILESDIR}"/${PN}-2.2.1-joystick.patch
44
	"${FILESDIR}"/${PN}-2.2.1-capslib-5.1-fix.patch
44
)
45
)
45
46
46
DOCS=(
47
DOCS=(
47
- 

Return to bug 765115