File: debian-version

package info (click to toggle)
freedv 1.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,440 kB
  • sloc: cpp: 8,723; ansic: 3,564; python: 42; makefile: 10; sh: 7
file content (38 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/src/fdmdv2_main.cpp
+++ b/src/fdmdv2_main.cpp
@@ -2367,7 +2367,7 @@
 
                 wxT("GNU Public License V2.1\n\n")
                 wxT("Copyright (c) David Witten KD0EAG and David Rowe VK5DGR\n\n")
-                wxT("svn revision: %s\n"), FREEDV_VERSION, SVN_REVISION);
+                wxT("Debian package version: %s\n"), FREEDV_VERSION, SVN_REVISION);
 
     wxMessageBox(msg, wxT("About"), wxOK | wxICON_INFORMATION, this);
 }
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,9 +52,15 @@
     message(STATUS "Build type not specified, defaulting to ${CMAKE_BUILD_TYPE}")
 endif(NOT CMAKE_BUILD_TYPE)
 
+set(DEB_VERSION "" CACHE STRING "Debian packages build with this setting")
+
 # Work around for not using a svn working copy.
 add_definitions(-D_NO_AUTOTOOLS_)
 
+if (NOT (${DEB_VERSION} STREQUAL ""))
+  add_definitions(-DSVN_REVISION="${DEB_VERSION}")
+  message(STATUS "Debian FreeDV version: ${DEB_VERSION}")
+else()
 #
 # Find the svn revision if this is a working copy.
 #
@@ -72,7 +78,7 @@
 else()
     add_definitions(-DSVN_REVISION="None")
 endif()
-
+endif()
 
 # Set default build flags.
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")