Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[submodule "submodules/SDL_PSL1GHT"]
path = submodules/SDL_PSL1GHT
url = https://github.com/zeldin/SDL_PSL1GHT
[submodule "submodules/SDL2_PSL1GHT"]
branch = sdl2_master
path = submodules/SDL2_PSL1GHT
url = https://github.com/shagkur/SDL_PSL1GHT
[submodule "submodules/SDL_PSL1GHT_Libs"]
path = submodules/SDL_PSL1GHT_Libs
url = https://github.com/zeldin/SDL_PSL1GHT_Libs
[submodule "submodules/NoRSX"]
path = submodules/NoRSX
url = https://github.com/wargio/NoRSX
[submodule "submodules/ps3debugnet"]
path = submodules/ps3debugnet
url = https://github.com/sergiou87/ps3debugnet
[submodule "submodules/ps3soundlib"]
path = submodules/ps3soundlib
url = https://github.com/wargio/ps3soundlib
[submodule "submodules/tiny3d"]
path = submodules/tiny3d
url = https://github.com/wargio/tiny3d
[submodule "submodules/libunrar-ps3"]
path = submodules/libunrar-ps3
url = https://github.com/bucanero/libunrar-ps3
[submodule "submodules/libnfs"]
path = submodules/libnfs
url = https://github.com/sahlberg/libnfs
[submodule "submodules/libsmb2"]
path = submodules/libsmb2
url = https://github.com/sahlberg/libsmb2
10 changes: 0 additions & 10 deletions archives/archives.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,3 @@ ee1b4d67ea2d76ee52c5621bc6dbf61e 1137407 http://downloads.sourceforge.net/faac/
292ab65cedd5021d6b7ddd117e07cd8e 1903175 http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
7013b2471a507942eb8ed72a5d872d16 455089 https://codeload.github.com/json-c/json-c/tar.gz/json-c-0.11-20130402
4ba3d1a090159486394ba6e46f95bf6c 2706375 https://down.vpsaff.net/linux/mbedtls/mbedtls-2.16.6-gpl.tgz
- - https://github.com/zeldin/SDL_PSL1GHT/tarball/master -> sdl_psl1ght.tar.gz
- - https://github.com/zeldin/SDL_PSL1GHT_Libs/tarball/master -> sdl_psl1ght_libs.tar.gz
- - https://github.com/shagkur/SDL_PSL1GHT/archive/refs/heads/sdl2_master.tar.gz -> sdl2_psl1ght.tar.gz
- - https://github.com/wargio/NoRSX/tarball/master -> NoRSX.tar.gz
- - https://github.com/sergiou87/ps3debugnet/tarball/master -> ps3debugnet.tar.gz
- - https://github.com/wargio/ps3soundlib/tarball/master -> ps3soundlib.tar.gz
- - https://github.com/wargio/tiny3d/tarball/master -> tiny3d.tar.gz
- - https://github.com/bucanero/libunrar-ps3/tarball/master -> libunrar.tar.gz
- - https://github.com/sahlberg/libnfs/tarball/master -> libnfs.tar.gz
- - https://github.com/sahlberg/libsmb2/tarball/master -> libsmb2.tar.gz
14 changes: 14 additions & 0 deletions download.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
#!/bin/sh

submodule_options='--init --depth 1 --recursive --single-branch'

cd `dirname $0`

if expr "$1" : submodules/ >/dev/null; then
test -d "$1"/.git -o -f "$1"/.git || exec git submodule update $submodule_options -- "$1"
exit
fi

cd archives || exit

if [ $# -eq 0 ]; then
git submodule update $submodule_options
../scripts/get-config-scripts.sh
sed -e 's:^.*/::g' -e 's/.* -> //g' < archives.txt | while read file; do
../download.sh "$file" || exit
done
for i in ../submodules/*/download.sh; do
if [ -x "$i" ]; then
CONFIGS_DIR="$(pwd)" "$i"
fi
done
exit
fi

Expand Down
4 changes: 2 additions & 2 deletions scripts/013-sdl_psl1ght.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# sdl_psl1ght.sh by Naomi Peori (naomi@peori.ca)

## Download the source code.
../download.sh sdl_psl1ght.tar.gz
../download.sh submodules/SDL_PSL1GHT

## Unpack the source code.
rm -Rf sdl_psl1ght && mkdir sdl_psl1ght && tar --strip-components=1 --directory=sdl_psl1ght -xvzf ../archives/sdl_psl1ght.tar.gz
rm -Rf sdl_psl1ght && mkdir sdl_psl1ght && git --git-dir=../submodules/SDL_PSL1GHT/.git --work-tree=sdl_psl1ght checkout-index -a

## Create the build directory.
cd sdl_psl1ght
Expand Down
4 changes: 2 additions & 2 deletions scripts/014-sdl2_psl1ght.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# sdl_psl1ght.sh by Naomi Peori (naomi@peori.ca)

## Download the source code.
../download.sh sdl2_psl1ght.tar.gz
../download.sh submodules/SDL2_PSL1GHT

## Unpack the source code.
rm -Rf sdl2_psl1ght && mkdir sdl2_psl1ght && tar --strip-components=1 --directory=sdl2_psl1ght -xvzf ../archives/sdl2_psl1ght.tar.gz
rm -Rf sdl2_psl1ght && mkdir sdl2_psl1ght && git --git-dir=../submodules/SDL2_PSL1GHT/.git --work-tree=sdl2_psl1ght checkout-index -a

## Create the build directory.
cd sdl2_psl1ght
Expand Down
13 changes: 11 additions & 2 deletions scripts/015-sdl_psl1ght_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@
# sdl_psl1ght_libs.sh by Naomi Peori (naomi@peori.ca)

## Download the source code.
../download.sh sdl_psl1ght_libs.tar.gz
../download.sh submodules/SDL_PSL1GHT_Libs

## Fetch config.guess and config.sub, falling back to copies if Savannah is unavailable
../scripts/get-config-scripts.sh

## Unpack the source code.
rm -Rf sdl_psl1ght_libs && mkdir sdl_psl1ght_libs && tar --strip-components=1 --directory=sdl_psl1ght_libs -xvzf ../archives/sdl_psl1ght_libs.tar.gz
rm -Rf sdl_psl1ght_libs && mkdir sdl_psl1ght_libs && git --git-dir=../submodules/SDL_PSL1GHT_Libs/.git --work-tree=sdl_psl1ght_libs checkout-index -a

## Use any already downloaded archives from submodules dir
for i in ../submodules/SDL_PSL1GHT_Libs/archives/*; do
case "$i" in
*/archives.txt) ;;
*) [ -f "$i" ] && ln "$i" sdl_psl1ght_libs/archives/ ;;
esac
done

## Create the build directory.
cd sdl_psl1ght_libs

## Preload config.guess and config.sub
rm -f archives/config.guess archives/config.sub
cp ../../archives/config.guess ../../archives/config.sub archives/

## Compile and install.
Expand Down
4 changes: 2 additions & 2 deletions scripts/023-NoRSX.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# libNoRSX.sh by wargio (wargio@libero.it)

## Download the source code.
../download.sh NoRSX.tar.gz
../download.sh submodules/NoRSX

## Unpack the source code.
rm -Rf NoRSX && mkdir NoRSX && tar --strip-components=1 --directory=NoRSX -xvzf ../archives/NoRSX.tar.gz && cd NoRSX
rm -Rf NoRSX && mkdir NoRSX && git --git-dir=../submodules/NoRSX/.git --work-tree=NoRSX checkout-index -a && cd NoRSX

## Compile and install.
${MAKE:-make}
4 changes: 2 additions & 2 deletions scripts/025-debugnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# debugnet.sh by Sergio Padrino (@sergiou87)

## Download the source code.
../download.sh ps3debugnet.tar.gz
../download.sh submodules/ps3debugnet

## Unpack the source code.
rm -Rf ps3debugnet && mkdir ps3debugnet && tar --strip-components=1 --directory=ps3debugnet -xvzf ../archives/ps3debugnet.tar.gz
rm -Rf ps3debugnet && mkdir ps3debugnet && git --git-dir=../submodules/ps3debugnet/.git --work-tree=ps3debugnet checkout-index -a

cd ps3debugnet/libdebugnet

Expand Down
4 changes: 2 additions & 2 deletions scripts/026-ps3soundlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# PS3 SOUNDLIB Credits: Hermes, HACKERCHANNEL, Xiph.Org, mpg123 project and Wargio/deroad

## Download the source code.
../download.sh ps3soundlib.tar.gz
../download.sh submodules/ps3soundlib

## Unpack the source code.
rm -Rf ps3soundlib && mkdir ps3soundlib && tar --strip-components=1 --directory=ps3soundlib -xvzf ../archives/ps3soundlib.tar.gz && cd ps3soundlib
rm -Rf ps3soundlib && mkdir ps3soundlib && git --git-dir=../submodules/ps3soundlib/.git --work-tree=ps3soundlib checkout-index -a && cd ps3soundlib

## Compile and install.
${MAKE:-make}
4 changes: 2 additions & 2 deletions scripts/027-tiny3d_libfont.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
# Bucanero, CrystalCT, Miigotu, Shagkur, Wargio and Zeldin to update Tiny3D for GCC 7.2.0

## Download the source code.
../download.sh tiny3d.tar.gz
../download.sh submodules/tiny3d

## Unpack the source code.
rm -Rf tiny3d && mkdir tiny3d && tar --strip-components=1 --directory=tiny3d -xvzf ../archives/tiny3d.tar.gz && cd tiny3d
rm -Rf tiny3d && mkdir tiny3d && git --git-dir=../submodules/tiny3d/.git --work-tree=tiny3d checkout-index -a && cd tiny3d

## Compile and install.
${MAKE:-make} install -C lib --no-print-directory
Expand Down
4 changes: 2 additions & 2 deletions scripts/029-libunrar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# unRAR library ported to PS3 by Bucanero

## Download the source code.
../download.sh libunrar.tar.gz
../download.sh submodules/libunrar-ps3

## Unpack the source code.
rm -Rf libunrar && mkdir libunrar && tar --strip-components=1 --directory=libunrar -xvzf ../archives/libunrar.tar.gz && cd libunrar
rm -Rf libunrar && mkdir libunrar && git --git-dir=../submodules/libunrar-ps3/.git --work-tree=libunrar checkout-index -a && cd libunrar

## Compile and install.
${MAKE:-make} install
4 changes: 2 additions & 2 deletions scripts/030-libnfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# ported to PS3 by Bucanero

## Download the source code.
../download.sh libnfs.tar.gz
../download.sh submodules/libnfs

## Unpack the source code.
rm -Rf libnfs && mkdir libnfs && tar --strip-components=1 --directory=libnfs -xvzf ../archives/libnfs.tar.gz && cd libnfs
rm -Rf libnfs && mkdir libnfs && git --git-dir=../submodules/libnfs/.git --work-tree=libnfs checkout-index -a && cd libnfs

## Compile and install.
${MAKE:-make} -f ps3_ppu/Makefile.PS3_PPU install
4 changes: 2 additions & 2 deletions scripts/031-libsmb2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# ported to PS3 by Bucanero

## Download the source code.
../download.sh libsmb2.tar.gz
../download.sh submodules/libsmb2

## Unpack the source code.
rm -Rf libsmb2 && mkdir libsmb2 && tar --strip-components=1 --directory=libsmb2 -xvzf ../archives/libsmb2.tar.gz && cd libsmb2/lib
rm -Rf libsmb2 && mkdir libsmb2 && git --git-dir=../submodules/libsmb2/.git --work-tree=libsmb2 checkout-index -a && cd libsmb2/lib

## Compile and install.
${MAKE:-make} -f Makefile.PS3_PPU install
1 change: 1 addition & 0 deletions submodules/NoRSX
Submodule NoRSX added at d93953
1 change: 1 addition & 0 deletions submodules/SDL2_PSL1GHT
Submodule SDL2_PSL1GHT added at b81fba
1 change: 1 addition & 0 deletions submodules/SDL_PSL1GHT
Submodule SDL_PSL1GHT added at 641a8c
1 change: 1 addition & 0 deletions submodules/SDL_PSL1GHT_Libs
Submodule SDL_PSL1GHT_Libs added at 6c67fb
1 change: 1 addition & 0 deletions submodules/libnfs
Submodule libnfs added at f0b109
1 change: 1 addition & 0 deletions submodules/libsmb2
Submodule libsmb2 added at 133c6b
1 change: 1 addition & 0 deletions submodules/libunrar-ps3
Submodule libunrar-ps3 added at 43ded7
1 change: 1 addition & 0 deletions submodules/ps3debugnet
Submodule ps3debugnet added at 47c364
1 change: 1 addition & 0 deletions submodules/ps3soundlib
Submodule ps3soundlib added at 262ea2
1 change: 1 addition & 0 deletions submodules/tiny3d
Submodule tiny3d added at 9b02ae