Skip to content

Commit 6e76fe6

Browse files
authored
Merge pull request #189 from ps2dev/ps2drivers_cmake
Upgrade ps2_drivers
2 parents 6adea88 + aa81f94 commit 6e76fe6

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ LIBS := \
1111
madplay\
1212
ps2stuff\
1313
ps2gl\
14-
ps2_drivers\
1514
romfs\
1615
sdl\
1716
sdlgfx\
@@ -52,7 +51,7 @@ aalib:
5251
$(MAKE) -C $@
5352
$(MAKE) -C $@ install
5453

55-
cmakelibs: ps2_drivers libtiff
54+
cmakelibs: libtiff
5655
./build-cmakelibs.sh
5756

5857
clean-cmakelibs:
@@ -107,11 +106,6 @@ ode:
107106
$(MAKE) -C $@
108107
$(MAKE) -C $@ install
109108

110-
ps2_drivers:
111-
./fetch.sh 1.6.4 https://github.com/fjtrujy/ps2_drivers
112-
$(MAKE) -C build/$@ all
113-
$(MAKE) -C build/$@ install
114-
115109
ps2stuff:
116110
./fetch.sh master https://github.com/ps2dev/ps2stuff
117111
$(MAKE) -C build/$@ install

build-cmakelibs.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ $FETCH v4.7.0 https://gitlab.com/libtiff/libtiff.git &
103103
# SDL requires to have gsKit
104104
$FETCH v1.4.1 https://github.com/ps2dev/gsKit.git &
105105

106+
# SDL requires ps2_drivers
107+
$FETCH 1.7.0 https://github.com/fjtrujy/ps2_drivers &
108+
106109
# Point to a concrete hash for now, till the SDL team releases a new version
107-
$FETCH d0c2d8bc40a90cc1a763f6cf5397e8c9958a33d8 https://github.com/libsdl-org/SDL.git &
110+
$FETCH release-2.32.10 https://github.com/libsdl-org/SDL.git &
108111
$FETCH release-2.8.1 https://github.com/libsdl-org/SDL_mixer.git &
109112
$FETCH release-2.8.8 https://github.com/libsdl-org/SDL_image.git &
110113
$FETCH release-2.24.0 https://github.com/libsdl-org/SDL_ttf.git &
@@ -191,6 +194,8 @@ CFLAGS="-Dlfind=bsearch" build_ee libtiff -Dtiff-tools=OFF -Dtiff-tests=OFF -DCM
191194

192195
# gsKit is mandatory for SDL
193196
build_ee gsKit -DCMAKE_POLICY_VERSION_MINIMUM=3.5
197+
# ps2_drivers is mandatory for SDL
198+
build_ee ps2_drivers -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DBUILD_SAMPLES=OFF
194199
build_ee SDL -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL_TESTS=OFF
195200
build_ee SDL_mixer -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2MIXER_DEPS_SHARED=OFF -DSDL2MIXER_MOD_MODPLUG=ON -DSDL2MIXER_OPUS=OFF -DSDL2MIXER_WAVPACK=OFF -DSDL2MIXER_MIDI=OFF -DSDL2MIXER_FLAC=OFF -DSDL2MIXER_SAMPLES=OFF
196201
build_ee SDL_image -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2IMAGE_TIF=OFF

0 commit comments

Comments
 (0)