[packages/hamlib] - ensure c++, indi and xml support (C++ using hack, because -std= added by earlier macro breaks cf_w

qboosh qboosh at pld-linux.org
Sun Mar 30 10:10:12 CEST 2025


commit 6494cf6329369fc58977d10fe130104ad6e7133b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 30 10:10:06 2025 +0200

    - ensure c++, indi and xml support (C++ using hack, because -std= added by earlier macro breaks cf_with_cxx detection)

 hamlib.spec | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/hamlib.spec b/hamlib.spec
index cdbf31c..77b6694 100644
--- a/hamlib.spec
+++ b/hamlib.spec
@@ -242,12 +242,14 @@ radiem z poziomu skryptów Tcl-a.
 install -d build-python2
 cd build-python2
 %configure \
+	ac_cv_prog_cf_with_cxx=yes \
 	PYTHON=%{__python} \
 	--disable-silent-rules \
 	--disable-static \
 	%{?with_usrp:--enable-usrp} \
-	%{!?with_indi:--without-indi} \
-	--with-python-binding
+	--with-indi%{!?with_indi:=no} \
+	--with-python-binding \
+	--with-xml-support
 
 %{__make}
 cd ..
@@ -257,10 +259,12 @@ cd ..
 install -d build-static
 cd build-static
 %configure \
+	ac_cv_prog_cf_with_cxx=yes \
 	--disable-silent-rules \
 	--disable-shared \
 	%{?with_usrp:--enable-usrp} \
-	%{!?with_indi:--without-indi}
+	--with-indi%{!?with_indi:=no} \
+	--with-xml-support
 
 %{__make}
 cd ..
@@ -269,17 +273,19 @@ cd ..
 install -d build
 cd build
 %configure \
+	ac_cv_prog_cf_with_cxx=yes \
 	LUA=/usr/bin/lua5.2 \
 	PYTHON=%{__python3} \
 	TCL_VERSION=%{tcl_version} \
 	--disable-silent-rules \
 	--disable-static \
 	%{?with_usrp:--enable-usrp} \
-	%{!?with_indi:--without-indi} \
+	--with-indi%{!?with_indi:=no} \
 	%{?with_lua:--with-lua-binding} \
 	%{?with_perl:--with-perl-binding} \
 	%{?with_python3:--with-python-binding} \
-	%{?with_tcl:--with-tcl-binding}
+	%{?with_tcl:--with-tcl-binding} \
+	--with-xml-support
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hamlib.git/commitdiff/6494cf6329369fc58977d10fe130104ad6e7133b



More information about the pld-cvs-commit mailing list