File tree 8 files changed +63
-215
lines changed
8 files changed +63
-215
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,17 @@ Install dependencies for bootstrapping and building FS-UAE:
21
21
libopenal-dev libpng-dev libsdl2-dev libsdl2-ttf-dev libtool libxi-dev \
22
22
libxtst-dev zip zlib1g-dev
23
23
24
+ FIXME: Add portmidi
25
+
24
26
### openSUSE
25
27
26
28
Install dependencies for bootstrapping and building FS-UAE:
27
29
28
30
sudo zypper install autoconf automake freetype2-devel gcc gcc-c++ gettext \
29
31
glib2-devel libpng-devel libtool libXi-devel openal-devel SDL2-devel zip
30
32
33
+ FIXME: Add portmidi
34
+
31
35
### Fedora
32
36
33
37
Install dependencies for running bootstrap:
@@ -38,6 +42,8 @@ Install dependencies for building FS-UAE:
38
42
39
43
sudo dnf install SDL2-devel glib2-devel libpng-devel gcc gcc-c++ openal-devel libXi-devel zip libmpeg2-devel SDL2_ttf-devel glew-devel zlib-devel freetype-devel hicolor-icon-theme
40
44
45
+ FIXME: Add portmidi
46
+
41
47
### Windows
42
48
43
49
Install latest msys2-x86_64 from www.msys2.org/ and follow the installation
Original file line number Diff line number Diff line change
1
+ Description: "Use fullscreen spaces (macOS)"
2
+ Default: 0
3
+ Example: 1
4
+ Type: boolean
Original file line number Diff line number Diff line change 6
6
import sys
7
7
8
8
9
- def verify ():
9
+ def verify (archive : str , h , checksum ):
10
10
with open (archive , "rb" ) as f :
11
11
actual_checksum = h (f .read ()).hexdigest ()
12
12
result = actual_checksum == checksum
@@ -16,7 +16,6 @@ def verify():
16
16
print ("Checksum verification failed" )
17
17
print ("Expected" , checksum )
18
18
print ("But got:" , actual_checksum )
19
-
20
19
return result
21
20
22
21
@@ -36,7 +35,7 @@ def main():
36
35
archive = os .path .join ("fsbuild/_sources" , archive )
37
36
38
37
if os .path .exists (archive ):
39
- if verify ():
38
+ if verify (archive , h , checksum ):
40
39
sys .exit (0 )
41
40
print ("Removing archive" , archive )
42
41
os .remove (archive )
@@ -46,7 +45,7 @@ def main():
46
45
print ("Failed to download" )
47
46
sys .exit (1 )
48
47
49
- if not verify ():
48
+ if not verify (archive , h , checksum ):
50
49
sys .exit (2 )
51
50
52
51
Original file line number Diff line number Diff line change 1
1
# Intended for sourcing by other shell scripts
2
2
# This file is automatically generated by fs-package
3
3
4
- # export FSDEPS_NAME=project-name
5
- # export FSDEPS_PREFIX=$HOME/.fsdeps/$FSDEPS_NAME
4
+ . ./PACKAGE.FS
5
+
6
6
export FSDEPS_PREFIX=" ` pwd` /fsdeps/_prefix"
7
7
8
8
export CMAKE_PREFIX_PATH=$FSDEPS_PREFIX
9
9
10
10
export C_INCLUDE_PATH=$FSDEPS_PREFIX /include
11
11
export CPLUS_INCLUDE_PATH=$FSDEPS_PREFIX /include
12
- export LIBRARY_PATH=$FSDEPS_PREFIX /lib
13
- export PKG_CONFIG_PATH=$FSDEPS_PREFIX /lib/pkgconfig
12
+ export LIBRARY_PATH=$FSDEPS_PREFIX /lib: $FSDEPS_PREFIX /lib64
13
+ export PKG_CONFIG_PATH=$FSDEPS_PREFIX /lib/pkgconfig: $FSDEPS_PREFIX /lib64/pkgconfig
14
14
15
15
export PATH=$FSDEPS_PREFIX /bin:$PATH
16
16
export LD_LIBRARY_PATH=$FSDEPS_PREFIX /lib:$FSDEPS_PREFIX /lib64
17
17
18
+ if [ " $PACKAGE_MACOS_VERSION_MIN " != " " ]; then
19
+ export MACOSX_DEPLOYMENT_TARGET=$PACKAGE_MACOS_VERSION_MIN
20
+ else
18
21
export MACOSX_DEPLOYMENT_TARGET=10.9
22
+ fi
Original file line number Diff line number Diff line change
1
+ # SDL2-devel is not itself needed, but it pulls in other useful dependencies
2
+ # FIXME: Should libdecor be an external dependency? Looks like it only uses
3
+ # the header files (dynamic loading).
4
+
5
+ sudo dnf install \
6
+ alsa-lib-devel \
7
+ autoconf \
8
+ automake \
9
+ gcc \
10
+ gettext \
11
+ libdecor-devel \
12
+ libdrm-devel \
13
+ libgbm-devel \
14
+ libtool \
15
+ libXext-devel \
16
+ libXi-devel \
17
+ libxkbcommon-devel \
18
+ meson \
19
+ patchelf \
20
+ SDL2-devel \
21
+ wayland-devel \
22
+ zip
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
8
8
PACKAGE=SDL2-2.0.22
9
9
CHECKSUM=fe7cbf3127882e3fc7259a75a0cb585620272c51745d3852ab9dd87960697f2e
10
- REVISION=0
10
+ REVISION=1
11
11
12
12
. fsdeps/dep.sh
13
13
@@ -19,6 +19,25 @@ rm -Rf fsdeps/_build && mkdir fsdeps/_build && cd fsdeps/_build
19
19
tar xf ../_sources/$PACKAGE .tar.gz
20
20
cd $PACKAGE
21
21
22
+ patch -p1 << EOF
23
+ diff --git a/src/joystick/windows/SDL_windows_gaming_input.c b/src/joystick/windows/SDL_windows_gaming_input.c
24
+ index 8b552bb7dad..c1608a797ae 100644
25
+ --- a/src/joystick/windows/SDL_windows_gaming_input.c
26
+ +++ b/src/joystick/windows/SDL_windows_gaming_input.c
27
+ @@ -34,6 +34,11 @@
28
+ #include <cfgmgr32.h>
29
+ #include <roapi.h>
30
+
31
+ +#ifdef __MINGW32__
32
+ +#define __FIReference_1_int __FIReference_1_INT32
33
+ +#define __FIReference_1_int_get_Value __FIReference_1_INT32_get_Value
34
+ +#define __FIReference_1_int_Release __FIReference_1_INT32_Release
35
+ +#endif
36
+
37
+ struct joystick_hwdata
38
+ {
39
+ EOF
40
+
22
41
if [ " ` uname` " = " Darwin" ]; then
23
42
python3 ../../replace.py \
24
43
src/video/cocoa/SDL_cocoaevents.m \
You can’t perform that action at this time.
0 commit comments