commit:     9d593854133ba9df64c7abe62874fbb9161e8a92
Author:     Patrick Nicolas <patricknicolas <AT> laposte <DOT> net>
AuthorDate: Mon Feb 17 16:53:04 2025 +0000
Commit:     Patrick Nicolas <patricknicolas <AT> laposte <DOT> net>
CommitDate: Mon Feb 17 16:57:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d593854

media-libs/wivrn: add NDEBUG

Signed-off-by: Patrick Nicolas <patricknicolas <AT> laposte.net>

 media-libs/wivrn/{wivrn-0.23.2.ebuild => wivrn-0.23.2-r1.ebuild} | 6 ++++--
 media-libs/wivrn/wivrn-9999.ebuild                               | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/media-libs/wivrn/wivrn-0.23.2.ebuild 
b/media-libs/wivrn/wivrn-0.23.2-r1.ebuild
similarity index 94%
rename from media-libs/wivrn/wivrn-0.23.2.ebuild
rename to media-libs/wivrn/wivrn-0.23.2-r1.ebuild
index a9355e1af..55035d654 100644
--- a/media-libs/wivrn/wivrn-0.23.2.ebuild
+++ b/media-libs/wivrn/wivrn-0.23.2-r1.ebuild
@@ -3,14 +3,14 @@
 
 EAPI=8
 
-inherit cmake fcaps xdg
+inherit cmake fcaps flag-o-matic xdg
 
 DESCRIPTION="WiVRn OpenXR streaming"
 HOMEPAGE="https://github.com/WiVRn/WiVRn";
 
 LICENSE="GPL-3 Apache-2.0 MIT"
 SLOT="0"
-IUSE="gui nvenc +pipewire pulseaudio systemd vaapi wireshark-plugins x264"
+IUSE="debug gui nvenc +pipewire pulseaudio systemd vaapi wireshark-plugins 
x264"
 REQUIRED_USE="|| ( nvenc vaapi x264 )"
 
 if [[ ${PV} == 9999 ]]; then
@@ -102,6 +102,8 @@ else
 fi
 
 src_configure() {
+       use debug || append-cflags "-DNDEBUG"
+       use debug || append-cxxflags "-DNDEBUG"
        if [[ ${PV} == 9999 ]]; then
                GIT_DESC=$(git describe --tags --always)
                GIT_COMMIT=$(git rev-parse HEAD)

diff --git a/media-libs/wivrn/wivrn-9999.ebuild 
b/media-libs/wivrn/wivrn-9999.ebuild
index a9355e1af..55035d654 100644
--- a/media-libs/wivrn/wivrn-9999.ebuild
+++ b/media-libs/wivrn/wivrn-9999.ebuild
@@ -3,14 +3,14 @@
 
 EAPI=8
 
-inherit cmake fcaps xdg
+inherit cmake fcaps flag-o-matic xdg
 
 DESCRIPTION="WiVRn OpenXR streaming"
 HOMEPAGE="https://github.com/WiVRn/WiVRn";
 
 LICENSE="GPL-3 Apache-2.0 MIT"
 SLOT="0"
-IUSE="gui nvenc +pipewire pulseaudio systemd vaapi wireshark-plugins x264"
+IUSE="debug gui nvenc +pipewire pulseaudio systemd vaapi wireshark-plugins 
x264"
 REQUIRED_USE="|| ( nvenc vaapi x264 )"
 
 if [[ ${PV} == 9999 ]]; then
@@ -102,6 +102,8 @@ else
 fi
 
 src_configure() {
+       use debug || append-cflags "-DNDEBUG"
+       use debug || append-cxxflags "-DNDEBUG"
        if [[ ${PV} == 9999 ]]; then
                GIT_DESC=$(git describe --tags --always)
                GIT_COMMIT=$(git rev-parse HEAD)

Reply via email to