commit:     537d65ec9f7d61e9ed0d79037f921377c2f51b6b
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  8 09:57:05 2026 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Feb  8 10:03:54 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=537d65ec

app-misc/opentrack: add 2026.1.0_p20260208

Add a snapshot release because older versions do not work:
- 2024.1.1 no longer builds with QT 6.10
- 2026.1.0 does not build and does not run either

The live version builds and work fine.

There is talk of a future 2026.2.0 upstream:
https://github.com/opentrack/opentrack/issues/2133

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 app-misc/opentrack/Manifest                        |   1 +
 .../opentrack/opentrack-2026.1.0_p20260208.ebuild  | 102 +++++++++++++++++++++
 2 files changed, 103 insertions(+)

diff --git a/app-misc/opentrack/Manifest b/app-misc/opentrack/Manifest
index adf427feac..52c6ec7d4f 100644
--- a/app-misc/opentrack/Manifest
+++ b/app-misc/opentrack/Manifest
@@ -1,2 +1,3 @@
 DIST Fusion-1.2.11.tar.gz 447980 BLAKE2B 
c0d1eb566093040483fa808990186f1921b60f700cc10452b92487e3e992d8894e948d2a06cb4dfe7f12d350e19ec11d1abbbf758dac24fa2f2986d91a95cfa0
 SHA512 
f6c4177779bb8e40d48a75d42e7c98ba8440aeb6ee7be470722e81a484583f8cdcda9ec4723cbd3732ba55c42173042a57fd2e5d25cbee754e3922f7a5401988
 DIST opentrack-2024.1.1_p20250620.tar.gz 85305012 BLAKE2B 
757ac05d72ce783428c119ac4409f593889de3245c18c5a9b31808823004be548785748c1b838dcbfffa3d56b6562963fed5f66c32b9e608a5585d283db0525e
 SHA512 
9f50142ee665c067ef7cff733809d8c0abad702af6345bcc9bfc8c298412eccae1c34426d4e22ec69043acbcb1df08843140cd0707124d56bb22805fda96a8c0
+DIST opentrack-2026.1.0_p20260208.tar.gz 141966025 BLAKE2B 
a45922397b5d5eaf6388a5ca91cbe04a6d9cd960531a555e7d859ba6bfbb85117424d8941e4f87a4a480c0fb7b3c2988873bb01e08e2b1518eccda1c5a73df66
 SHA512 
35e38b06141e04eaf40281a765411284b78f07c2f303c74fce6826319608d333446a5a766a2b6499c5075f4144beeb997f87cfd6ef448c906f05d922e80178d1

diff --git a/app-misc/opentrack/opentrack-2026.1.0_p20260208.ebuild 
b/app-misc/opentrack/opentrack-2026.1.0_p20260208.ebuild
new file mode 100644
index 0000000000..b022a938cd
--- /dev/null
+++ b/app-misc/opentrack/opentrack-2026.1.0_p20260208.ebuild
@@ -0,0 +1,102 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake desktop flag-o-matic toolchain-funcs
+
+DESCRIPTION="Head tracking software for MS Windows, Linux, and Apple OSX"
+HOMEPAGE="https://github.com/opentrack/opentrack";
+
+FUSION_PV="1.2.11"
+
+if [[ ${PV} == 9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/opentrack/opentrack.git";
+else
+       COMMIT=2d3ab7a61d2514ce51c9656908d33465a788763e
+       
SRC_URI="https://github.com/opentrack/opentrack/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/opentrack-${COMMIT}"
+fi
+SRC_URI+=" 
https://github.com/xioTechnologies/Fusion/archive/v${FUSION_PV}.tar.gz -> 
Fusion-${FUSION_PV}.tar.gz"
+
+LICENSE="ISC MIT"
+SLOT="0"
+IUSE="neuralnet opencv openmp wine"
+REQUIRED_USE="neuralnet? ( openmp opencv )"
+
+DEPEND="
+       dev-libs/libevdev
+       dev-libs/libusb:1
+       dev-qt/qtbase:6[gui,network,widgets]
+       sys-process/procps:=
+       x11-libs/libX11
+       neuralnet? ( sci-libs/onnxruntime-bin )
+       opencv? ( media-libs/opencv:= )
+       wine? ( virtual/wine )
+"
+RDEPEND="${DEPEND}"
+
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_prepare() {
+       # work around hard-coded docs path
+       sed -e 's#share/doc/opentrack#share/doc/'${PF}'#g' \
+               -i cmake/*.cmake || die
+
+       cmake_src_prepare
+}
+
+src_unpack() {
+       if [[ ${PV} == 9999 ]]; then
+               git-r3_src_unpack
+       else
+               unpack ${P}.tar.gz
+       fi
+       unpack Fusion-${FUSION_PV}.tar.gz
+}
+
+src_configure() {
+       use openmp && append-cxxflags -fopenmp && append-ldflags -fopenmp
+
+       local mycmakeargs=(
+               $(cmake_use_find_package neuralnet ONNXRuntime)
+               $(cmake_use_find_package opencv OpenCV)
+               $(cmake_use_find_package openmp OpenMP)
+
+               # disconnect the build from external Fusion sources
+               
-DFETCHCONTENT_SOURCE_DIR_AHRSFUSION="${WORKDIR}/Fusion-${FUSION_PV}"
+       )
+
+       # opentrack overwrites emerge cflags unconditionally: we can prevent
+       # that by pretending they've already been set
+       mycmakeargs+=(
+               -D__otr_compile_flags_set=TRUE
+       )
+
+       # HACK: "/opt/opentrack" allows its wine components to be visible in
+       # Valve's pressure-vessel which replaces /usr with the container runtime
+       use wine && mycmakeargs+=(
+               -DCMAKE_INSTALL_PREFIX=/opt/opentrack
+               -DOPENTRACK_WINE_ARCH="-m64"
+               -DSDK_WINE=$(usex wine ON OFF)
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       use wine && dosym -r /opt/opentrack/bin/opentrack /usr/bin/opentrack
+
+       newicon gui/images/opentrack.png opentrack.png
+       make_desktop_entry /usr/bin/opentrack OpenTrack 
/usr/share/pixmaps/opentrack.png Utility
+}

Reply via email to