Skip to content

Commit fc20615

Browse files
committed
add: opencomposite-1.0.1521
1 parent 957bda0 commit fc20615

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

srcpkgs/opencomposite/files/version.txt

Whitespace-only changes.

srcpkgs/opencomposite/template

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

0 commit comments

Comments
 (0)