mirror of
https://github.com/RetroDECK/org.ppsspp.PPSSPP.git
synced 2024-11-22 21:55:38 +00:00
Add ppsspp-ffmpeg to module, rebuild for each arch
This commit is contained in:
parent
6eca62e623
commit
8924691c12
|
@ -15,6 +15,9 @@
|
||||||
"--socket=x11",
|
"--socket=x11",
|
||||||
"--share=network"
|
"--share=network"
|
||||||
],
|
],
|
||||||
|
"cleanup": [
|
||||||
|
"/ffmpeg"
|
||||||
|
],
|
||||||
"modules": [
|
"modules": [
|
||||||
"shared-modules/glu/glu-9.json",
|
"shared-modules/glu/glu-9.json",
|
||||||
"shared-modules/glew/glew.json",
|
"shared-modules/glew/glew.json",
|
||||||
|
@ -36,13 +39,45 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "ppsspp-ffmpeg",
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"build-commands": [
|
||||||
|
"rm -r ./linux",
|
||||||
|
"./build.sh",
|
||||||
|
"mkdir -p /app/ffmpeg && cp -r ./linux /app/ffmpeg/"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hrydgard/ppsspp-ffmpeg.git",
|
||||||
|
"commit": "55147e5f33f5ae4904f75ec082af809267122b94"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "script",
|
||||||
|
"dest-filename": "build.sh",
|
||||||
|
"only-arches": ["aarch64"],
|
||||||
|
"commands":[
|
||||||
|
"sed -i 's/GENERAL=/GENERAL_NO=/' linux_arm64.sh",
|
||||||
|
"./linux_arm64.sh"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "script",
|
||||||
|
"dest-filename": "build.sh",
|
||||||
|
"only-arches": ["x86_64"],
|
||||||
|
"commands":["./linux_x86-64.sh"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "ppsspp",
|
"name": "ppsspp",
|
||||||
"buildsystem": "cmake-ninja",
|
"buildsystem": "cmake-ninja",
|
||||||
"no-make-install": true,
|
"no-make-install": true,
|
||||||
"config-opts": [
|
"config-opts": [
|
||||||
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
|
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
|
||||||
"-DOpenGL_GL_PREFERENCE=GLVND"
|
"-DOpenGL_GL_PREFERENCE=GLVND",
|
||||||
|
"-DUSING_GLES2=ON"
|
||||||
],
|
],
|
||||||
"build-commands": [
|
"build-commands": [
|
||||||
"mkdir -p /app/ppsspp /app/bin /app/share/applications",
|
"mkdir -p /app/ppsspp /app/bin /app/share/applications",
|
||||||
|
@ -59,13 +94,12 @@
|
||||||
"url": "https://github.com/hrydgard/ppsspp.git",
|
"url": "https://github.com/hrydgard/ppsspp.git",
|
||||||
"commit": "087de849bdc74205dd00d8e6e11ba17a591213ab"
|
"commit": "087de849bdc74205dd00d8e6e11ba17a591213ab"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "file",
|
|
||||||
"path": "rebuild_ffmpeg.sh"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"commands": ["./rebuild_ffmpeg.sh"]
|
"commands": [
|
||||||
|
"rm -r ffmpeg/linux",
|
||||||
|
"ln -s /app/ffmpeg/linux ffmpeg/linux"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "file",
|
"type": "file",
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
if [ "$FLATPAK_ARCH" == "aarch64" ];then
|
|
||||||
cd ffmpeg
|
|
||||||
# GENERAL is used to set cross compile option, rename it to disable it.
|
|
||||||
sed "s/GENERAL=/GENERAL_NO=/;" linux_arm64.sh > linux_arm64_no_cross.sh
|
|
||||||
chmod +x linux_arm64_no_cross.sh
|
|
||||||
./linux_arm64_no_cross.sh
|
|
||||||
fi
|
|
Loading…
Reference in a new issue