[neon/extras/phonon/Neon/unstable] debian: adapt to new build

Carlos De Maine null at kde.org
Wed Jul 19 05:16:00 BST 2023


Git commit 4dd4201cb7355268e65cd13a50284ef61a5c5e35 by Carlos De Maine.
Committed on 19/07/2023 at 04:15.
Pushed by carlosdem into branch 'Neon/unstable'.

adapt to new build

A  +29   -0    debian/patches/either_or.diff
A  +1    -0    debian/patches/series
M  +5    -0    debian/rules

https://invent.kde.org/neon/extras/phonon/-/commit/4dd4201cb7355268e65cd13a50284ef61a5c5e35

diff --git a/debian/patches/either_or.diff b/debian/patches/either_or.diff
new file mode 100644
index 0000000..6bbee2b
--- /dev/null
+++ b/debian/patches/either_or.diff
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7cae88a35c7732932cbb7585db3f88e89a42f8fb..5c0c4ff840b3d047fb9a8a85af12ecaa1df10c24 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,6 +11,9 @@ option(PHONON_BUILD_SETTINGS "Build the settings GUI" ON)
+ 
+ option(PHONON_NO_CAPTURE "Disable the capture capabilities")
+ 
++option(BUILD_QT5 "Build for Qt5" ON)
++option(BUILD_QT6 "Build for Qt6" ON)
++
+ # Not set by ECM (yet)
+ set(CMAKE_AUTOUIC TRUE)
+ set(CMAKE_AUTORCC TRUE)
+@@ -33,7 +36,13 @@ include(ECMGeneratePkgConfigFile)
+ include(ECMPoQmTools)
+ include(ECMSetupVersion)
+ 
+-set(VERSIONS "5;6")
++if (${BUILD_QT6})
++set(VERSIONS "6")
++endif()
++if (${BUILD_QT5})
++set(VERSIONS "5")
++endif()
++
+ # CI is stupid and doesn't allow us to set CMAKE options per build variant
+ if ($ENV{CI_JOB_NAME_SLUG} MATCHES "qt5")
+     set(VERSIONS "5")
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b58af05
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+either_or.diff
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index ee2b027..95076c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,11 +4,16 @@ export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
 
 include /usr/share/dpkg/pkg-info.mk
 
+CMAKE_ARGS = -DBUILD_QT5=ON -DBUILD_QT6=OFF
+
 %:
 	dh $@ --with kf5
 
 RECOMMENDED_PHONON4_QT5_BACKEND := phonon4qt5-backend-vlc
 
+override_dh_auto_configure:
+	dh_auto_configure -- $(CMAKE_ARGS)
+
 override_dh_install:
 	rm -v debian/tmp/usr/include/phonon4qt5/KDE/Phonon/AudioDevice
 	rm -v debian/tmp/usr/include/phonon4qt5/KDE/Phonon/AudioDeviceEnumerator


More information about the Neon-commits mailing list