Skip to content

Commit fb15fca

Browse files
committed
New package: opencomposite-1.0.1521
1 parent 957bda0 commit fb15fca

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

srcpkgs/opencomposite/files/version.txt

Whitespace-only changes.

srcpkgs/opencomposite/template

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

0 commit comments

Comments
 (0)