vita3k-git: fix dependencies and enable vulkan support

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2020-01-21 16:57:19 +01:00
parent 7b4cfc80d9
commit 61e009d51a
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
2 changed files with 57 additions and 39 deletions

View file

@ -1,48 +1,45 @@
pkgbase = vita3k-git pkgbase = vita3k-git
pkgdesc = Experimental PlayStation Vita emulator pkgdesc = Experimental PlayStation Vita emulator
pkgver = r1293.164267bb pkgver = r1362.c43b0969
pkgrel = 1 pkgrel = 1
url = https://vita3k.org/ url = https://vita3k.org/
arch = x86_64 arch = x86_64
license = GPL2 license = GPL2
makedepends = boost
makedepends = clang makedepends = clang
makedepends = cmake makedepends = cmake
makedepends = git makedepends = git
makedepends = python makedepends = python2
makedepends = vulkan-headers makedepends = vulkan-headers
makedepends = glslang depends = boost-libs
makedepends = gtest
depends = boost
depends = gtk3 depends = gtk3
depends = sdl2 depends = sdl2
depends = capstone
depends = spdlog
depends = unicorn
depends = yaml-cpp
depends = pugixml
depends = ffmpeg
depends = vulkan-icd-loader depends = vulkan-icd-loader
depends = elfio
depends = stb
depends = discord-rpc-api
depends = spirv-cross
provides = vita3k provides = vita3k
conflicts = vita3k conflicts = vita3k
source = git+https://github.com/vita3k/vita3k.git source = git+https://github.com/vita3k/vita3k.git
source = git+https://github.com/serge1/ELFIO.git
source = git+https://github.com/aquynh/capstone.git
source = git+https://github.com/vitasdk/vita-headers.git source = git+https://github.com/vitasdk/vita-headers.git
source = git+https://github.com/jbeder/yaml-cpp.git
source = git+https://github.com/Vita3K/vita-toolchain.git source = git+https://github.com/Vita3K/vita-toolchain.git
source = git+https://github.com/jonasmr/microprofile.git source = git+https://github.com/jonasmr/microprofile.git
source = git+https://github.com/tcbrindle/sdl2-cmake-scripts.git source = git+https://github.com/tcbrindle/sdl2-cmake-scripts.git
source = git+https://github.com/gabime/spdlog.git
source = git+https://github.com/nothings/stb.git source = git+https://github.com/nothings/stb.git
source = git+https://github.com/tronkko/dirent.git source = git+https://github.com/tronkko/dirent.git
source = git+https://github.com/B-Con/crypto-algorithms.git source = git+https://github.com/B-Con/crypto-algorithms.git
source = git+https://github.com/ocornut/imgui.git source = git+https://github.com/ocornut/imgui.git
source = git+https://github.com/google/googletest.git source = git+https://github.com/google/googletest.git
source = git+https://github.com/Vita3K/shaders-db.git source = git+https://github.com/Vita3K/shaders-db.git
source = git+https://github.com/Vita3K/ext-boost.git source = git+https://github.com/KhronosGroup/glslang.git
source = git+https://github.com/vita3k/SPIRV-Cross.git
source = git+https://github.com/Vita3K/dlmalloc.git source = git+https://github.com/Vita3K/dlmalloc.git
source = git+https://github.com/vita3k/printf.git source = git+https://github.com/vita3k/printf.git
source = git+https://github.com/ocornut/imgui_club.git source = git+https://github.com/ocornut/imgui_club.git
source = git+https://github.com/unicorn-engine/unicorn.git
source = git+https://github.com/discordapp/discord-rpc.git
source = git+https://github.com/zeux/pugixml.git
source = git+https://github.com/aantron/better-enums.git source = git+https://github.com/aantron/better-enums.git
source = git+https://github.com/illusionman1212/nativefiledialog-cmake.git source = git+https://github.com/illusionman1212/nativefiledialog-cmake.git
source = git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git source = git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
@ -68,6 +65,14 @@ pkgbase = vita3k-git
md5sums = SKIP md5sums = SKIP
md5sums = SKIP md5sums = SKIP
md5sums = SKIP md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
pkgname = vita3k-git pkgname = vita3k-git

View file

@ -2,55 +2,52 @@
# Contributor: aimileus < $(echo YWltaWxpdXNAcHJvdG9ubWFpbC5jb20K | base64 -d) # Contributor: aimileus < $(echo YWltaWxpdXNAcHJvdG9ubWFpbC5jb20K | base64 -d)
_pkgname=vita3k _pkgname=vita3k
pkgname=${_pkgname}-git pkgname=${_pkgname}-git
pkgver=r1293.164267bb pkgver=r1362.c43b0969
pkgrel=1 pkgrel=1
pkgdesc="Experimental PlayStation Vita emulator" pkgdesc="Experimental PlayStation Vita emulator"
arch=('x86_64') arch=('x86_64')
url="https://vita3k.org/" url="https://vita3k.org/"
license=('GPL2') license=('GPL2')
makedepends=( makedepends=(
'boost'
'clang' 'clang'
'cmake' 'cmake'
'git' 'git'
'python' 'python2'
'vulkan-headers' 'vulkan-headers'
'glslang'
'gtest'
) )
depends=( depends=(
'boost' 'boost-libs'
'gtk3' 'gtk3'
'sdl2' 'sdl2'
'capstone'
'spdlog'
'unicorn'
'yaml-cpp'
'pugixml'
'ffmpeg'
'vulkan-icd-loader' 'vulkan-icd-loader'
'elfio'
'stb'
'discord-rpc-api'
'spirv-cross'
) )
provides=('vita3k') provides=('vita3k')
conflicts=('vita3k') conflicts=('vita3k')
source=( source=(
"git+https://github.com/vita3k/vita3k.git" "git+https://github.com/vita3k/vita3k.git"
"git+https://github.com/serge1/ELFIO.git"
"git+https://github.com/aquynh/capstone.git"
"git+https://github.com/vitasdk/vita-headers.git" "git+https://github.com/vitasdk/vita-headers.git"
"git+https://github.com/jbeder/yaml-cpp.git"
"git+https://github.com/Vita3K/vita-toolchain.git" "git+https://github.com/Vita3K/vita-toolchain.git"
"git+https://github.com/jonasmr/microprofile.git" "git+https://github.com/jonasmr/microprofile.git"
"git+https://github.com/tcbrindle/sdl2-cmake-scripts.git" "git+https://github.com/tcbrindle/sdl2-cmake-scripts.git"
"git+https://github.com/gabime/spdlog.git"
"git+https://github.com/nothings/stb.git" "git+https://github.com/nothings/stb.git"
"git+https://github.com/tronkko/dirent.git" "git+https://github.com/tronkko/dirent.git"
"git+https://github.com/B-Con/crypto-algorithms.git" "git+https://github.com/B-Con/crypto-algorithms.git"
"git+https://github.com/ocornut/imgui.git" "git+https://github.com/ocornut/imgui.git"
"git+https://github.com/google/googletest.git" "git+https://github.com/google/googletest.git"
"git+https://github.com/Vita3K/shaders-db.git" "git+https://github.com/Vita3K/shaders-db.git"
"git+https://github.com/Vita3K/ext-boost.git" "git+https://github.com/KhronosGroup/glslang.git"
"git+https://github.com/vita3k/SPIRV-Cross.git"
"git+https://github.com/Vita3K/dlmalloc.git" "git+https://github.com/Vita3K/dlmalloc.git"
"git+https://github.com/vita3k/printf.git" "git+https://github.com/vita3k/printf.git"
"git+https://github.com/ocornut/imgui_club.git" "git+https://github.com/ocornut/imgui_club.git"
"git+https://github.com/unicorn-engine/unicorn.git"
"git+https://github.com/discordapp/discord-rpc.git"
"git+https://github.com/zeux/pugixml.git"
"git+https://github.com/aantron/better-enums.git" "git+https://github.com/aantron/better-enums.git"
"git+https://github.com/illusionman1212/nativefiledialog-cmake.git" "git+https://github.com/illusionman1212/nativefiledialog-cmake.git"
"git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git" "git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git"
@ -78,6 +75,14 @@ md5sums=(
'SKIP' 'SKIP'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
) )
pkgver() { pkgver() {
@ -88,20 +93,28 @@ pkgver() {
prepare() { prepare() {
cd "${_pkgname}" cd "${_pkgname}"
git submodule init git submodule init
git config submodule.src/external/elfio.url "${srcdir}/ELFIO"
git config submodule.src/external/capstone.url "${srcdir}/capstone"
git config submodule.src/external/vita-headers.url "${srcdir}/vita-headers" git config submodule.src/external/vita-headers.url "${srcdir}/vita-headers"
git config submodule.src/external/yaml-cpp.url "${srcdir}/yaml-cpp"
git config submodule.src/external/vita-toolchain.url "${srcdir}/vita-toolchain" git config submodule.src/external/vita-toolchain.url "${srcdir}/vita-toolchain"
git config submodule.src/external/microprofile.url "${srcdir}/microprofile" git config submodule.src/external/microprofile.url "${srcdir}/microprofile"
git config submodule.src/external/sdl2-cmake-scripts.url "${srcdir}/sdl2-cmake-scripts" git config submodule.src/external/sdl2-cmake-scripts.url "${srcdir}/sdl2-cmake-scripts"
git config submodule.src/external/spdlogs.url "${srcdir}/spdlog"
git config submodule.src/external/stb.url "${srcdir}/stb" git config submodule.src/external/stb.url "${srcdir}/stb"
git config submodule.src/external/dirent.url "${srcdir}/dirent" git config submodule.src/external/dirent.url "${srcdir}/dirent"
git config submodule.src/external/crypto-algorithms.url "${srcdir}/crypto-algorithms" git config submodule.src/external/crypto-algorithms.url "${srcdir}/crypto-algorithms"
git config submodule.src/external/imgui.url "${srcdir}/imgui" git config submodule.src/external/imgui.url "${srcdir}/imgui"
git config submodule.src/external/googletest.url "${srcdir}/googletest" git config submodule.src/external/googletest.url "${srcdir}/googletest"
git config submodule.src/external/shaders-db.url "${srcdir}/shaders-db" git config submodule.src/external/shaders-db.url "${srcdir}/shaders-db"
git config submodule.src/external/boost.url "${srcdir}/ext-boost" git config submodule.src/external/glslang.url "${srcdir}/glslang"
git config submodule.src/external/SPIRV-Cross.url "${srcdir}/SPIRV-Cross"
git config submodule.src/external/dlmalloc.url "${srcdir}/dlmalloc" git config submodule.src/external/dlmalloc.url "${srcdir}/dlmalloc"
git config submodule.src/external/printf.url "${srcdir}/printf" git config submodule.src/external/printf.url "${srcdir}/printf"
git config submodule.src/external/imgui_club.url "${srcdir}/imgui_club" git config submodule.src/external/imgui_club.url "${srcdir}/imgui_club"
git config submodule.src/external/unicorn-src.url "${srcdir}/unicorn"
git config submodule.src/external/discord-rpc.url "${srcdir}/discord-rpc"
git config submodule.src/external/pugixml.url "${srcdir}/pugixml"
git config submodule.src/external/better-enums.url "${srcdir}/better-enums" git config submodule.src/external/better-enums.url "${srcdir}/better-enums"
git config submodule.src/external/nativefiledialog-cmake.url "${srcdir}/nativefiledialog-cmake" git config submodule.src/external/nativefiledialog-cmake.url "${srcdir}/nativefiledialog-cmake"
git config submodule.src/external/VulkanMemoryAllocator.url "${srcdir}/VulkanMemoryAllocator" git config submodule.src/external/VulkanMemoryAllocator.url "${srcdir}/VulkanMemoryAllocator"
@ -116,16 +129,16 @@ build() {
export CC="/usr/bin/clang" export CC="/usr/bin/clang"
export CXX="/usr/bin/clang++" export CXX="/usr/bin/clang++"
# Set the python # Set the python include path
PYTHON_INCLUDE_PATH="$(python -c "from sysconfig import get_paths as gp; print(gp()['include'])")" PYTHON_INCLUDE_PATH="$(python2 -c "from sysconfig import get_paths as gp; print(gp()['include'])")"
export CPATH="${PYTHON_INCLUDE_PATH}" export CPATH="${PYTHON_INCLUDE_PATH}"
./gen-linux.sh
# Workaround for linking problem with discord-rpc
rm -rf build-linux
mkdir -p build-linux mkdir -p build-linux
cd build-linux cd build-linux
cmake .. -DUSE_DISCORD_RICH_PRESENCE=OFF
# discord-rpc is not linking correctly
cmake .. -DUSE_VULKAN=ON -DUSE_DISCORD_RICH_PRESENCE=OFF
make UNICORN_QEMU_FLAGS="--python=/usr/bin/python2" make UNICORN_QEMU_FLAGS="--python=/usr/bin/python2"
} }