Skip to content

Commit

Permalink
Update SDL release(Using my prboom-plus port as parameter).
Browse files Browse the repository at this point in the history
Merge all downloaded libraries to build-external-libs.sh
Add genromfs to the external_deps.sh and Update romfs with GCC14
Add fluidsynth-sans-glib from original repository.
Adding genromfs from amusat repository.
Migrate some libraries to configure.
Remove libjpeg_ps2_addons
  • Loading branch information
Wolf3s committed Oct 17, 2024
1 parent a558549 commit 715f9a9
Show file tree
Hide file tree
Showing 209 changed files with 312 additions and 126,714 deletions.
110 changes: 27 additions & 83 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
LIBS := \
aalib\
cmakelibs\
libconfuse\
libid3tag\
libjpeg_ps2_addons\
libmad\
libtap\
libtiff\
lua\
libtimidity\
external_libs\
libunzip\
madplay\
ps2stuff\
ps2gl\
ps2_drivers\
romfs\
sdl\
sdlgfx\
sdlimag\
sdlimage\
sdlmixer\
sdlttf\
SIOCookie\
unzip\

LIBS_SAMPLES := \
aalib\
Expand All @@ -28,9 +18,6 @@ LIBS_SAMPLES := \
# TODO: Broken samples
# problem seems to be with the C strict mode
# throwing warnings as errors
# sdl
# sdlgfx
# sdlmixer
# ode
# romfs

Expand All @@ -48,14 +35,16 @@ clean: $(addprefix clean-, $(LIBS))

samples: $(addprefix sample-, $(LIBS_SAMPLES))

aalib:
$(MAKE) -C $@
$(MAKE) -C $@ install
sample-aalib:
$(MAKE) -C build/aalib sample

cmakelibs: ps2_drivers libtiff
./build-cmakelibs.sh
sample-lua:
$(MAKE) -C build/lua sample platform=PS2

clean-cmakelibs:
external_libs:
./build-external-libs.sh

clean-external_libs:
rm -rf ./build

libconfuse:
Expand All @@ -65,39 +54,21 @@ libconfuse:
$(MAKE) -C build/$@ all
$(MAKE) -C build/$@ install

libid3tag: cmakelibs
$(MAKE) -C $@ all
$(MAKE) -C $@ install

libjpeg_ps2_addons: cmakelibs
$(MAKE) -C $@ all
$(MAKE) -C $@ install

libmad: cmakelibs
$(MAKE) -C $@ all
$(MAKE) -C $@ install

libtap:
./fetch.sh master https://github.com/ps2dev/libtap
$(MAKE) -C build/$@ -f Makefile.PS2 all
$(MAKE) -C build/$@ -f Makefile.PS2 install

clean-libtap:
$(MAKE) -C libtap -f Makefile.PS2 clean

lua:
./fetch.sh ee-v5.4.6 https://github.com/ps2dev/lua
$(MAKE) -C build/$@ all platform=PS2
$(MAKE) -C build/$@ install platform=PS2

clean-lua:
$(MAKE) -C lua clean platform=PS2
libtimidity:
./fetch.sh libtimidity-0.2.7 https://github.com/sezero/libtimidity.git
cd build/$@ && autoreconf -vfi
cd build/$@ && CFLAGS_FOR_TARGET="-G0 -O2 -gdwarf-2 -gz" ./configure --host=mips64r5900el-ps2-elf --prefix=${PS2SDK}/ports --disable-shared --enable-static --disable-aotest --disable-ao
$(MAKE) -C build/$@ all
$(MAKE) -C build/$@ install

sample-lua:
$(MAKE) -C lua sample platform=PS2
libunzip: external_libs
cd build/zlib/contrib/minizip && autoreconf -vfi
cd build/zlib/contrib/minizip && CFLAGS_FOR_TARGET="-G0 -O2 -gdwarf-2 -gz" ./configure --host=mips64r5900el-ps2-elf --prefix=${PS2SDK}/ports --disable-shared --enable-static
$(MAKE) -C build/zlib/contrib/minizip all CFLAGS="-DIOAPI_NO_64 -I$(PS2SDK)/ports/include"
$(MAKE) -C build/zlib/contrib/minizip install

# depends on SjPCM sound library
madplay: cmakelibs libid3tag libmad
madplay: external_libs
$(MAKE) -C $@ all
$(MAKE) -C $@ install

Expand All @@ -107,53 +78,26 @@ ode:
$(MAKE) -C $@
$(MAKE) -C $@ install

ps2_drivers:
./fetch.sh 1.6.2 https://github.com/fjtrujy/ps2_drivers
$(MAKE) -C build/$@ all
$(MAKE) -C build/$@ install

ps2stuff:
./fetch.sh master https://github.com/ps2dev/ps2stuff
$(MAKE) -C build/$@ install

ps2gl: ps2stuff
./fetch.sh master https://github.com/ps2dev/ps2gl
$(MAKE) -C build/$@ install
$(MAKE) -C build/$@/glut install

clean-ps2gl:
$(MAKE) -C build/ps2gl clean
$(MAKE) -C build/ps2gl/glut clean

romfs:
$(MAKE) -C $@
$(MAKE) -C $@ install

sdl: cmakelibs
sdl: external_libs
$(MAKE) -C $@
$(MAKE) -C $@ install

sdlgfx: sdlimage
$(MAKE) -C $@
$(MAKE) -C $@ install

sdlimage: cmakelibs libtiff sdl
sdlimage: external_libs sdl
$(MAKE) -C $@
$(MAKE) -C $@ install

sdlmixer: sdl
$(MAKE) -C $@
$(MAKE) -C $@ install

sdlttf: sdl cmakelibs
$(MAKE) -C $@
$(MAKE) -C $@ install

SIOCookie:
./fetch.sh v1.0.4 https://github.com/israpps/SIOCookie
$(MAKE) -C build/$@ all
$(MAKE) -C build/$@ install

unzip: cmakelibs
sdlttf: sdl external_libs
$(MAKE) -C $@
$(MAKE) -C $@ install
4 changes: 2 additions & 2 deletions aalib/AUTHORS
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ps2version [email protected]

Jan Hubicka ([email protected].cz)
Jan Hubicka (hubicka@freesoft.cz)
Thomas A. K. Kjaer ([email protected])
Tim Newsome ([email protected])
Kamil Toman (toman@horac.ta.jcu.cz)
Kamil Toman (toman@artax.karlin.mff.cuni.cz)
Loading

0 comments on commit 715f9a9

Please sign in to comment.