Skip to content

Commit d9e5e4c

Browse files
committed
Updated some build files
1 parent 4184af9 commit d9e5e4c

File tree

8 files changed

+63
-215
lines changed

8 files changed

+63
-215
lines changed

docs/compiling.md

+6
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ Install dependencies for bootstrapping and building FS-UAE:
2121
libopenal-dev libpng-dev libsdl2-dev libsdl2-ttf-dev libtool libxi-dev \
2222
libxtst-dev zip zlib1g-dev
2323

24+
FIXME: Add portmidi
25+
2426
### openSUSE
2527

2628
Install dependencies for bootstrapping and building FS-UAE:
2729

2830
sudo zypper install autoconf automake freetype2-devel gcc gcc-c++ gettext \
2931
glib2-devel libpng-devel libtool libXi-devel openal-devel SDL2-devel zip
3032

33+
FIXME: Add portmidi
34+
3135
### Fedora
3236

3337
Install dependencies for running bootstrap:
@@ -38,6 +42,8 @@ Install dependencies for building FS-UAE:
3842

3943
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
4044

45+
FIXME: Add portmidi
46+
4147
### Windows
4248

4349
Install latest msys2-x86_64 from www.msys2.org/ and follow the installation

docs/options/fullscreen_spaces

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Description: "Use fullscreen spaces (macOS)"
2+
Default: 0
3+
Example: 1
4+
Type: boolean

fsbuild/download.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77

88

9-
def verify():
9+
def verify(archive: str, h, checksum):
1010
with open(archive, "rb") as f:
1111
actual_checksum = h(f.read()).hexdigest()
1212
result = actual_checksum == checksum
@@ -16,7 +16,6 @@ def verify():
1616
print("Checksum verification failed")
1717
print("Expected", checksum)
1818
print("But got:", actual_checksum)
19-
2019
return result
2120

2221

@@ -36,7 +35,7 @@ def main():
3635
archive = os.path.join("fsbuild/_sources", archive)
3736

3837
if os.path.exists(archive):
39-
if verify():
38+
if verify(archive, h, checksum):
4039
sys.exit(0)
4140
print("Removing archive", archive)
4241
os.remove(archive)
@@ -46,7 +45,7 @@ def main():
4645
print("Failed to download")
4746
sys.exit(1)
4847

49-
if not verify():
48+
if not verify(archive, h, checksum):
5049
sys.exit(2)
5150

5251

fsdeps/env.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
# Intended for sourcing by other shell scripts
22
# This file is automatically generated by fs-package
33

4-
# export FSDEPS_NAME=project-name
5-
# export FSDEPS_PREFIX=$HOME/.fsdeps/$FSDEPS_NAME
4+
. ./PACKAGE.FS
5+
66
export FSDEPS_PREFIX="`pwd`/fsdeps/_prefix"
77

88
export CMAKE_PREFIX_PATH=$FSDEPS_PREFIX
99

1010
export C_INCLUDE_PATH=$FSDEPS_PREFIX/include
1111
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
1414

1515
export PATH=$FSDEPS_PREFIX/bin:$PATH
1616
export LD_LIBRARY_PATH=$FSDEPS_PREFIX/lib:$FSDEPS_PREFIX/lib64
1717

18+
if [ "$PACKAGE_MACOS_VERSION_MIN" != "" ]; then
19+
export MACOSX_DEPLOYMENT_TARGET=$PACKAGE_MACOS_VERSION_MIN
20+
else
1821
export MACOSX_DEPLOYMENT_TARGET=10.9
22+
fi

fsdeps/fedora

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

fsdeps/linux.sh

-33
This file was deleted.

fsdeps/macos.sh

-173
This file was deleted.

fsdeps/packages/SDL2

+20-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77

88
PACKAGE=SDL2-2.0.22
99
CHECKSUM=fe7cbf3127882e3fc7259a75a0cb585620272c51745d3852ab9dd87960697f2e
10-
REVISION=0
10+
REVISION=1
1111

1212
. fsdeps/dep.sh
1313

@@ -19,6 +19,25 @@ rm -Rf fsdeps/_build && mkdir fsdeps/_build && cd fsdeps/_build
1919
tar xf ../_sources/$PACKAGE.tar.gz
2020
cd $PACKAGE
2121

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+
2241
if [ "`uname`" = "Darwin" ]; then
2342
python3 ../../replace.py \
2443
src/video/cocoa/SDL_cocoaevents.m \

0 commit comments

Comments
 (0)