-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
59 lines (49 loc) · 2.09 KB
/
template
File metadata and controls
59 lines (49 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Template file for 'opencomposite'
pkgname=opencomposite
version=1.0.1521
revision=1
archs="x86_64 i686"
_openxrsdk_version=1.0.12
_glm_version=0.9.9.8
# this variable must be consistent with its copy in the wivrn package
# or users will have to manually input the path into wivrn
_opencomposite_path=/opt/opencomposite
lib32mode=full
build_style=cmake
configure_args="-DUSE_SYSTEM_OPENXR=OFF -DUSE_SYSTEM_GLM=OFF
-DOC_BACKTRACE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo"
hostmakedepends="git cmake make Vulkan-Headers python3"
makedepends="glibc-devel libgcc-devel vulkan-loader-devel
libglvnd-devel libX11-devel"
depends="glibc libgcc vulkan-loader libglvnd libX11"
short_desc="Reimplementation of OpenVR, translating calls to OpenXR"
maintainer="rejahtavi <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://gitlab.com/znixian/OpenOVR/"
changelog="https://gitlab.com/znixian/OpenOVR/-/commits/openxr"
distfiles="https://gitlab.com/znixian/OpenOVR/-/archive/${version}/OpenOVR-${version}.tar.gz>opencomposite.tar.gz
https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-${_openxrsdk_version}.tar.gz>openxrsdk.tar.gz
https://github.com/g-truc/glm/archive/refs/tags/${_glm_version}.tar.gz>glm.tar.gz"
checksum="b5a0d9eb802773dad37aadbfca6c35bbe473ad0df9372ef6fd010fdeb33ce523
66ec1d325b820fff4dac62183c271c05de16835b97b1ad2416a01105f94407da
7d508ab72cb5d43227a3711420f06ff99b0a0cb63ee2f93631b162bfe1fe9592"
skip_extraction="openxrsdk.tar.gz glm.tar.gz"
post_extract() {
vsrcextract -C libs/openxr-sdk openxrsdk.tar.gz
vsrcextract -C libs/glm glm.tar.gz
}
# note: wivrn and openxr expect this specific per-architecture substructure for plugins
# it will not work with the standard /usr/lib and /usr/lib32 locations.
do_install() {
case "$XBPS_TARGET_MACHINE" in
x86_64*)
vmkdir ${_opencomposite_path}/bin/linux64
vinstall build/bin/linux64/vrclient.so 755 ${_opencomposite_path}/bin/linux64
vinstall ${FILESDIR}/version.txt 644 ${_opencomposite_path}/bin
;;
i686*)
vmkdir ${_opencomposite_path}/bin
vinstall build/bin/vrclient.so 755 ${_opencomposite_path}/bin
;;
esac
}