2018-01-26 23:21:09 +01:00
|
|
|
# Template file for 'arcan'
|
|
|
|
pkgname=arcan
|
2018-04-15 18:49:56 +02:00
|
|
|
version=0.5.4.6
|
2018-04-16 21:56:36 +02:00
|
|
|
revision=2
|
2018-01-26 23:21:09 +01:00
|
|
|
build_style=cmake
|
|
|
|
build_wrksrc=src
|
|
|
|
short_desc="Combined display server, multimedia framework and game engine"
|
|
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
2018-03-20 02:07:26 +01:00
|
|
|
license="GPL-2.0-or-later"
|
2018-01-26 23:21:09 +01:00
|
|
|
homepage="https://arcan-fe.com/"
|
2018-04-15 18:49:56 +02:00
|
|
|
_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="b42d765610e9e791ab196a904758f42446ea116b1e3bc2a6ca788ebe494f5c55
|
|
|
|
3a50a87c05b67c466a868cc77f8dc7f9cfc9466aeeafcd823daca0d108c504da"
|
2018-01-26 23:21:09 +01:00
|
|
|
|
|
|
|
# the _lwa part of the build relies on a patched openAL implementation
|
|
|
|
# that is statically linked
|
|
|
|
|
|
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
|
|
|
|
|
|
|
configure_args=" -DDISTR_TAG='Void Linux'
|
|
|
|
-DCMAKE_BUILD_TYPE=Release -DBUILD_TAG='release' -DSTATIC_SQLITE3=Off
|
|
|
|
-DSTATIC_OPENAL=Off -DSTATIC_FREETYPE=Off
|
|
|
|
-DVIDEO_PLATFORM=egl-dri -DENABLE_SIMD=On -DENABLE_LTO=Off"
|
|
|
|
|
2018-03-20 02:07:26 +01:00
|
|
|
makedepends="LuaJIT-devel ffmpeg-devel harfbuzz-devel liblzma-devel
|
|
|
|
libopenal-devel libusb-devel libvncserver-devel libxkbcommon-devel sqlite-devel
|
|
|
|
tesseract-ocr-devel vlc-devel"
|
2018-01-26 23:21:09 +01:00
|
|
|
|
|
|
|
build_options="tesseract"
|
|
|
|
desc_option_tesseract="Enable support for OCR via tesseract"
|
|
|
|
build_options_default="tesseract"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
# provide patched openAL
|
|
|
|
ln -s ${XBPS_BUILDDIR}/openal-${_versionOpenal} ${XBPS_BUILDDIR}/arcan-${version}/external/git/openal
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# 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() {
|
2018-04-15 18:49:56 +02:00
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove "usr/lib/*.a"
|
2018-01-26 23:21:09 +01:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/include
|
|
|
|
}
|
|
|
|
}
|