From ed70605ba7e6cb945c2d1792b3620529e37f3b53 Mon Sep 17 00:00:00 2001 From: George Matsumura Date: Mon, 12 Jul 2021 04:17:31 -0600 Subject: [PATCH] arcan: Add arcan_sdl as subpackage of arcan This change allows the arcan_sdl binary to be built with a build option, which in turn allows the running of arcan nested within a different display server. --- srcpkgs/arcan/template | 13 +++++++++++-- srcpkgs/arcan_sdl | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/arcan_sdl diff --git a/srcpkgs/arcan/template b/srcpkgs/arcan/template index f436db94479c..31bf6e62eec5 100644 --- a/srcpkgs/arcan/template +++ b/srcpkgs/arcan/template @@ -1,17 +1,18 @@ # Template file for 'arcan' pkgname=arcan version=0.6.0.1 -revision=1 +revision=2 build_wrksrc=src build_style=cmake make_cmd=make configure_args="-DDISTR_TAG='Void Linux' -DVIDEO_PLATFORM=egl-dri + -DHYBRID_SDL=On $(vopt_if luajit '-DDISABLE_JIT=OFF' '-DDISABLE_JIT=ON')" 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 + vlc-devel SDL2-devel $(vopt_if tts 'libespeak-ng-devel') $(vopt_if luajit 'LuaJIT-devel' 'lua51-devel') $(vopt_if tesseract 'tesseract-ocr-devel leptonica-devel') @@ -74,3 +75,11 @@ arcan-devel_package() { vmove usr/include } } + +arcan_sdl_package() { + short_desc+=" - SDL platform server binary" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/bin/arcan_sdl + } +} diff --git a/srcpkgs/arcan_sdl b/srcpkgs/arcan_sdl new file mode 120000 index 000000000000..fb6a95edcfe5 --- /dev/null +++ b/srcpkgs/arcan_sdl @@ -0,0 +1 @@ +arcan \ No newline at end of file