mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
118 lines
3.9 KiB
Bash
118 lines
3.9 KiB
Bash
SUMMARY="A PSP emulator written in C++"
|
||
DESCRIPTION="PPSSPP is a PSP (PlayStation Portable) emulator capable of playing the \
|
||
majority of the games made for Sony’s first portable console right on your favorite \
|
||
Android or PC device."
|
||
HOMEPAGE="https://www.ppsspp.org/"
|
||
COPYRIGHT="2012-2019 PPSSPP Project"
|
||
LICENSE="GNU GPL v2"
|
||
REVISION="1"
|
||
SOURCE_URI="https://github.com/hrydgard/ppsspp/archive/v$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="a7011feb0480a352d60e6a3c939d88d4d2e3a2e76620886b183aa2cb36f910de"
|
||
SOURCE_FILENAME="ppsspp-$portVersion.tar.gz"
|
||
SOURCE_DIR="ppsspp-$portVersion"
|
||
srcGitRev_2="7885552b208493a6a0f21663770c446c3ba65576"
|
||
SOURCE_URI_2="https://github.com/Kingcom/armips/archive/$srcGitRev_2.tar.gz"
|
||
CHECKSUM_SHA256_2="f8a03906135fb6f2932b80b7ef5991f39ccac46b36ec3690776fb38c69775c3d"
|
||
SOURCE_FILENAME_2="armips-$srcGitRev_2.tar.gz"
|
||
SOURCE_DIR_2="armips-$srcGitRev_2"
|
||
srcGitRev_3="9983f99e87ab0b6608b236ea59bcf873f90e1435"
|
||
SOURCE_URI_3="https://github.com/hrydgard/glslang/archive/$srcGitRev_3.tar.gz"
|
||
CHECKSUM_SHA256_3="ea5c3ca101b9635508052e0f52966303e8fc94edf564ecfd0fda147b74625c9a"
|
||
SOURCE_FILENAME_3="glslang-$srcGitRev_3.tar.gz"
|
||
SOURCE_DIR_3="glslang-$srcGitRev_3"
|
||
srcGitRev_4="be7425ef70231ab82930331959ab487d605d0482"
|
||
SOURCE_URI_4="https://github.com/KhronosGroup/SPIRV-Cross/archive/$srcGitRev_4.tar.gz"
|
||
CHECKSUM_SHA256_4="21afa0e32dd2d75ee51c4f5c0d16330a9d80d435d6ac9900d0c13bffdfd7b682"
|
||
SOURCE_FILENAME_4="SPIRV-Cross-$srcGitRev_4.tar.gz"
|
||
SOURCE_DIR_4="SPIRV-Cross-$srcGitRev_4"
|
||
srcGitRev_5="18e0d460e187556e9510e2e9b5ae85fa435cefd9"
|
||
SOURCE_URI_5="https://github.com/hrydgard/ppsspp-lang/archive/$srcGitRev_5.tar.gz"
|
||
CHECKSUM_SHA256_5="3d313170bb387d466e2bf267b23dd5689174355537f728b42a99f9ea77af0d37"
|
||
SOURCE_FILENAME_5="ppsspp-lang-$srcGitRev_5.tar.gz"
|
||
SOURCE_DIR_5="ppsspp-lang-$srcGitRev_5"
|
||
PATCHES="ppsspp-$portVersion.patchset"
|
||
ADDITIONAL_FILES="ppsspp.rdef.in"
|
||
|
||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||
SECONDARY_ARCHITECTURES="x86"
|
||
|
||
PROVIDES="
|
||
ppsspp$secondaryArchSuffix = $portVersion
|
||
app:PPSSPP$secondaryArchSuffix
|
||
"
|
||
REQUIRES="
|
||
haiku$secondaryArchSuffix
|
||
lib:libavcodec$secondaryArchSuffix
|
||
lib:libavformat$secondaryArchSuffix
|
||
lib:libavutil$secondaryArchSuffix
|
||
lib:libGL$secondaryArchSuffix
|
||
lib:libglew$secondaryArchSuffix
|
||
lib:libGLU$secondaryArchSuffix
|
||
lib:libintl$secondaryArchSuffix
|
||
lib:libSDL2_2.0$secondaryArchSuffix
|
||
lib:libSDL2_image_2.0$secondaryArchSuffix
|
||
lib:libz$secondaryArchSuffix
|
||
lib:libzip$secondaryArchSuffix
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku${secondaryArchSuffix}_devel
|
||
devel:libavcodec$secondaryArchSuffix
|
||
devel:libavformat$secondaryArchSuffix
|
||
devel:libavutil$secondaryArchSuffix
|
||
devel:libGL$secondaryArchSuffix
|
||
devel:libglew$secondaryArchSuffix
|
||
devel:libGLU$secondaryArchSuffix
|
||
devel:libintl$secondaryArchSuffix
|
||
devel:libSDL2_2.0$secondaryArchSuffix
|
||
devel:libSDL2_image_2.0$secondaryArchSuffix
|
||
devel:libz$secondaryArchSuffix
|
||
devel:libzip$secondaryArchSuffix
|
||
"
|
||
BUILD_PREREQUIRES="
|
||
cmd:cmake
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:make
|
||
cmd:pkg_config$secondaryArchSuffix
|
||
"
|
||
|
||
BUILD()
|
||
{
|
||
rm -rf ext/{armips,glslang,SPIRV-Cross}
|
||
ln -s $sourceDir2 ext/armips
|
||
ln -s $sourceDir3 ext/glslang
|
||
ln -s $sourceDir4 ext/SPIRV-Cross
|
||
cp -rf $sourceDir5/*.ini assets/lang
|
||
sed -i "s|unknown| v$portVersion|" git-version.cmake
|
||
|
||
mkdir -p build
|
||
cd build
|
||
|
||
cmake ..
|
||
make $jobArgs
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
mkdir -p $appsDir/PPSSPP
|
||
cp -f build/PPSSPPSDL $appsDir/PPSSPP/PPSSPP
|
||
cp -rf assets $appsDir/PPSSPP
|
||
|
||
local APP_SIGNATURE="application/x-vnd.ppsspp"
|
||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||
local LONG_INFO="$SUMMARY"
|
||
sed \
|
||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||
-e "s|@MAJOR@|$MAJOR|" \
|
||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||
-e "s|@MINOR@|$MINOR|" \
|
||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||
$portDir/additional-files/ppsspp.rdef.in > ppsspp.rdef
|
||
|
||
addResourcesToBinaries ppsspp.rdef $appsDir/PPSSPP/PPSSPP
|
||
mimeset -f $appsDir/PPSSPP/PPSSPP
|
||
addAppDeskbarSymlink $appsDir/PPSSPP/PPSSPP
|
||
}
|