Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
46e867a
added boost
take-cheeze May 6, 2011
59103e8
comment in the extracting code
take-cheeze May 6, 2011
0f1e041
added cmake
take-cheeze May 6, 2011
2da4044
added openal
take-cheeze May 6, 2011
dbe16a0
Merge branch 'master' of https://github.com/pspdev/psplibraries
take-cheeze May 22, 2011
c213be4
use OUTPUT_STRIP_TRAILING_WHITESPACE
take-cheeze Jun 13, 2011
7ad13df
make config.sub executable
take-cheeze Oct 29, 2011
06c2902
remove option v from tar command
take-cheeze Oct 29, 2011
1c1f058
unset CC and CXX
take-cheeze Oct 30, 2011
02c46ac
disable boost python
take-cheeze Oct 30, 2011
7daf32b
unset it in libraries.sh instead
take-cheeze Oct 30, 2011
2839504
add include directory
take-cheeze Oct 30, 2011
6c2b5ce
include path to user-config.jam
take-cheeze Oct 30, 2011
b5db7a5
without boost system
take-cheeze Oct 30, 2011
ec6c29e
fix jam script
take-cheeze Oct 30, 2011
090a978
fix jam script
take-cheeze Oct 30, 2011
9227b1f
fix jam script
take-cheeze Oct 30, 2011
3edcd77
remove without
take-cheeze Oct 30, 2011
2c33460
use ccache and enable c++0x
take-cheeze Oct 30, 2011
9b4842c
use compileflags instead
take-cheeze Oct 30, 2011
ac6459f
pass to bjam
take-cheeze Oct 30, 2011
d296371
without additional path
take-cheeze Oct 30, 2011
1e5e295
downgrade boost
take-cheeze Nov 2, 2011
4d8c886
add some without
take-cheeze Nov 2, 2011
8253eba
remove some boost library
take-cheeze Nov 2, 2011
7b0361e
more excluding
take-cheeze Nov 2, 2011
566256c
Merge remote-tracking branch 'main_repo/master'
take-cheeze Feb 29, 2012
3ca634c
remove v option
take-cheeze Mar 2, 2012
762e1b0
use bash explicitly
take-cheeze Mar 2, 2012
a239e3d
Merge remote-tracking branch 'write_repo/master'
take-cheeze Mar 2, 2012
bb8344d
change mode
take-cheeze Mar 2, 2012
4d31974
add check-cmake.sh
take-cheeze Mar 3, 2012
bbd0d40
recover deleted files
take-cheeze Mar 3, 2012
b374a0d
disable esd
take-cheeze Mar 3, 2012
1a2703a
add more libraries path
take-cheeze Mar 3, 2012
c8c6d89
update squirrel version
take-cheeze Mar 3, 2012
ef749e9
cmake things
take-cheeze Mar 3, 2012
fd2b6d2
squirrel check
take-cheeze Mar 3, 2012
5bf0f06
mark script as executable
take-cheeze Mar 3, 2012
2288506
refactor openal script
take-cheeze Mar 3, 2012
d5cd2b6
improve dependency script
take-cheeze Mar 3, 2012
296d9c4
add angelscript and unzip extractor
take-cheeze Mar 4, 2012
dd1013e
mark as executable
take-cheeze Mar 4, 2012
484f53b
remove unused option
take-cheeze Mar 4, 2012
331c136
boost refactor
take-cheeze Mar 4, 2012
74dd54b
use run_make
take-cheeze Mar 4, 2012
af87afc
update file version
take-cheeze Mar 4, 2012
f02ecd4
remove ruby
take-cheeze Mar 4, 2012
82b6ff6
cleaning
take-cheeze Mar 4, 2012
546b749
remove boost
take-cheeze Mar 4, 2012
d9bef7d
fix filename
take-cheeze Mar 4, 2012
5f376d2
fix quote
take-cheeze Mar 4, 2012
a4d859a
remove unrequired cmake install
take-cheeze Mar 4, 2012
a51f002
mkdir for toolchain script
take-cheeze Mar 4, 2012
804d4f3
remove dependency
take-cheeze Mar 4, 2012
fa53c2e
fix file name typo
take-cheeze Mar 5, 2012
722cd86
add pthreads-emb dependency
take-cheeze Mar 5, 2012
19def52
fix angelscript install
take-cheeze Mar 5, 2012
554f126
fix pspgl
take-cheeze Mar 5, 2012
ed408d3
use tmp file instead of sed
take-cheeze Mar 5, 2012
32af41b
merge
take-cheeze Mar 7, 2012
8e79306
use test_deps_install instead of test_deps
take-cheeze Apr 9, 2012
832162f
add dependencies for some libraries
take-cheeze Apr 9, 2012
6968fa3
check libtool
take-cheeze Apr 13, 2012
2688f34
add check-opentri.sh
take-cheeze Apr 13, 2012
284ef39
update library version
take-cheeze Apr 13, 2012
8383d0d
fix smpeg-psp compile error and add check-smpeg-psp.sh
take-cheeze Apr 13, 2012
60f22c5
fix for pixman
take-cheeze Apr 13, 2012
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
10 changes: 9 additions & 1 deletion common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ function download_and_extract {
test_deps tar
tar xjf $name
;;
"tbz2")
test_deps tar
tar xjf $name
;;
"zip")
test_deps unzip
unzip $name
;;
*)
echo "Archive extension $ext unsupported."
return 1
Expand Down Expand Up @@ -89,7 +97,7 @@ function get_pspports {

# Usage: run_configure OPT1 OPT2 ...
function run_configure {
LDFLAGS="$LDFLAGS -L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
LDFLAGS="$LDFLAGS -L$(psp-config --pspsdk-path)/lib -L$(psp-config --psp-prefix)/lib -lc -lpspuser" \
LIBS="$LIBS -lc -lpspuser" \
./configure --host=psp --prefix=$(psp-config --psp-prefix) $* || { return 1; }
return 0
Expand Down
5 changes: 5 additions & 0 deletions depends/check-angelscript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

PREFIX=$(psp-config --psp-prefix)

ls $PREFIX/lib/libAngelscript.a $PREFIX/include/angelscript.h
7 changes: 7 additions & 0 deletions depends/check-cmake-toolchain-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
# check-cmake-toolchain-script.sh by Takeshi Watanabe (takechi101010@gmail.com)

## Check for cmake toolchain script.
ls \
$(psp-config --pspdev-path)/bin/psp-cmake \
$(psp-config --psp-prefix)/share/cmake-2.8/Modules/Platform/PSP.cmake
5 changes: 5 additions & 0 deletions depends/check-cmake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
# check-cmake.sh by Takeshi Watanabe (takechi101010@gmail.com)

## Check for cmake.
cmake --version
5 changes: 5 additions & 0 deletions depends/check-openal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

PREFIX=$(psp-config --psp-prefix)

ls $PREFIX/lib/libopenal.a $PREFIX/include/AL/al.h $PREFIX/include/AL/alc.h
5 changes: 5 additions & 0 deletions depends/check-opentri.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

PREFIX=$(psp-config --psp-prefix)

ls $PREFIX/lib/libtri.a $PREFIX/include/openTri $PREFIX/share/doc/openTri
2 changes: 2 additions & 0 deletions depends/check-smpeg-psp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
ls $(psp-config --psp-prefix)/lib/libsmpeg.a $(psp-config --psp-prefix)/include/smpeg.h
5 changes: 5 additions & 0 deletions depends/check-squirrel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

PREFIX=$(psp-config --psp-prefix)

ls $PREFIX/lib/libsquirrel.a $PREFIX/lib/libsqstdlib.a $PREFIX/include/squirrel.h
5 changes: 5 additions & 0 deletions depends/check-unzip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
# check-unzip.sh by take_cheeze (takechi101010@gmail.com)

## Check for tar.
unzip -v
9 changes: 7 additions & 2 deletions libraries.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/bash

## remove $CC and $CXX for configure
unset CC
unset CXX

## Enter the psplibraries directory.
cd "`dirname $0`" || { echo "ERROR: Could not enter the psplibraries directory."; exit 1; }

source common.sh
basepath=$PWD
mkdir -p build || { echo "ERROR: Could not create the build directory."; exit 1; }
test_deps psptoolchain
test_deps psptoolchain libtool

# If specific steps were requested, run the requested build scripts.
if [ $1 ]; then
Expand All @@ -24,7 +29,7 @@
if [ $? -ne 0 ] || [ $buildall -eq 0 ]; then
if [ -x $f ]; then
cd $basepath/build
sh -c "source ../common.sh; \
bash -c "source ../common.sh; \
set -e; \
basepath=$basepath; \
source $f" || { echo "Failed installing $step!"; faillist="$faillist $step"; }
Expand Down
40 changes: 40 additions & 0 deletions patches/PSP.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
SET(CMAKE_SYSTEM_NAME Generic)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_CROSSCOMPILING TRUE)

# set compiler
INCLUDE(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(psp-gcc GNU)
CMAKE_FORCE_CXX_COMPILER(psp-g++ GNU)

SET(BUILD_SHARED_LIBS FALSE)
SET(CMAKE_EXECUTABLE_SUFFIX ".elf")

# set find root path
SET(CMAKE_FIND_ROOT_PATH "")
FOREACH(i "--pspsdk-path" "--psp-prefix" "--pspdev-path")
EXECUTE_PROCESS(
COMMAND "psp-config" ${i}
OUTPUT_VARIABLE output
OUTPUT_STRIP_TRAILING_WHITESPACE)

LIST(APPEND CMAKE_FIND_ROOT_PATH "${output}")
INCLUDE_DIRECTORIES(SYSTEM "${output}/include")
LINK_DIRECTORIES("${output}/lib")
ENDFOREACH()

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

# set install path
EXECUTE_PROCESS(
COMMAND "psp-config" "--psp-prefix"
OUTPUT_VARIABLE CMAKE_INSTALL_PREFIX
OUTPUT_STRIP_TRAILING_WHITESPACE)

# reduce link error
ADD_DEFINITIONS("-G0")

# linker flags
LINK_LIBRARIES("-lpthread-psp -lc -lpspuser -lpspsdk -flto")
9 changes: 9 additions & 0 deletions patches/psp-cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

MODULE_PATH=$(psp-config --psp-prefix)/share/cmake-2.8/Modules


cmake \
-D CMAKE_MODULE_PATH=$MODULE_PATH \
-D CMAKE_TOOLCHAIN_FILE=$MODULE_PATH/Platform/PSP.cmake \
$@
110 changes: 110 additions & 0 deletions patches/squirrel-3.0.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
diff --git a/sq/Makefile b/sq/Makefile
index 911a16b..81c2561 100755
--- a/sq/Makefile
+++ b/sq/Makefile
@@ -1,21 +1,21 @@
-SQUIRREL= ..
-
-
-OUT= $(SQUIRREL)/bin/sq
-INCZ= -I$(SQUIRREL)/include -I. -I$(SQUIRREL)/sqlibs
-LIBZ= -L$(SQUIRREL)/lib
-LIB= -lsquirrel -lsqstdlib
-
-OBJS= sq.o
-
-SRCS= sq.c
-
-
-sq32:
- g++ -O2 -s -fno-exceptions -fno-rtti -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
-
-sqprof:
- g++ -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
-
-sq64:
- g++ -O2 -s -m64 -fno-exceptions -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+SQUIRREL= ..
+
+
+OUT= $(SQUIRREL)/bin/sq
+INCZ= -I$(SQUIRREL)/include -I. -I$(SQUIRREL)/sqlibs
+LIBZ= -L$(SQUIRREL)/lib -L$(shell psp-config --psp-prefix)/lib -L$(shell psp-config --pspsdk-path)/lib
+LIB= -lsquirrel -lsqstdlib -lc -lpspuser
+
+OBJS= sq.o
+
+SRCS= sq.c
+
+
+sq32:
+ $(CXX) -O2 -s -fno-exceptions -fno-rtti -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+
+sqprof:
+ $(CXX) -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+
+sq64:
+ $(CXX) -O2 -s -m64 -fno-exceptions -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
diff --git a/sqstdlib/Makefile b/sqstdlib/Makefile
index 10f6384..39b075e 100755
--- a/sqstdlib/Makefile
+++ b/sqstdlib/Makefile
@@ -2,7 +2,7 @@ SQUIRREL= ..


OUT= $(SQUIRREL)/lib/libsqstdlib.a
-INCZ= -I$(SQUIRREL)/include -I. -Iinclude
+INCZ= -I$(SQUIRREL)/include -I. -Iinclude -L$(shell psp-config --psp-prefix)/lib -L$(shell psp-config --pspsdk-path)/lib -lc -lpspuser

OBJS= \
sqstdblob.o \
@@ -26,16 +26,16 @@ SRCS= \


sq32:
- gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
- ar rc $(OUT) *.o
+ ${CC} -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
+ ${AR} rc $(OUT) *.o
rm *.o

sqprof:
- gcc -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
- ar rc $(OUT) *.o
+ ${CC} -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
+ ${AR} rc $(OUT) *.o
rm *.o

sq64:
- gcc -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
- ar rc $(OUT) *.o
+ ${CC} -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
+ ${AR} rc $(OUT) *.o
rm *.o
diff --git a/squirrel/Makefile b/squirrel/Makefile
index d5de81a..8575794 100755
--- a/squirrel/Makefile
+++ b/squirrel/Makefile
@@ -37,16 +37,16 @@ SRCS= \


sq32:
- gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
- ar rc $(OUT) *.o
+ ${CC} -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+ ${AR} rc $(OUT) *.o
rm *.o

sqprof:
- gcc -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
- ar rc $(OUT) *.o
+ ${CC} -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+ ${AR} rc $(OUT) *.o
rm *.o

sq64:
- gcc -O2 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
- ar rc $(OUT) *.o
+ ${CC} -O2 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+ ${AR} rc $(OUT) *.o
rm *.o
2 changes: 1 addition & 1 deletion readme-ubuntu.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Install psptoolchain
## Install the required packages.
sudo apt-get install libtool tcl doxygen ruby
sudo apt-get install libtool tcl doxygen cmake unzip

## Build and install the libraries.
sudo ./libraries-sudo.sh
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

1) Set up your environment by installing the following software:

autoconf, automake, libtool, make, psptoolchain, subversion, wget, doxygen, ruby
autoconf, automake, libtool, make, psptoolchain, subversion, wget, doxygen, unzip

2) Run the library script:

Expand Down
2 changes: 1 addition & 1 deletion scripts/SDL_gfx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_deps SDL
test_deps_install SDL
download_and_extract http://sourceforge.net/projects/sdlgfx/files/SDL_gfx-2.0.23.tar.gz SDL_gfx-2.0.23
apply_patch SDL_gfx-2.0.23-PSP
AR=psp-ar run_autogen_build --with-sdl-prefix=$(psp-config --psp-prefix) --disable-mmx --disable-shared
Expand Down
3 changes: 2 additions & 1 deletion scripts/SDL_image.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_deps SDL
test_deps_install SDL libpng jpeg

download_and_extract http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.10.tar.gz SDL_image-1.2.10
apply_patch SDL_image-1.2.10-PSP
LDFLAGS="-lpspirkeyb" run_autogen_build --with-sdl-prefix=$(psp-config --psp-prefix)
Expand Down
2 changes: 1 addition & 1 deletion scripts/SDL_mixer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_deps SDL libmikmod
test_deps_install SDL libmikmod
download_and_extract http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11.tar.gz SDL_mixer-1.2.11
apply_patch SDL_mixer-1.2.11-PSP
run_autogen_build --with-sdl-prefix=$(psp-config --psp-prefix) --enable-music-mod --disable-music-mp3
Expand Down
2 changes: 1 addition & 1 deletion scripts/SDL_ttf.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_deps SDL freetype
test_deps_install SDL freetype
download_and_extract http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.10.tar.gz SDL_ttf-2.0.10
apply_patch SDL_ttf-2.0.10-PSP
run_autogen_build --with-sdl-prefix=$(psp-config --psp-prefix) --with-freetype=$(psp-config --psp-prefix) --without-x
Expand Down
15 changes: 15 additions & 0 deletions scripts/angelscript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## test dependency
test_deps_install cmake-toolchain-script

ANGELSCRIPT_VERSION=2.23.0

download_and_extract http://www.angelcode.com/angelscript/sdk/files/angelscript_$ANGELSCRIPT_VERSION.zip sdk
cd angelscript/projects/cmake || { return 1; }

## Run cmake
psp-cmake -D CMAKE_INSTALL_PREFIX=$(psp-config --psp-prefix) . || { exit 1; }

## Compile and Install
make -j 4 || { exit 1; }
cp -v ../../include/*.h $(psp-config --psp-prefix)/include
cp -v ../../lib/lib*.a $(psp-config --psp-prefix)/lib
10 changes: 10 additions & 0 deletions scripts/cmake-toolchain-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# cmake-toolchain-script.sh by take_cheeze (takechi101010@gmail.com)

PSP_CMAKE_PATH=$(psp-config --pspdev-path)/bin/psp-cmake
TOOLCHAIN_SCRIPT_PATH=$(psp-config --psp-prefix)/share/cmake-2.8/Modules/Platform

## copy toolchain script and psp-cmake
mkdir -p $TOOLCHAIN_SCRIPT_PATH
cp ../patches/PSP.cmake $TOOLCHAIN_SCRIPT_PATH || { exit 1; }
cp ../patches/psp-cmake $PSP_CMAKE_PATH || { exit 1; }
4 changes: 3 additions & 1 deletion scripts/expat.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
download_and_extract "http://jaist.dl.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz" expat-2.0.1
EXPAT_VERSION=2.1.0

download_and_extract http://jaist.dl.sourceforge.net/project/expat/expat/$EXPAT_VERSION/expat-$EXPAT_VERSION.tar.gz expat-$EXPAT_VERSION
## Patch
cp ../../patches/config.sub ./config.sub
cp ../../patches/config.sub ./conftools/config.sub
Expand Down
2 changes: 1 addition & 1 deletion scripts/libmikmod.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
download_and_extract http://mikmod.raphnet.net/files/libmikmod-3.2.0-beta2.tar.gz libmikmod-3.2.0-beta2
apply_patch libmikmod-3.2.0-beta2-PSP
autoconf
run_configure
run_configure --disable-esd
run_make -j 4

3 changes: 3 additions & 0 deletions scripts/libpng.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
test_deps_install zlib

get_pspports libpng
run_make -j 4

ln -s $(psp-config --psp-prefix)/lib/libpng.a $(psp-config --psp-prefix)/lib/libpng12.a
4 changes: 3 additions & 1 deletion scripts/libyaml.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
download_and_extract http://pyyaml.org/download/libyaml/yaml-0.1.3.tar.gz yaml-0.1.3
LIBYAML_VERSION=0.1.4

download_and_extract http://pyyaml.org/download/libyaml/yaml-$LIBYAML_VERSION.tar.gz yaml-$LIBYAML_VERSION
cp ../../patches/config.sub ./config/config.sub
run_configure
run_make -j 4
Expand Down
17 changes: 17 additions & 0 deletions scripts/openal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
# openal-soft.sh by take_cheeze (takechi101010@gmail.com)

test_deps_install cmake-toolchain-script pthreads-emb

OPENAL_VERSION=1.14

download_and_extract http://kcat.strangesoft.net/openal-releases/openal-soft-$OPENAL_VERSION.tar.bz2 openal-soft-$OPENAL_VERSION

## replace memory.h with string.h
sed -i -e "s/memory\.h/string.h/" Alc/*.c Alc/backends/*.c || { exit 1; }

## Run cmake
psp-cmake -D CMAKE_INSTALL_PREFIX=$(psp-config --psp-prefix) . || { exit 1; }

## Compile and Install
run_make -j 4
2 changes: 2 additions & 0 deletions scripts/opentri.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
test_deps_install zlib freetype

wget --continue --no-check-certificate https://github.com/SamRH/openTRI/tarball/master -O openTRI.tar.gz
rm -Rf openTRI && mkdir openTRI && tar --strip-components=1 --directory=openTRI -xvzf openTRI.tar.gz
cd openTRI
Expand Down
6 changes: 4 additions & 2 deletions scripts/pixman.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
download_and_extract http://cairographics.org/releases/pixman-0.22.0.tar.gz pixman-0.22.0
PIXMAN_VERSION=0.24.4

download_and_extract http://cairographics.org/releases/pixman-$PIXMAN_VERSION.tar.gz pixman-$PIXMAN_VERSION
cp ../../patches/config.sub ./config.sub
run_configure
LIBS="-lz" run_configure
run_make -j 4

Loading