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
14 changes: 14 additions & 0 deletions download.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
#!/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
sed -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
"$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.
wget --no-check-certificate https://github.com/zeldin/SDL_PSL1GHT/tarball/master -O 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 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.
wget --no-check-certificate https://github.com/sergiou87/SDL2_PSL1GHT/tarball/master -O 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 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
12 changes: 10 additions & 2 deletions scripts/015-sdl_psl1ght_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
# sdl_psl1ght_libs.sh by Naomi Peori (naomi@peori.ca)

## Download the source code.
wget --no-check-certificate https://github.com/zeldin/SDL_PSL1GHT_Libs/tarball/master -O sdl_psl1ght_libs.tar.gz
../download.sh submodules/SDL_PSL1GHT_Libs

## Unpack the source code.
rm -Rf sdl_psl1ght_libs && mkdir sdl_psl1ght_libs && tar --strip-components=1 --directory=sdl_psl1ght_libs -xvzf 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
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.
wget --no-check-certificate https://github.com/wargio/NoRSX/tarball/master -O NoRSX.tar.gz
../download.sh submodules/NoRSX

## Unpack the source code.
rm -Rf NoRSX && mkdir NoRSX && tar --strip-components=1 --directory=NoRSX -xvzf 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.
wget --no-check-certificate https://github.com/sergiou87/ps3debugnet/tarball/master -O ps3debugnet.tar.gz
../download.sh submodules/ps3debugnet

## Unpack the source code.
rm -Rf ps3debugnet && mkdir ps3debugnet && tar --strip-components=1 --directory=ps3debugnet -xvzf 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.
wget --no-check-certificate https://github.com/wargio/ps3soundlib/tarball/master -O ps3soundlib.tar.gz
../download.sh submodules/ps3soundlib

## Unpack the source code.
rm -Rf ps3soundlib && mkdir ps3soundlib && tar --strip-components=1 --directory=ps3soundlib -xvzf 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.
wget --no-check-certificate https://github.com/wargio/tiny3d/tarball/master -O tiny3d.tar.gz
../download.sh submodules/tiny3d

## Unpack the source code.
rm -Rf tiny3d && mkdir tiny3d && tar --strip-components=1 --directory=tiny3d -xvzf 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.
wget --no-check-certificate https://github.com/bucanero/libunrar-ps3/tarball/master -O libunrar.tar.gz
../download.sh submodules/libunrar-ps3

## Unpack the source code.
rm -Rf libunrar && mkdir libunrar && tar --strip-components=1 --directory=libunrar -xvzf 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.
wget --no-check-certificate https://github.com/sahlberg/libnfs/tarball/master -O libnfs.tar.gz
../download.sh submodules/libnfs

## Unpack the source code.
rm -Rf libnfs && mkdir libnfs && tar --strip-components=1 --directory=libnfs -xvzf 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.
wget --no-check-certificate https://github.com/sahlberg/libsmb2/tarball/master -O libsmb2.tar.gz
../download.sh submodules/libsmb2

## Unpack the source code.
rm -Rf libsmb2 && mkdir libsmb2 && tar --strip-components=1 --directory=libsmb2 -xvzf 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 95d79a
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 573260
1 change: 1 addition & 0 deletions submodules/libnfs
Submodule libnfs added at 9a10e1
1 change: 1 addition & 0 deletions submodules/libsmb2
Submodule libsmb2 added at ab91ef
1 change: 1 addition & 0 deletions submodules/libunrar-ps3
Submodule libunrar-ps3 added at 87b5d3
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 fe74e7