From ac00f97be37b980922ae4172524493158435f92c Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sat, 2 Mar 2024 13:24:16 -0300 Subject: [PATCH 01/18] reviewing scripts --- depends/check-wget.sh | 21 ++++ libraries-sudo.sh | 1 + makefile | 10 ++ patches/libcurl-7.31.0.patch | 20 ---- patches/polarssl-1.3.9-ipv6.patch | 12 ++ ...2.8-net.patch => polarssl-1.3.9-net.patch} | 0 ...ming.patch => polarssl-1.3.9-timing.patch} | 0 readme.md | 24 ++++ scripts/001-zlib-1.2.11.sh | 2 +- scripts/002-libpng-1.4.4.sh | 6 +- scripts/003-jpeg-8b.sh | 6 +- scripts/004-freetype-2.4.3.sh | 6 +- scripts/005-pixman-0.20.0.sh | 6 +- scripts/006-cairo-1.10.0.sh | 6 +- scripts/007-libogg-1.2.1.sh | 6 +- scripts/008-libvorbis-1.3.2.sh | 6 +- scripts/009-libzip-0.9.3.sh | 6 +- scripts/010-tiff-3.9.4.sh | 9 +- scripts/011-libmikmod-3.1.11.sh | 2 +- ...-libxml2-2.7.8.sh => 012-libxml2-2.8.0.sh} | 13 ++- scripts/013-sdl_psl1ght.sh | 3 +- scripts/014-sdl_psl1ght_libs.sh | 3 +- ...{015-polarssl.sh => 015-polarssl-1.3.9.sh} | 14 ++- ...ibcurl-7.31.0.sh => 016-libcurl-7.64.1.sh} | 13 +-- scripts/017-libmad-0.15.1b.sh | 6 +- scripts/018-flac-1.2.1.sh | 6 +- scripts/019-faad2-2.7.sh | 6 +- scripts/020-libtheora-1.1.1.sh | 6 +- scripts/021-NoRSX.sh | 2 +- scripts/022-libjson.sh | 6 +- scripts/026-ps3soundlib.sh | 12 ++ scripts/027-tiny3d_libfont.sh | 20 ++++ scripts/028-mbedTLS-2.16.6.sh | 105 ++++++++++++++++++ scripts/029-libunrar.sh | 12 ++ scripts/030-libnfs.sh | 16 +++ scripts/031-libsmb2.sh | 13 +++ scripts/032-libun7zip.sh | 12 ++ scripts/033-libtinytar.sh | 12 ++ scripts/034-libya2d.sh | 12 ++ scripts/035-bzip2.sh | 11 ++ scripts/036-dbglogger.sh | 11 ++ scripts/037-mini18n.sh | 12 ++ scripts/038-libansilove.sh | 12 ++ scripts/039-pthreads-emb.sh | 14 +++ scripts/040-sdl2_psl1ght.sh | 15 +++ 45 files changed, 428 insertions(+), 88 deletions(-) create mode 100644 makefile delete mode 100644 patches/libcurl-7.31.0.patch create mode 100644 patches/polarssl-1.3.9-ipv6.patch rename patches/{polarssl-1.2.8-net.patch => polarssl-1.3.9-net.patch} (100%) rename patches/{polarssl-1.2.8-timing.patch => polarssl-1.3.9-timing.patch} (100%) create mode 100644 readme.md rename scripts/{012-libxml2-2.7.8.sh => 012-libxml2-2.8.0.sh} (59%) rename scripts/{015-polarssl.sh => 015-polarssl-1.3.9.sh} (81%) rename scripts/{016-libcurl-7.31.0.sh => 016-libcurl-7.64.1.sh} (73%) create mode 100755 scripts/026-ps3soundlib.sh create mode 100755 scripts/027-tiny3d_libfont.sh create mode 100755 scripts/028-mbedTLS-2.16.6.sh create mode 100755 scripts/029-libunrar.sh create mode 100755 scripts/030-libnfs.sh create mode 100755 scripts/031-libsmb2.sh create mode 100755 scripts/032-libun7zip.sh create mode 100755 scripts/033-libtinytar.sh create mode 100755 scripts/034-libya2d.sh create mode 100755 scripts/035-bzip2.sh create mode 100755 scripts/036-dbglogger.sh create mode 100755 scripts/037-mini18n.sh create mode 100755 scripts/038-libansilove.sh create mode 100755 scripts/039-pthreads-emb.sh create mode 100755 scripts/040-sdl2_psl1ght.sh diff --git a/depends/check-wget.sh b/depends/check-wget.sh index 23576e1..6ef701a 100755 --- a/depends/check-wget.sh +++ b/depends/check-wget.sh @@ -3,3 +3,24 @@ ## Check for wget. wget -V 1> /dev/null || { echo "ERROR: Install wget before continuing."; exit 1; } + +## Setup global wget configuration +## https://www.gnu.org/software/wget/manual/html_node/Wgetrc-Commands.html +echo " +# If this is set to off, the server certificate is not checked against the specified client authorities. The default is “on” +check_certificate = off +# Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS) +secureprotocol = auto +# You can lower (or raise) the default number of retries when downloading a file (default is 20). +tries = 30 +# Set all applicable timeout values to n, the same as ‘-T n’. +timeout = 15 +# Specifies the maximum number of redirections to follow for a resource. See ‘--max-redirect=number’. +max_redirect = 50 +# no_clobber option, will not overwrite existing files. Instead, it will skip downloading files that already exist locally. +no_clobber = on +# If set to on, force continuation of preexistent partially retrieved files. See ‘-c’ before setting it. +continue = on +# quiet (default is no) +quiet = on +" > /etc/wgetrc diff --git a/libraries-sudo.sh b/libraries-sudo.sh index b322430..b3469b1 100755 --- a/libraries-sudo.sh +++ b/libraries-sudo.sh @@ -6,6 +6,7 @@ cd "`dirname $0`" || { echo "ERROR: Could not enter the ps3libraries directory." ## Set up the environment. export PS3DEV=/usr/local/ps3dev +export PSL1GHT=$PS3DEV export PATH=$PATH:$PS3DEV/bin export PATH=$PATH:$PS3DEV/ppu/bin export PATH=$PATH:$PS3DEV/spu/bin diff --git a/makefile b/makefile new file mode 100644 index 0000000..c1b30b5 --- /dev/null +++ b/makefile @@ -0,0 +1,10 @@ +IMAGE=hldtux/ps3dev + +test: + DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run -i --rm -v "`pwd`:/src" ${IMAGE} ./libraries.sh + +run: + DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run -it --rm -v "`pwd`:/src" ${IMAGE} bash + +clean: + rm -rf build \ No newline at end of file diff --git a/patches/libcurl-7.31.0.patch b/patches/libcurl-7.31.0.patch deleted file mode 100644 index 9236858..0000000 --- a/patches/libcurl-7.31.0.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/src/tool_dirhie.c b/src/tool_dirhie.c ---- a/src/tool_dirhie.c -+++ b/src/tool_dirhie.c -@@ -118,6 +118,7 @@ - if not ending with DIR_CHAR, we need to prune it */ - if(tempdir2 != NULL) { - size_t dlen = strlen(dirbuildup); -+ struct stat st; - if(dlen) - sprintf(&dirbuildup[dlen], "%s%s", DIR_CHAR, tempdir); - else { -@@ -126,7 +127,7 @@ - else - sprintf(dirbuildup, "%s%s", DIR_CHAR, tempdir); - } -- if(access(dirbuildup, F_OK) == -1) { -+ if(stat(dirbuildup, &st) == -1) { - if(-1 == mkdir(dirbuildup,(mode_t)0000750)) { - show_dir_errno(errors, dirbuildup); - result = CURLE_WRITE_ERROR; diff --git a/patches/polarssl-1.3.9-ipv6.patch b/patches/polarssl-1.3.9-ipv6.patch new file mode 100644 index 0000000..fac71a3 --- /dev/null +++ b/patches/polarssl-1.3.9-ipv6.patch @@ -0,0 +1,12 @@ +--- a/include/polarssl/config.h ++++ b/include/polarssl/config.h +@@ -112,7 +112,7 @@ + * + * Comment if your system does not support the IPv6 socket interface + */ +-#define POLARSSL_HAVE_IPV6 ++//#define POLARSSL_HAVE_IPV6 + + /** + * \def POLARSSL_PLATFORM_MEMORY + diff --git a/patches/polarssl-1.2.8-net.patch b/patches/polarssl-1.3.9-net.patch similarity index 100% rename from patches/polarssl-1.2.8-net.patch rename to patches/polarssl-1.3.9-net.patch diff --git a/patches/polarssl-1.2.8-timing.patch b/patches/polarssl-1.3.9-timing.patch similarity index 100% rename from patches/polarssl-1.2.8-timing.patch rename to patches/polarssl-1.3.9-timing.patch diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..a34d73a --- /dev/null +++ b/readme.md @@ -0,0 +1,24 @@ + +### What does this do? + +This program will automatically build and install libraries used in the creation +of homebrew software for the Sony Playstation 3 videogame system. + +### How do I use it? + +1. Set up your environment by installing the following software: + +- autoconf +- automake +- libtool +- make +- pkg-config +- ps3toolchain +- psl1ght-sdl1 +- wget + +2. Run the library script: + +```sh +./libraries.sh +``` diff --git a/scripts/001-zlib-1.2.11.sh b/scripts/001-zlib-1.2.11.sh index e999243..47cf7fe 100755 --- a/scripts/001-zlib-1.2.11.sh +++ b/scripts/001-zlib-1.2.11.sh @@ -2,7 +2,7 @@ # zlib-1.2.11.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue https://www.zlib.net/fossils/zlib-1.2.11.tar.gz +wget https://www.zlib.net/fossils/zlib-1.2.11.tar.gz ## Unpack the source code. rm -Rf zlib-1.2.11 && tar xfvz zlib-1.2.11.tar.gz && cd zlib-1.2.11 diff --git a/scripts/002-libpng-1.4.4.sh b/scripts/002-libpng-1.4.4.sh index 5d4d1f7..f55a64c 100755 --- a/scripts/002-libpng-1.4.4.sh +++ b/scripts/002-libpng-1.4.4.sh @@ -2,11 +2,11 @@ # libpng-1.4.4.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://download.sourceforge.net/libpng/libpng-1.4.4.tar.gz +wget http://phoenixnap.dl.sourceforge.net/project/libpng/libpng14/older-releases/1.4.4/libpng-1.4.4.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf libpng-1.4.4 && tar xfvz libpng-1.4.4.tar.gz && cd libpng-1.4.4 diff --git a/scripts/003-jpeg-8b.sh b/scripts/003-jpeg-8b.sh index 8bde2a9..3ff8635 100755 --- a/scripts/003-jpeg-8b.sh +++ b/scripts/003-jpeg-8b.sh @@ -2,11 +2,11 @@ # jpeg-8b.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://www.ijg.org/files/jpegsrc.v8b.tar.gz +wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf jpeg-8b && tar xfvz jpegsrc.v8b.tar.gz && cd jpeg-8b diff --git a/scripts/004-freetype-2.4.3.sh b/scripts/004-freetype-2.4.3.sh index fdd15a5..0132886 100755 --- a/scripts/004-freetype-2.4.3.sh +++ b/scripts/004-freetype-2.4.3.sh @@ -2,11 +2,11 @@ # freetype-2.4.3.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.4.3.tar.gz +wget http://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.4.3.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf freetype-2.4.3 && tar xfvz freetype-2.4.3.tar.gz && cd freetype-2.4.3 diff --git a/scripts/005-pixman-0.20.0.sh b/scripts/005-pixman-0.20.0.sh index f065ea3..fc61287 100755 --- a/scripts/005-pixman-0.20.0.sh +++ b/scripts/005-pixman-0.20.0.sh @@ -2,11 +2,11 @@ # pixman-0.20.0.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://cairographics.org/releases/pixman-0.20.0.tar.gz +wget http://cairographics.org/releases/pixman-0.20.0.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf pixman-0.20.0 && tar xfvz pixman-0.20.0.tar.gz && cd pixman-0.20.0 diff --git a/scripts/006-cairo-1.10.0.sh b/scripts/006-cairo-1.10.0.sh index 8b20b45..0f5a7d1 100755 --- a/scripts/006-cairo-1.10.0.sh +++ b/scripts/006-cairo-1.10.0.sh @@ -2,11 +2,11 @@ # cairo-1.10.0.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://cairographics.org/releases/cairo-1.10.0.tar.gz +wget http://cairographics.org/releases/cairo-1.10.0.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf cairo-1.10.0 && tar xfvz cairo-1.10.0.tar.gz && cd cairo-1.10.0 diff --git a/scripts/007-libogg-1.2.1.sh b/scripts/007-libogg-1.2.1.sh index 0eb8d41..9d72158 100755 --- a/scripts/007-libogg-1.2.1.sh +++ b/scripts/007-libogg-1.2.1.sh @@ -2,11 +2,11 @@ # libogg-1.2.1.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://downloads.xiph.org/releases/ogg/libogg-1.2.1.tar.gz +wget http://downloads.xiph.org/releases/ogg/libogg-1.2.1.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf libogg-1.2.1 && tar xfvz libogg-1.2.1.tar.gz && cd libogg-1.2.1 diff --git a/scripts/008-libvorbis-1.3.2.sh b/scripts/008-libvorbis-1.3.2.sh index d8fc06b..1cb1686 100755 --- a/scripts/008-libvorbis-1.3.2.sh +++ b/scripts/008-libvorbis-1.3.2.sh @@ -2,11 +2,11 @@ # libvorbis-1.3.2.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.gz +wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf libvorbis-1.3.2 && tar xfvz libvorbis-1.3.2.tar.gz && cd libvorbis-1.3.2 diff --git a/scripts/009-libzip-0.9.3.sh b/scripts/009-libzip-0.9.3.sh index c2ac7a0..806e247 100755 --- a/scripts/009-libzip-0.9.3.sh +++ b/scripts/009-libzip-0.9.3.sh @@ -2,11 +2,11 @@ # libzip-0.9.3.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://www.nih.at/libzip/libzip-0.9.3.tar.bz2 +wget https://libzip.org/download/libzip-0.9.3.tar.bz2 ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf libzip-0.9.3 && tar xfvj libzip-0.9.3.tar.bz2 && cd libzip-0.9.3 diff --git a/scripts/010-tiff-3.9.4.sh b/scripts/010-tiff-3.9.4.sh index 87c4f17..2781f4e 100755 --- a/scripts/010-tiff-3.9.4.sh +++ b/scripts/010-tiff-3.9.4.sh @@ -2,14 +2,11 @@ # tiff-3.9.4.sh by Jon Limle ## Download the source code. -wget --tries 5 --timeout 15 --continue \ - http://download.osgeo.org/libtiff/old/tiff-3.9.4.tar.gz \ -|| wget --continue \ - https://github.com/downloads/ps3dev/ps3libraries/tiff-3.9.4.tar.gz +wget --tries 5 --timeout 15 https://ftp.osuosl.org/pub/blfs/conglomeration/tiff/tiff-3.9.4.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf tiff-3.9.4 && tar xfvz ./tiff-3.9.4.tar.gz && cd tiff-3.9.4 diff --git a/scripts/011-libmikmod-3.1.11.sh b/scripts/011-libmikmod-3.1.11.sh index 79b3352..1f8bb83 100755 --- a/scripts/011-libmikmod-3.1.11.sh +++ b/scripts/011-libmikmod-3.1.11.sh @@ -2,7 +2,7 @@ # libmikmod-3.1.11.sh by Marcus Comstedt ## Download the source code. -wget --continue http://mikmod.raphnet.net/files/libmikmod-3.1.11.tar.gz +wget http://mikmod.raphnet.net/files/libmikmod-3.1.11.tar.gz ## Unpack the source code. rm -Rf libmikmod-3.1.11 && tar xfvz ./libmikmod-3.1.11.tar.gz && cd libmikmod-3.1.11 diff --git a/scripts/012-libxml2-2.7.8.sh b/scripts/012-libxml2-2.8.0.sh similarity index 59% rename from scripts/012-libxml2-2.7.8.sh rename to scripts/012-libxml2-2.8.0.sh index 178cd4f..ea85fe9 100755 --- a/scripts/012-libxml2-2.7.8.sh +++ b/scripts/012-libxml2-2.8.0.sh @@ -1,15 +1,18 @@ #!/bin/sh -e -# libxml2-2.7.8.sh by Naomi Peori (naomi@peori.ca) +# libxml2-2.8.0.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget --continue http://xmlsoft.org/download/libxml2-2.7.8.tar.gz +wget http://xmlsoft.org/download/libxml2-2.8.0.tar.gz -O libxml2.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. -rm -Rf libxml2-2.7.8 && tar xfvz libxml2-2.7.8.tar.gz && cd libxml2-2.7.8 +rm -Rf libxml2 && mkdir libxml2 && tar --strip-components=1 --directory=libxml2 -xvzf libxml2.tar.gz + +## Create the build directory. +cd libxml2 ## Replace config.guess and config.sub cp ../config.guess ../config.sub . diff --git a/scripts/013-sdl_psl1ght.sh b/scripts/013-sdl_psl1ght.sh index 2c0f439..cacf209 100755 --- a/scripts/013-sdl_psl1ght.sh +++ b/scripts/013-sdl_psl1ght.sh @@ -2,7 +2,8 @@ # 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 +# SDL1 +wget https://github.com/zeldin/SDL_PSL1GHT/tarball/master -O sdl_psl1ght.tar.gz ## Unpack the source code. rm -Rf sdl_psl1ght && mkdir sdl_psl1ght && tar --strip-components=1 --directory=sdl_psl1ght -xvzf sdl_psl1ght.tar.gz diff --git a/scripts/014-sdl_psl1ght_libs.sh b/scripts/014-sdl_psl1ght_libs.sh index e34f6a2..d3235ab 100755 --- a/scripts/014-sdl_psl1ght_libs.sh +++ b/scripts/014-sdl_psl1ght_libs.sh @@ -2,7 +2,8 @@ # 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 +# SDL1 +wget https://github.com/zeldin/SDL_PSL1GHT_Libs/tarball/master -O sdl_psl1ght_libs.tar.gz ## 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 diff --git a/scripts/015-polarssl.sh b/scripts/015-polarssl-1.3.9.sh similarity index 81% rename from scripts/015-polarssl.sh rename to scripts/015-polarssl-1.3.9.sh index d9daf8e..cc69b94 100755 --- a/scripts/015-polarssl.sh +++ b/scripts/015-polarssl-1.3.9.sh @@ -22,7 +22,7 @@ ########################################################################### # Change values here # -VERSION="1.2.8" +VERSION="1.3.9" # ########################################################################### # @@ -32,20 +32,22 @@ ARCH="powerpc64" PLATFORM="PS3" ## Download the source code. -wget --continue --no-check-certificate -O polarssl-${VERSION}.tgz https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/polarssl-${VERSION}.tar.gz +wget -O polarssl-${VERSION}.gpl.tgz https://src.fedoraproject.org/repo/pkgs/polarssl/polarssl-1.3.9-gpl.tgz/48af7d1f0d5de512cbd6dacf5407884c/polarssl-${VERSION}-gpl.tgz ## Unpack the source code. -rm -Rf polarssl-${VERSION} && tar xfvz polarssl-${VERSION}.tgz && cd mbedtls-polarssl-${VERSION}/library +rm -Rf polarssl-${VERSION} && tar xfvz polarssl-${VERSION}.gpl.tgz && cd polarssl-${VERSION} ## Patch the source code. echo "Patching net.c and timing.c for compatibility..." -cat ../../../patches/polarssl-1.2.8-net.patch | patch -p1 -cat ../../../patches/polarssl-1.2.8-timing.patch | patch -p1 +cat ../../patches/polarssl-1.3.9-ipv6.patch | patch -p1 +cd library +cat ../../../patches/polarssl-1.3.9-net.patch | patch -p1 +cat ../../../patches/polarssl-1.3.9-timing.patch | patch -p1 echo "Building polarssl for ${PLATFORM} ${SDKVERSION} ${ARCH}" echo "Patching Makefile..." -sed -i.bak '4d' ${CURRENTPATH}/mbedtls-polarssl-${VERSION}/library/Makefile +sed -i.bak '4d' ${CURRENTPATH}/polarssl-${VERSION}/library/Makefile echo "Please stand by..." diff --git a/scripts/016-libcurl-7.31.0.sh b/scripts/016-libcurl-7.64.1.sh similarity index 73% rename from scripts/016-libcurl-7.31.0.sh rename to scripts/016-libcurl-7.64.1.sh index 095b545..42c81c9 100755 --- a/scripts/016-libcurl-7.31.0.sh +++ b/scripts/016-libcurl-7.64.1.sh @@ -2,22 +2,20 @@ # libcurl-7.31.0 by KaKaRoTo # modified by mhaqs for 7.31.0 release and cpp compatibility +VERSION=7.64.1 ## Download the source code. -wget --continue http://curl.haxx.se/download/curl-7.31.0.tar.gz +wget http://curl.haxx.se/download/curl-${VERSION}.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. -rm -Rf curl-7.31.0 && tar xfvz curl-7.31.0.tar.gz && cd curl-7.31.0 +rm -Rf curl-${VERSION} && tar xfvz curl-${VERSION}.tar.gz && cd curl-${VERSION} ## Replace config.guess and config.sub cp ../config.guess ../config.sub . -## Patch the source code. -cat ../../patches/libcurl-7.31.0.patch | patch -p1 - ## Create the build directory. mkdir build-ppu && cd build-ppu @@ -29,6 +27,7 @@ AR="ppu-ar" CC="ppu-gcc" RANLIB="ppu-ranlib" \ LDFLAGS="-L$PSL1GHT/ppu/lib -L$PS3DEV/portlibs/ppu/lib" LIBS="-lnet -lsysutil -lsysmodule -lm " \ PKG_CONFIG_LIBDIR="$PSL1GHT/ppu/lib/pkgconfig" PKG_CONFIG_PATH="$PS3DEV/portlibs/ppu/lib/pkgconfig" \ ../configure --prefix="$PS3DEV/portlibs/ppu" --host="powerpc64-ps3-elf" \ + --disable-threaded-resolver --disable-ipv6 \ --includedir="$PS3DEV/portlibs/ppu/include" --libdir="$PS3DEV/portlibs/ppu/lib" --without-ssl --with-polarssl="$PS3DEV/portlibs/ppu/include/polarssl" --with-ca-bundle="/usr/ssl/certs/ca-bundle.crt" ## Compile and install. diff --git a/scripts/017-libmad-0.15.1b.sh b/scripts/017-libmad-0.15.1b.sh index 94ec1b6..2d1b424 100755 --- a/scripts/017-libmad-0.15.1b.sh +++ b/scripts/017-libmad-0.15.1b.sh @@ -2,11 +2,11 @@ # libmad-0.15.1b.sh by dhewg (dhewg@wiibrew.org) ## Download the source code. -wget --continue http://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz +wget https://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf libmad-0.15.1b && tar xfvz libmad-0.15.1b.tar.gz && cd libmad-0.15.1b diff --git a/scripts/018-flac-1.2.1.sh b/scripts/018-flac-1.2.1.sh index 6a8cbdd..76d5fcb 100755 --- a/scripts/018-flac-1.2.1.sh +++ b/scripts/018-flac-1.2.1.sh @@ -2,11 +2,11 @@ # flac-1.2.1.sh by dhewg (dhewg@wiibrew.org) ## Download the source code. -wget --continue http://downloads.sourceforge.net/project/flac/flac-src/flac-1.2.1-src/flac-1.2.1.tar.gz +wget http://downloads.sourceforge.net/project/flac/flac-src/flac-1.2.1-src/flac-1.2.1.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf flac-1.2.1 && tar xfvz flac-1.2.1.tar.gz && cd flac-1.2.1 diff --git a/scripts/019-faad2-2.7.sh b/scripts/019-faad2-2.7.sh index 5e83d54..09793b9 100755 --- a/scripts/019-faad2-2.7.sh +++ b/scripts/019-faad2-2.7.sh @@ -2,11 +2,11 @@ # faad2-2.7.sh by dhewg (dhewg@wiibrew.org) ## Download the source code. -wget --continue http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz +wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf faad2-2.7 && tar xfvz faad2-2.7.tar.gz && cd faad2-2.7 diff --git a/scripts/020-libtheora-1.1.1.sh b/scripts/020-libtheora-1.1.1.sh index bc2e660..6a1ebab 100755 --- a/scripts/020-libtheora-1.1.1.sh +++ b/scripts/020-libtheora-1.1.1.sh @@ -2,11 +2,11 @@ # libtheora-1.1.1.sh by dhewg (dhewg@wiibrew.org) ## Download the source code. -wget --continue http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2 +wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2 ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf libtheora-1.1.1 && tar xfvj libtheora-1.1.1.tar.bz2 && cd libtheora-1.1.1 diff --git a/scripts/021-NoRSX.sh b/scripts/021-NoRSX.sh index ea0505d..00218ff 100755 --- a/scripts/021-NoRSX.sh +++ b/scripts/021-NoRSX.sh @@ -2,7 +2,7 @@ # 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 +wget https://github.com/wargio/NoRSX/tarball/master -O NoRSX.tar.gz ## Unpack the source code. rm -Rf NoRSX && mkdir NoRSX && tar --strip-components=1 --directory=NoRSX -xvzf NoRSX.tar.gz && cd NoRSX diff --git a/scripts/022-libjson.sh b/scripts/022-libjson.sh index 13b7482..6adcea8 100755 --- a/scripts/022-libjson.sh +++ b/scripts/022-libjson.sh @@ -1,11 +1,11 @@ #!/bin/sh -e # libjson-c.sh by Mohammad Haseeb (mmhaqs@gmail.com) -wget --no-check-certificate https://codeload.github.com/json-c/json-c/tar.gz/json-c-0.11-20130402 -O jsonc.tar.gz +wget https://codeload.github.com/json-c/json-c/tar.gz/json-c-0.11-20130402 -O jsonc.tar.gz ## Download an up-to-date config.guess and config.sub -if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi -if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi +if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi +if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi ## Unpack the source code. rm -Rf jsonc && mkdir jsonc && tar --strip-components=1 --directory=jsonc -xvzf jsonc.tar.gz diff --git a/scripts/026-ps3soundlib.sh b/scripts/026-ps3soundlib.sh new file mode 100755 index 0000000..09a77bd --- /dev/null +++ b/scripts/026-ps3soundlib.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# ps3soundlib.sh by CrystalCT (crystal@unict.it) +# PS3 SOUNDLIB Credits: Hermes, HACKERCHANNEL, Xiph.Org, mpg123 project and Wargio/deroad + +## Download the source code. +wget https://github.com/wargio/ps3soundlib/tarball/master -O ps3soundlib.tar.gz + +## Unpack the source code. +rm -Rf ps3soundlib && mkdir ps3soundlib && tar --strip-components=1 --directory=ps3soundlib -xvzf ps3soundlib.tar.gz && cd ps3soundlib + +## Compile and install. +${MAKE:-make} diff --git a/scripts/027-tiny3d_libfont.sh b/scripts/027-tiny3d_libfont.sh new file mode 100755 index 0000000..1163478 --- /dev/null +++ b/scripts/027-tiny3d_libfont.sh @@ -0,0 +1,20 @@ +#!/bin/sh -e +# tini3d_libfont.sh by CrystalCT (crystal@unict.it) +# Tiny3D 2.0 + libfont Credits: +# Hermes - Author +# ElSemi - Vertex Program Compiler and other useful sample code +# HACKERCHANNEL - PSL1GHT +# Oopo - ps3libraries +# xerpi - porting the lib to v2 +# deroad/Wargio - check code +# Bucanero, CrystalCT, Miigotu, Shagkur, Wargio and Zeldin to update Tiny3D for GCC 7.2.0 + +## Download the source code. +wget https://github.com/wargio/tiny3d/tarball/master -O tiny3d.tar.gz + +## Unpack the source code. +rm -Rf tiny3d && mkdir tiny3d && tar --strip-components=1 --directory=tiny3d -xvzf tiny3d.tar.gz && cd tiny3d + +## Compile and install. +${MAKE:-make} install -C lib --no-print-directory +${MAKE:-make} install -C libfont --no-print-directory diff --git a/scripts/028-mbedTLS-2.16.6.sh b/scripts/028-mbedTLS-2.16.6.sh new file mode 100755 index 0000000..72f80fa --- /dev/null +++ b/scripts/028-mbedTLS-2.16.6.sh @@ -0,0 +1,105 @@ +#!/bin/sh -e + +# Update by Damian Parrino (2020-07-29) +# Automatic build script for mbedTLS +# for PSL1GHT, PlayStation 3 open source SDK. +# +# Originally Created by Felix Schulze on 08.04.11. +# Ported to PS3Libraries to compile with psl1ght. +# Copyright 2010 Felix Schulze. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +########################################################################### +# Change values here +# +VERSION="2.16.6" +# +########################################################################### +# +# Don't change anything here + +CURRENTPATH=`pwd` +ARCH="powerpc64" +PLATFORM="PS3" + +## Download the source code. +wget -O mbedtls-${VERSION}.gpl.tgz http://downloads.arednmesh.org/sources/mbedtls-${VERSION}-gpl.tgz + +## Unpack the source code. +rm -Rf mbedtls-${VERSION} && tar xfvz mbedtls-${VERSION}.gpl.tgz && cd mbedtls-${VERSION} + +echo "Building mbedTLS ${VERSION} for ${PLATFORM} ${ARCH}" + +echo "Patching Makefile..." +sed -i.bak '4d' ${CURRENTPATH}/mbedtls-${VERSION}/library/Makefile + +echo "Please stand by..." + +TOOLCHAIN_PATH=$PS3DEV/ppu/bin/powerpc64-ps3-elf- +export CC=${TOOLCHAIN_PATH}gcc +export LD=${TOOLCHAIN_PATH}ld +export CPP=${TOOLCHAIN_PATH}cpp +export CXX=${TOOLCHAIN_PATH}g++ +export AR=${TOOLCHAIN_PATH}ar +export AS=${TOOLCHAIN_PATH}as +export NM=${TOOLCHAIN_PATH}nm +export CXXCPP=${TOOLCHAIN_PATH}cpp +export RANLIB=${TOOLCHAIN_PATH}ranlib +export LDFLAGS="-L$PS3DEV/ppu/powerpc64-ps3-elf/lib -L$PSL1GHT/ppu/lib -L$PS3DEV/portlibs/ppu/lib -lrt -llv2" +export CFLAGS="-I${CURRENTPATH}/mbedtls-${VERSION}/include -I$PS3DEV/ppu/powerpc64-ps3-elf/include -I$PSL1GHT/ppu/include -I$PS3DEV/portlibs/ppu/include -mcpu=cell" +export MBEDTLS_NO_PLATFORM_ENTROPY=1 + +## Create config.h file +cd library +sed -i.bak '94d' ../configs/config-no-entropy.h +sed -i.bak '92d' ../configs/config-no-entropy.h +cp ../configs/config-no-entropy.h ../include/mbedtls/config.h +echo "#define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED +#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED +#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED +#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED +#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED +#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED +#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED +#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED +#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED +#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED +#define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED +#define MBEDTLS_SSL_PROTO_DTLS +#define MBEDTLS_SSL_PROTO_SSL3 +#define MBEDTLS_SSL_PROTO_TLS1 +#define MBEDTLS_SSL_PROTO_TLS1_1 +#define MBEDTLS_SSL_PROTO_TLS1_2 +#define MBEDTLS_SHA1_C +#define MBEDTLS_MD5_C +#define MBEDTLS_DHM_C +#define MBEDTLS_ECDH_C +#define MBEDTLS_ECJPAKE_C +#define MBEDTLS_SSL_CLI_C +#define MBEDTLS_SSL_SRV_C +#define MBEDTLS_SSL_TLS_C + +#include \"check_config.h\" + +#endif /* MBEDTLS_CONFIG_H */" >> ../include/mbedtls/config.h + +echo "Build library..." +## Compile and install. +${MAKE:-make} + +cp lib*.a $PS3DEV/portlibs/ppu/lib/ +cp -R ../include/mbedtls $PS3DEV/portlibs/ppu/include/ +cp ../LICENSE $PS3DEV/portlibs/ppu/include/mbedtls/LICENSE + +echo "Building done." diff --git a/scripts/029-libunrar.sh b/scripts/029-libunrar.sh new file mode 100755 index 0000000..f237112 --- /dev/null +++ b/scripts/029-libunrar.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# +# unRAR library ported to PS3 by Bucanero + +## Download the source code. +wget https://github.com/bucanero/libunrar-ps3/tarball/master -O libunrar.tar.gz + +## Unpack the source code. +rm -Rf libunrar && mkdir libunrar && tar --strip-components=1 --directory=libunrar -xvzf libunrar.tar.gz && cd libunrar + +## Compile and install. +${MAKE:-make} install diff --git a/scripts/030-libnfs.sh b/scripts/030-libnfs.sh new file mode 100755 index 0000000..f8bddc1 --- /dev/null +++ b/scripts/030-libnfs.sh @@ -0,0 +1,16 @@ +#!/bin/sh -e +# +# libnfs by sahlberg +# ported to PS3 by Bucanero + +## Download the source code. +owner=sahlberg +repo=libnfs +tag_latest=`wget -qO- "https://api.github.com/repos/${owner}/${repo}/tags" | grep -o '"name": "[^"]*' | cut -d'"' -f4 | head -n1` +wget https://github.com/${owner}/${repo}/archive/refs/tags/${tag_latest}.tar.gz -O libnfs.tar.gz + +## Unpack the source code. +rm -Rf libnfs && mkdir libnfs && tar --strip-components=1 --directory=libnfs -xvzf libnfs.tar.gz && cd libnfs + +## Compile and install. +${MAKE:-make} -f ps3_ppu/Makefile.PS3_PPU install \ No newline at end of file diff --git a/scripts/031-libsmb2.sh b/scripts/031-libsmb2.sh new file mode 100755 index 0000000..376fab6 --- /dev/null +++ b/scripts/031-libsmb2.sh @@ -0,0 +1,13 @@ +#!/bin/sh -e +# +# libsmb2 by sahlberg +# ported to PS3 by Bucanero + +## Download the source code. +wget https://github.com/sahlberg/libsmb2/tarball/master -O libsmb2.tar.gz + +## Unpack the source code. +rm -Rf libsmb2 && mkdir libsmb2 && tar --strip-components=1 --directory=libsmb2 -xvzf libsmb2.tar.gz && cd libsmb2/lib + +## Compile and install. +${MAKE:-make} -f Makefile.PS3_PPU install diff --git a/scripts/032-libun7zip.sh b/scripts/032-libun7zip.sh new file mode 100755 index 0000000..a9602fd --- /dev/null +++ b/scripts/032-libun7zip.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# +# un7Zip library by Bucanero + +## Download the source code. +wget https://github.com/bucanero/libun7zip/tarball/master -O libun7zip.tar.gz + +## Unpack the source code. +rm -Rf libun7zip && mkdir libun7zip && tar --strip-components=1 --directory=libun7zip -xvzf libun7zip.tar.gz && cd libun7zip + +## Compile and install. +${MAKE:-make} install diff --git a/scripts/033-libtinytar.sh b/scripts/033-libtinytar.sh new file mode 100755 index 0000000..5d6a9b8 --- /dev/null +++ b/scripts/033-libtinytar.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# +# tar/tar.gz/tar.bz2 library by Bucanero + +## Download the source code. +wget https://github.com/bucanero/libtinytar/tarball/master -O libtinytar.tar.gz + +## Unpack the source code. +rm -Rf libtinytar && mkdir libtinytar && tar --strip-components=1 --directory=libtinytar -xvzf libtinytar.tar.gz && cd libtinytar + +## Compile and install. +${MAKE:-make} install diff --git a/scripts/034-libya2d.sh b/scripts/034-libya2d.sh new file mode 100755 index 0000000..8ea7d5b --- /dev/null +++ b/scripts/034-libya2d.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# ya2d_ps3 by xerpi +# fork by Bucanero + +## Download the source code. +wget https://github.com/bucanero/ya2d_ps3/tarball/master -O ya2d.tar.gz + +## Unpack the source code. +rm -Rf ya2d && mkdir ya2d && tar --strip-components=1 --directory=ya2d -xvzf ya2d.tar.gz && cd ya2d/libya2d + +## Compile and install. +${MAKE:-make} install diff --git a/scripts/035-bzip2.sh b/scripts/035-bzip2.sh new file mode 100755 index 0000000..acadca1 --- /dev/null +++ b/scripts/035-bzip2.sh @@ -0,0 +1,11 @@ +#!/bin/sh -e +# bzip2 by cadcdev + +## Download the source code. +wget https://github.com/bucanero/psl1ght-libs/tarball/master -O psl1ght-libs.tar.gz + +## Unpack the source code. +rm -Rf psl1ght-libs && mkdir psl1ght-libs && tar --strip-components=1 --directory=psl1ght-libs -xvzf psl1ght-libs.tar.gz && cd psl1ght-libs + +## Compile and install. +${MAKE:-make} --directory=bzip2 install diff --git a/scripts/036-dbglogger.sh b/scripts/036-dbglogger.sh new file mode 100755 index 0000000..cd19a98 --- /dev/null +++ b/scripts/036-dbglogger.sh @@ -0,0 +1,11 @@ +#!/bin/sh -e +# dbglogger by Bucanero + +## Download the source code. +wget https://github.com/bucanero/dbglogger/tarball/master -O dbglogger.tar.gz + +## Unpack the source code. +rm -Rf dbglogger && mkdir dbglogger && tar --strip-components=1 --directory=dbglogger -xvzf dbglogger.tar.gz && cd dbglogger + +## Compile and install. +${MAKE:-make} install diff --git a/scripts/037-mini18n.sh b/scripts/037-mini18n.sh new file mode 100755 index 0000000..185d09a --- /dev/null +++ b/scripts/037-mini18n.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# mini18n by Yabause team +# ported to PS3 by Bucanero + +## Download the source code. +wget https://github.com/bucanero/mini18n/tarball/master -O mini18n.tar.gz + +## Unpack the source code. +rm -Rf mini18n && mkdir mini18n && tar --strip-components=1 --directory=mini18n -xvzf mini18n.tar.gz && cd mini18n + +## Compile and install. +${MAKE:-make} install diff --git a/scripts/038-libansilove.sh b/scripts/038-libansilove.sh new file mode 100755 index 0000000..898a5d3 --- /dev/null +++ b/scripts/038-libansilove.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e +# libansilove by Stefan Vogt, Brian Cassidy, and Frederic Cambus +# ported to PS3 by Bucanero + +## Download the source code. +wget https://github.com/bucanero/libansilove/tarball/master -O libansilove.tar.gz + +## Unpack the source code. +rm -Rf libansilove && mkdir libansilove && tar --strip-components=1 --directory=libansilove -xvzf libansilove.tar.gz && cd libansilove + +## Compile and install. +${MAKE:-make} install diff --git a/scripts/039-pthreads-emb.sh b/scripts/039-pthreads-emb.sh new file mode 100755 index 0000000..14278d6 --- /dev/null +++ b/scripts/039-pthreads-emb.sh @@ -0,0 +1,14 @@ +#!/bin/sh -e +# pthreads-emb.sh by Humberto Dias + +## Download the source code. +wget https://github.com/humbertodias/pthread-emb-ps3/tarball/master -O pthreads-emb.tar.gz + +## Unpack the source code. +rm -Rf pthreads-emb && mkdir pthreads-emb && tar --strip-components=1 --directory=pthreads-emb -xvzf pthreads-emb.tar.gz + +## Create the build directory. +cd pthreads-emb/src/platform/psl1ght + +## Compile and install. +${MAKE:-make} && ${MAKE:-make} install diff --git a/scripts/040-sdl2_psl1ght.sh b/scripts/040-sdl2_psl1ght.sh new file mode 100755 index 0000000..2118736 --- /dev/null +++ b/scripts/040-sdl2_psl1ght.sh @@ -0,0 +1,15 @@ +#!/bin/sh -e +# sdl2_psl1ght.sh by Humberto Dias + +## Download the source code. +# SDL2 +wget https://github.com/humbertodias/SDL2_PSL1GHT/tarball/master -O sdl2_psl1ght.tar.gz + +## Unpack the source code. +rm -Rf sdl2_psl1ght && mkdir sdl2_psl1ght && tar --strip-components=1 --directory=sdl2_psl1ght -xvzf sdl2_psl1ght.tar.gz + +## Create the build directory. +cd sdl2_psl1ght + +## Compile and install. +./script.sh && ${MAKE:-make} && ${MAKE:-make} install From 8300b6ae2b43b0e220505ba17b47f7f713dcbed6 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sat, 2 Mar 2024 13:25:05 -0300 Subject: [PATCH 02/18] add github action for testing --- .github/workflows/test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c0a8c72 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,14 @@ +name: Run Tests + +on: [push, pull_request, workflow_dispatch] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Run Tests + run: make test \ No newline at end of file From 14e68f986dd340e7e8832ca995fc5bbde6e175cc Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sun, 3 Mar 2024 09:43:54 -0300 Subject: [PATCH 03/18] readme markdown --- readme.txt | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 readme.txt diff --git a/readme.txt b/readme.txt deleted file mode 100644 index 48f679e..0000000 --- a/readme.txt +++ /dev/null @@ -1,19 +0,0 @@ - - ==================== - What does this do? - ==================== - - This program will automatically build and install libraries used in the creation - of homebrew software for the Sony Playstation 3 videogame system. - - ================== - How do I use it? - ================== - - 1) Set up your environment by installing the following software: - - autoconf, automake, libtool, make, pkg-config, ps3toolchain, psl1ght, wget - - 2) Run the library script: - - ./libraries.sh From b02d5ca82f8497ca02379ea6e8122d8e5688322f Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sun, 3 Mar 2024 09:45:44 -0300 Subject: [PATCH 04/18] badge ci/cd --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index a34d73a..777101b 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,4 @@ +[![Run Tests](https://github.com/humbertodias/ps3libraries/actions/workflows/test.yml/badge.svg)](https://github.com/humbertodias/ps3libraries/actions/workflows/test.yml) ### What does this do? From 470a06e0a2cfa831d86eb3f91918c521ee317621 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sun, 3 Mar 2024 09:51:25 -0300 Subject: [PATCH 05/18] define workdir --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index c1b30b5..ab3318f 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,10 @@ IMAGE=hldtux/ps3dev test: - DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run -i --rm -v "`pwd`:/src" ${IMAGE} ./libraries.sh + DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run -i --rm -v "`pwd`:/src" -w /src ${IMAGE} ./libraries.sh run: - DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run -it --rm -v "`pwd`:/src" ${IMAGE} bash + DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run -it --rm -v "`pwd`:/src" -w /src ${IMAGE} bash clean: rm -rf build \ No newline at end of file From f04f5b048c4f1ac55efa20d1040026631aaa7c60 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sun, 3 Mar 2024 10:11:00 -0300 Subject: [PATCH 06/18] add sdl2_psl1ght_libs --- scripts/041-sdl2_psl1ght_libs.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/041-sdl2_psl1ght_libs.sh diff --git a/scripts/041-sdl2_psl1ght_libs.sh b/scripts/041-sdl2_psl1ght_libs.sh new file mode 100755 index 0000000..6f23253 --- /dev/null +++ b/scripts/041-sdl2_psl1ght_libs.sh @@ -0,0 +1,15 @@ +#!/bin/sh -e +# sdl2_psl1ght_libs.sh by Humberto Dias + +## Download the source code. +# SDL2 +wget https://github.com/humbertodias/SDL2_PSL1GHT_Libs/tarball/master -O sdl2_psl1ght_libs.tar.gz + +## Unpack the source code. +rm -Rf sdl2_psl1ght_libs && mkdir sdl2_psl1ght_libs && tar --strip-components=1 --directory=sdl2_psl1ght_libs -xvzf sdl2_psl1ght_libs.tar.gz + +## Create the build directory. +cd sdl2_psl1ght_libs + +## Compile and install. +./make_SDL_Libs.sh From e9d3cc0491617ddbe0cb0b2a8f96f7c0b8aed314 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sun, 3 Mar 2024 11:32:26 -0300 Subject: [PATCH 07/18] Update 040-sdl2_psl1ght.sh --- scripts/040-sdl2_psl1ght.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/040-sdl2_psl1ght.sh b/scripts/040-sdl2_psl1ght.sh index 2118736..004ad43 100755 --- a/scripts/040-sdl2_psl1ght.sh +++ b/scripts/040-sdl2_psl1ght.sh @@ -13,3 +13,6 @@ cd sdl2_psl1ght ## Compile and install. ./script.sh && ${MAKE:-make} && ${MAKE:-make} install + +# Copy sdl2-config to PATH +cp sdl2-config $PS3DEV/portlibs/ppu/bin From 08dd324363f6907d7001021fa5fd8e8ed19f37cb Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sun, 3 Mar 2024 15:27:26 -0300 Subject: [PATCH 08/18] libxml2-2.9.12.sh --- scripts/{012-libxml2-2.8.0.sh => 012-libxml2-2.9.12.sh} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename scripts/{012-libxml2-2.8.0.sh => 012-libxml2-2.9.12.sh} (89%) diff --git a/scripts/012-libxml2-2.8.0.sh b/scripts/012-libxml2-2.9.12.sh similarity index 89% rename from scripts/012-libxml2-2.8.0.sh rename to scripts/012-libxml2-2.9.12.sh index ea85fe9..ffc90c2 100755 --- a/scripts/012-libxml2-2.8.0.sh +++ b/scripts/012-libxml2-2.9.12.sh @@ -1,8 +1,8 @@ #!/bin/sh -e -# libxml2-2.8.0.sh by Naomi Peori (naomi@peori.ca) +# libxml2-2.9.12.sh by Naomi Peori (naomi@peori.ca) ## Download the source code. -wget http://xmlsoft.org/download/libxml2-2.8.0.tar.gz -O libxml2.tar.gz +wget http://xmlsoft.org/download/libxml2-2.9.12.tar.gz -O libxml2.tar.gz ## Download an up-to-date config.guess and config.sub if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi From aa5788ba86e6efa130136014e357594bffc3ea62 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sun, 3 Mar 2024 15:32:05 -0300 Subject: [PATCH 09/18] ignore .DS_Store --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 378eac2..751831e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build +.DS_Store \ No newline at end of file From 58231308646700f967e14f8ce0d594b9354d0a6d Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Mon, 4 Mar 2024 00:03:58 -0300 Subject: [PATCH 10/18] add yaml-cpp-0.8.0 --- scripts/042-yaml-cpp-0.8.0.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/042-yaml-cpp-0.8.0.sh diff --git a/scripts/042-yaml-cpp-0.8.0.sh b/scripts/042-yaml-cpp-0.8.0.sh new file mode 100755 index 0000000..1c38b53 --- /dev/null +++ b/scripts/042-yaml-cpp-0.8.0.sh @@ -0,0 +1,20 @@ +#!/bin/sh -e +# yaml-cpp-0.8.0.sh by Humberto Dias + +## Download the source code. +wget https://github.com/jbeder/yaml-cpp/archive/refs/tags/0.8.0.tar.gz -O yaml-cpp.tar.gz + +## Unpack the source code. +rm -Rf yaml-cpp && mkdir yaml-cpp && tar --strip-components=1 --directory=yaml-cpp -xvzf yaml-cpp.tar.gz + +## Create the build directory. +cd yaml-cpp + +## Compile and install. +mkdir -p build && cd build +cmake -Wno-dev \ + -DCMAKE_INSTALL_PREFIX=${PS3DEV}/portlibs/ppu \ + -DCMAKE_C_COMPILER=ppu-gcc \ + -DCMAKE_CXX_COMPILER=ppu-g++ \ + -DBUILD_SHARED_LIBS=OFF -DYAML_ENABLE_PIC=OFF -DYAML_CPP_INSTALL=ON .. || { exit 1; } +make && make install || { exit 1; } \ No newline at end of file From dd2355cf2d6d0c8d3c24af6a58adf68426d57337 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Mon, 4 Mar 2024 01:08:05 -0300 Subject: [PATCH 11/18] exit 1 when fail pthreads-emb --- scripts/039-pthreads-emb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/039-pthreads-emb.sh b/scripts/039-pthreads-emb.sh index 14278d6..24e63d2 100755 --- a/scripts/039-pthreads-emb.sh +++ b/scripts/039-pthreads-emb.sh @@ -11,4 +11,4 @@ rm -Rf pthreads-emb && mkdir pthreads-emb && tar --strip-components=1 --director cd pthreads-emb/src/platform/psl1ght ## Compile and install. -${MAKE:-make} && ${MAKE:-make} install +${MAKE:-make} && ${MAKE:-make} install || { exit 1; } From 147275d74cd32ec6e2ff25cfbd891d7ae8e2be88 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Mon, 4 Mar 2024 01:54:16 -0300 Subject: [PATCH 12/18] rename singular --- scripts/{039-pthreads-emb.sh => 039-pthread-emb.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scripts/{039-pthreads-emb.sh => 039-pthread-emb.sh} (100%) diff --git a/scripts/039-pthreads-emb.sh b/scripts/039-pthread-emb.sh similarity index 100% rename from scripts/039-pthreads-emb.sh rename to scripts/039-pthread-emb.sh From 7e67cb04d129b9cab5279191b619fbd5e86b1e68 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Mon, 11 Mar 2024 01:05:20 -0300 Subject: [PATCH 13/18] libxml2 --without-lzma --- scripts/012-libxml2-2.9.12.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/012-libxml2-2.9.12.sh b/scripts/012-libxml2-2.9.12.sh index ffc90c2..d8f24b5 100755 --- a/scripts/012-libxml2-2.9.12.sh +++ b/scripts/012-libxml2-2.9.12.sh @@ -24,7 +24,7 @@ mkdir build-ppu && cd build-ppu CFLAGS="-I$PSL1GHT/ppu/include -I$PS3DEV/portlibs/ppu/include" \ LDFLAGS="-L$PSL1GHT/ppu/lib -L$PS3DEV/portlibs/ppu/lib -lrt -llv2" \ PKG_CONFIG_PATH="$PS3DEV/portlibs/ppu/lib/pkgconfig" \ -../configure --prefix="$PS3DEV/portlibs/ppu" --host="powerpc64-ps3-elf" --enable-static --disable-shared --without-ftp --without-http --without-python +../configure --prefix="$PS3DEV/portlibs/ppu" --host="powerpc64-ps3-elf" --enable-static --disable-shared --without-ftp --without-http --without-python --without-lzma ## Compile and install. ${MAKE:-make} -j4 && ${MAKE:-make} install From c930464725e4a7bcfef05dbe06389f4a3afc5f2d Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Tue, 12 Mar 2024 02:31:06 -0300 Subject: [PATCH 14/18] psl1ght-2.30.1 --- scripts/040-sdl2_psl1ght.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/040-sdl2_psl1ght.sh b/scripts/040-sdl2_psl1ght.sh index 004ad43..1bb7b78 100755 --- a/scripts/040-sdl2_psl1ght.sh +++ b/scripts/040-sdl2_psl1ght.sh @@ -3,7 +3,9 @@ ## Download the source code. # SDL2 -wget https://github.com/humbertodias/SDL2_PSL1GHT/tarball/master -O sdl2_psl1ght.tar.gz +#wget https://github.com/humbertodias/SDL2_PSL1GHT/tarball/master -O sdl2_psl1ght.tar.gz +#wget https://github.com/humbertodias/psl1ght-2.0.3/tarball/psl1ght-2.0.3 -O sdl2_psl1ght.tar.gz +wget https://github.com/humbertodias/sdl2_psl1ght_/tarball/psl1ght-2.30.1 -O sdl2_psl1ght.tar.gz ## Unpack the source code. rm -Rf sdl2_psl1ght && mkdir sdl2_psl1ght && tar --strip-components=1 --directory=sdl2_psl1ght -xvzf sdl2_psl1ght.tar.gz From cc675f86232ae65605e97381afa8a6ca3095ed46 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Thu, 14 Mar 2024 15:17:18 -0300 Subject: [PATCH 15/18] Update check-wget.sh --- depends/check-wget.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depends/check-wget.sh b/depends/check-wget.sh index 6ef701a..231e3a0 100755 --- a/depends/check-wget.sh +++ b/depends/check-wget.sh @@ -23,4 +23,4 @@ no_clobber = on continue = on # quiet (default is no) quiet = on -" > /etc/wgetrc +" > ~/.wgetrc From 9b6253484ea76cdd8f8cb88f0c986152921e93be Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Thu, 14 Mar 2024 19:32:32 -0300 Subject: [PATCH 16/18] Update 041-sdl2_psl1ght_libs.sh --- scripts/041-sdl2_psl1ght_libs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/041-sdl2_psl1ght_libs.sh b/scripts/041-sdl2_psl1ght_libs.sh index 6f23253..b57c191 100755 --- a/scripts/041-sdl2_psl1ght_libs.sh +++ b/scripts/041-sdl2_psl1ght_libs.sh @@ -3,7 +3,7 @@ ## Download the source code. # SDL2 -wget https://github.com/humbertodias/SDL2_PSL1GHT_Libs/tarball/master -O sdl2_psl1ght_libs.tar.gz +wget https://github.com/humbertodias/SDL2_PSL1GHT_Libs/tarball/psl1ght-2.0.3 -O sdl2_psl1ght_libs.tar.gz ## Unpack the source code. rm -Rf sdl2_psl1ght_libs && mkdir sdl2_psl1ght_libs && tar --strip-components=1 --directory=sdl2_psl1ght_libs -xvzf sdl2_psl1ght_libs.tar.gz From f924107630ed7617487807cc918f979d134041de Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Thu, 14 Mar 2024 19:35:03 -0300 Subject: [PATCH 17/18] Update 041-sdl2_psl1ght_libs.sh --- scripts/041-sdl2_psl1ght_libs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/041-sdl2_psl1ght_libs.sh b/scripts/041-sdl2_psl1ght_libs.sh index b57c191..34f5b49 100755 --- a/scripts/041-sdl2_psl1ght_libs.sh +++ b/scripts/041-sdl2_psl1ght_libs.sh @@ -3,7 +3,7 @@ ## Download the source code. # SDL2 -wget https://github.com/humbertodias/SDL2_PSL1GHT_Libs/tarball/psl1ght-2.0.3 -O sdl2_psl1ght_libs.tar.gz +wget https://github.com/humbertodias/SDL2_PSL1GHT_Libs/tarball/psl1ght-2.30.1 -O sdl2_psl1ght_libs.tar.gz ## Unpack the source code. rm -Rf sdl2_psl1ght_libs && mkdir sdl2_psl1ght_libs && tar --strip-components=1 --directory=sdl2_psl1ght_libs -xvzf sdl2_psl1ght_libs.tar.gz From 5871f58034fe16438741812302c9d2cfa1be8ca2 Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Sat, 6 Apr 2024 15:29:40 -0300 Subject: [PATCH 18/18] check-cmake --- depends/check-cmake.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 depends/check-cmake.sh diff --git a/depends/check-cmake.sh b/depends/check-cmake.sh new file mode 100755 index 0000000..5c6a7c7 --- /dev/null +++ b/depends/check-cmake.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +## Check for cmake. +which cmake 1> /dev/null || { echo "ERROR: Install cmake before continuing."; exit 1; }