Browse Source

mingw-w64-libfs-capsimage5: add patch for Hatari builds

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 4 years ago
parent
commit
44e7c1fe02
No known key found for this signature in database GPG Key ID: 7EACB44BA7B30DB9
  1. 10
      mingw-w64-libfs-capsimage5/PKGBUILD
  2. 15
      mingw-w64-libfs-capsimage5/hatari-build-fixups.patch

10
mingw-w64-libfs-capsimage5/PKGBUILD

@ -2,21 +2,25 @@
pkgname=mingw-w64-libfs-capsimage5
pkgver=5.1
pkgrel=1
pkgrel=2
pkgdesc="User library for IPF (Interchangeable Preservation Format) files which are used to preserve floppy disk images (mingw-w64)"
arch=('x86_64')
url="http://www.softpres.org/"
license=('custom:IPF')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-configure')
source=('spsdeclib_5.1_source.zip')
sha256sums=('e60b756fa68c5fe073a28c618a0ec06220ef185e2a3c59e4a8d001c930f693d1')
source=('spsdeclib_5.1_source.zip'
'hatari-build-fixups.patch')
sha256sums=('e60b756fa68c5fe073a28c618a0ec06220ef185e2a3c59e4a8d001c930f693d1'
'264b5704e7d9e4ae02b2fb0bf30154402d13a8b47b74c52c58d552582e8c73a1')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "$srcdir"
bsdtar -xf capsimg_source_linux_macosx.zip
cd capsimg_source_linux_macosx
patch -Np1 -i $srcdir/hatari-build-fixups.patch
}
build() {

15
mingw-w64-libfs-capsimage5/hatari-build-fixups.patch

@ -0,0 +1,15 @@
diff --git a/LibIPF/CapsFDC.h b/LibIPF/CapsFDC.h
index 561703d..c0a752e 100644
--- a/LibIPF/CapsFDC.h
+++ b/LibIPF/CapsFDC.h
@@ -1,6 +1,10 @@
#ifndef CAPSFDC_H
#define CAPSFDC_H
+#define __cdecl
+#define CapsULong UDWORD
+#define CapsLong DWORD
+
// drive defaults
#define CAPSDRIVE_35DD_RPM 300
#define CAPSDRIVE_35DD_HST 83
Loading…
Cancel
Save