arcan: fix build

This commit is contained in:
Đoàn Trần Công Danh 2022-01-10 18:16:00 +07:00
parent ab0be79c23
commit d60853f226
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,22 @@
Index: a/src/CMakeLists.txt
===================================================================
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,16 +1,8 @@
# tried playing nice by using REQUIRE_QUIET but some built-in modules
# (CheckLibraryExists, ...) wouldn't listen so how about a nice cup
# of shut up.
-function(message)
- list(GET ARGV 0 TYPE)
- if (TYPE STREQUAL "FATAL_ERROR")
- list(REMOVE_AT ARGV 0)
- _message(${TYPE} ${CL_RED} "${ARGV}" ${CL_RST})
- endif()
-endfunction()
-
function(amsg msg)
- _message("" ${msg})
+ message("" ${msg})
endfunction()
if (CLIENT_LIBRARY_BUILD OR BUILD_PRESET STREQUAL "client")

View file

@ -12,7 +12,7 @@ hostmakedepends="pkg-config
$(vopt_if wayland wayland-devel)"
makedepends="MesaLib-devel ffmpeg-devel file-devel freetype-devel liblzma-devel
libopenal-devel libusb-devel libvncserver-devel libxkbcommon-devel sqlite-devel
vlc-devel SDL2-devel
vlc-devel SDL2-devel xcb-util-devel xcb-util-wm-devel
$(vopt_if tts 'libespeak-ng-devel')
$(vopt_if luajit 'LuaJIT-devel' 'lua51-devel')
$(vopt_if tesseract 'tesseract-ocr-devel leptonica-devel')
@ -48,7 +48,8 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
CFLAGS="-latomic"
fi
pre_configure() {
post_patch() {
rm -f platform/cmake/modules/FindPkgConfig.cmake
# provide patched openAL. the _lwa part of the build relies on a patched
# openAL implementation that is statically linked
ln -s ${XBPS_BUILDDIR}/openal-${_versionOpenal} ${XBPS_BUILDDIR}/arcan-${version}/external/git/openal