[hamradio-commits] [linpsk] 04/06: Forces to always build with hamlib support

Iain R. Learmonth irl at moszumanska.debian.org
Tue Jul 18 16:35:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

irl pushed a commit to branch master
in repository linpsk.

commit 2a96d0ac923865f666ca36efc82658a243b18828
Author: Iain R. Learmonth <irl at debian.org>
Date:   Tue Jul 18 17:23:36 2017 +0100

    Forces to always build with hamlib support
---
 debian/patches/series               |  1 +
 debian/patches/we_have_hamlib.patch | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 63db1fc..a38d705 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+we_have_hamlib.patch
 typo.patch
 ftbfs-clang.patch
diff --git a/debian/patches/we_have_hamlib.patch b/debian/patches/we_have_hamlib.patch
new file mode 100644
index 0000000..f6f2f97
--- /dev/null
+++ b/debian/patches/we_have_hamlib.patch
@@ -0,0 +1,25 @@
+--- a/linpsk.pro
++++ b/linpsk.pro
+@@ -34,17 +34,12 @@
+ 
+ LIBS += -lasound -lfftw3
+ 
++message(LinPSK builds with hamlib)
++LIBS +=$$system("pkg-config --libs hamlib")
++DEFINES += WITH_HAMLIB
++HEADERS +=src/rigcontrol.h
++SOURCES +=src/rigcontrol.cpp
+ 
+-packagesExist( hamlib ) {
+-      message(LinPSK builds with hamlib)
+-      LIBS +=$$system("pkg-config --libs hamlib")
+-      DEFINES += WITH_HAMLIB
+-      HEADERS +=src/rigcontrol.h
+-      SOURCES +=src/rigcontrol.cpp
+-}
+-else {
+-    message(LinPSK builds without hamlib)
+-}
+ # Input
+ 
+ HEADERS += gui/activatemacros.h \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/linpsk.git



More information about the pkg-hamradio-commits mailing list