Not quite fixed yet.

This commit is contained in:
fewtarius 2022-09-03 10:40:45 -04:00
parent 00bd18d570
commit 14137df918
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -1,5 +1,6 @@
PKG_NAME="yabasanshiroSA"
PKG_VERSION="c7618d2ecbf77b1e8188fa8af4fa1cfb34833a72"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/devmiyax/yabause"
PKG_URL="${PKG_SITE}.git"
@ -11,6 +12,8 @@ PKG_GIT_CLONE_BRANCH="pi4-1-9-0"
PKG_BUILD_FLAGS="+speed"
PKG_PATCH_DIRS+="${DEVICE}"
PKG_CMAKE_OPTS_TARGET="${PKG_BUILD}/yabause "
if [ ! "${OPENGL}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
fi
@ -19,6 +22,11 @@ if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
if [ "${VULKAN_SUPPORT}" = "yes" ]
then
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
fi
post_unpack() {
# use host versions
sed -i "s|COMMAND m68kmake|COMMAND ${PKG_BUILD}/m68kmake_host|" ${PKG_BUILD}/yabause/src/musashi/CMakeLists.txt
@ -31,25 +39,44 @@ pre_make_target() {
${HOST_CC} ${PKG_BUILD}/yabause/src/musashi/m68kmake.c -o ${PKG_BUILD}/m68kmake_host
}
case ${ARCH} in
aarch64)
PKG_CMAKE_OPTS_TARGET+="-DYAB_WANT_ARM7=ON"
;;
esac
pre_configure_target() {
PKG_CMAKE_OPTS_TARGET+="${PKG_BUILD}/yabause \
-DYAB_PORTS=retro_arena \
-DYAB_WANT_DYNAREC_DEVMIYAX=ON \
-DCMAKE_TOOLCHAIN_FILE=${PKG_BUILD}/yabause/src/retro_arena/n2.cmake \
-DYAB_WANT_VULKAN=OFF \
-DOPENGL_INCLUDE_DIR=${SYSROOT_PREFIX}/usr/include \
-DOPENGL_opengl_LIBRARY=${SYSROOT_PREFIX}/usr/lib \
-DOPENGL_glx_LIBRARY=${SYSROOT_PREFIX}/usr/lib \
-DLIBPNG_LIB_DIR=${SYSROOT_PREFIX}/usr/lib \
-DUSE_EGL=ON \
-Dpng_STATIC_LIBRARIES=${SYSROOT_PREFIX}/usr/lib/libpng16.so \
-DCMAKE_BUILD_TYPE=Release"
PKG_CMAKE_OPTS_TARGET="${PKG_BUILD}/yabause "
if [ ! "${OPENGL}" = "no" ]; then
PKG_CMAKE_OPTS_TARGET+="-DUSE_EGL=ON"
fi
if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_CMAKE_OPTS_TARGET+="-DUSE_EGL=ON"
fi
if [ "${VULKAN_SUPPORT}" = "yes" ]
then
PKG_CMAKE_OPTS_TARGET+=" -DYAB_WANT_VULKAN=ON"
else
PKG_CMAKE_OPTS_TARGET+=" -DYAB_WANT_VULKAN=OFF"
fi
case ${ARCH} in
aarch64)
PKG_CMAKE_OPTS_TARGET+="-DYAB_WANT_ARM7=ON \
-DYAB_WANT_DYNAREC_DEVMIYAX=ON"
;;
*)
PKG_CMAKE_OPTS_TARGET+="-DYAB_WANT_ARM7=OFF \
-DYAB_WANT_DYNAREC_DEVMIYAX=ON"
;;
esac
PKG_CMAKE_OPTS_TARGET+="-DYAB_PORTS=retro_arena \
-DCMAKE_TOOLCHAIN_FILE=${PKG_BUILD}/yabause/src/retro_arena/n2.cmake \
-DOPENGL_INCLUDE_DIR=${SYSROOT_PREFIX}/usr/include \
-DOPENGL_opengl_LIBRARY=${SYSROOT_PREFIX}/usr/lib \
-DOPENGL_glx_LIBRARY=${SYSROOT_PREFIX}/usr/lib \
-DLIBPNG_LIB_DIR=${SYSROOT_PREFIX}/usr/lib \
-Dpng_STATIC_LIBRARIES=${SYSROOT_PREFIX}/usr/lib/libpng16.so \
-DCMAKE_BUILD_TYPE=Release"
}