Skip to content

Commit 3cf4ffc

Browse files
committed
New package: opencomposite-1.0.1521
1 parent 8d5ee7f commit 3cf4ffc

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

srcpkgs/opencomposite/files/version.txt

Whitespace-only changes.

srcpkgs/opencomposite/template

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

0 commit comments

Comments
 (0)