void-packages/srcpkgs/arcan/template
Piraty 309b7aed38 arcan: update to 0.5.5.
+ enable build on all arches (succesfully tested on an rpi3 on aarch64-musl, using durden)
2018-09-22 07:44:29 -03:00

68 lines
2 KiB
Bash

# Template file for 'arcan'
pkgname=arcan
version=0.5.5
revision=1
build_style=cmake
build_wrksrc=src
configure_args="-DDISTR_TAG='Void Linux' -DVIDEO_PLATFORM=egl-dri"
makedepends="ffmpeg-devel harfbuzz-devel liblzma-devel
libopenal-devel libusb-devel libvncserver-devel libxkbcommon-devel sqlite-devel
$(vopt_if tesseract tesseract-ocr-devel) vlc-devel"
short_desc="Combined display server, multimedia framework and game engine"
maintainer="Piraty <piraty1@inbox.ru>"
license="GPL-2.0-or-later, LGPL-2.0-or-later, BSD-3-Clause"
homepage="https://arcan-fe.com/"
_versionOpenal=0.5.4
distfiles="https://github.com/letoram/${pkgname}/archive/${version}.tar.gz
https://github.com/letoram/openal/archive/${_versionOpenal}.tar.gz>openal_arcan.${_versionOpenal}.tar.gz"
checksum="578ed860a99a02cf1cf963efac830eb8af08093e4322832b2be6554d8c922ff2
3a50a87c05b67c466a868cc77f8dc7f9cfc9466aeeafcd823daca0d108c504da"
case "${XBPS_TARGET_MACHINE}" in
i686*|x86_64*)
makedepends+=" LuaJIT-devel"
;;
armv7*|aarch64*)
configure_args+=" -DDISABLE_JIT=ON"
makedepends+=" MesaLib-devel lua51-devel"
;;
armv[56]*)
configure_args+=" -DDISABLE_JIT=ON"
makedepends+=" MesaLib-devel lua51-devel libatomic-devel"
CFLAGS+=" -latomic"
;;
esac
build_options="tesseract"
desc_option_tesseract="Enable support for OCR via tesseract"
build_options_default="tesseract"
# the _lwa part of the build relies on a patched openAL implementation
# that is statically linked
pre_configure() {
# provide patched openAL
ln -s ${XBPS_BUILDDIR}/openal-${_versionOpenal} ${XBPS_BUILDDIR}/arcan-${version}/external/git/openal
}
post_install() {
vdoc ../README.md
vlicense ../COPYING
for _l in BSD GPL LGPL; do
vlicense ../data/distr/LICENSE.${_l}
done
# need suid for drmMaster, dropped immediately after open+master
chmod u+s ${DESTDIR}/usr/bin/arcan
}
arcan-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
vmove usr/include
}
}