diff options
| author | hibby <d@vehibberd.com> | 2018-02-20 22:07:12 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-20 22:14:46 +0000 |
| commit | 8c0cc3e82be3baaaefeb5599ad2aea43b5710697 (patch) | |
| tree | 9823430006dd1320c6ed5f0f29fd708a626d079b | |
| parent | 056d3b2d6f029ba1a360e433c0f83e8d8b804e75 (diff) | |
These are the changes that needed done to make it build.
| -rw-r--r-- | debian/CMakeLists.txt | 39 | ||||
| -rw-r--r-- | debian/README.source | 10 | ||||
| -rw-r--r-- | debian/changelog | 6 | ||||
| -rw-r--r-- | debian/control | 5 | ||||
| -rw-r--r-- | debian/install | 4 | ||||
| -rw-r--r-- | debian/manpages | 1 | ||||
| -rw-r--r-- | debian/patches/0006-cmake-modifications.patch | 35 | ||||
| -rw-r--r-- | debian/patches/series | 1 | ||||
| -rwxr-xr-x | debian/rules | 29 |
9 files changed, 49 insertions, 81 deletions
diff --git a/debian/CMakeLists.txt b/debian/CMakeLists.txt deleted file mode 100644 index 8a272735..00000000 --- a/debian/CMakeLists.txt +++ /dev/null @@ -1,39 +0,0 @@ -find_program (GZIP_EXECUTABLE NAMES gzip) - -string (TIMESTAMP ts "%w, %d [%m] %Y %H:%M:%S +0000" UTC) - -set (__days Sun Mon Tue Wed Thu Fri Sat) -string (SUBSTRING ${ts} 0 1 __index) -list (GET __days ${__index} __day) -string (REPLACE "${__index}," "${__day}," ts ${ts}) - -set (__months Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec) -string (SUBSTRING ${ts} 9 2 __month_index) -math (EXPR __index "${__month_index} - 1") -list (GET __months "${__index}" __month) -string (REPLACE "[${__month_index}]" "${__month}" ts ${ts}) - -set (deb_changelog changelog.Debian) -configure_file ( - "${CMAKE_CURRENT_SOURCE_DIR}/${deb_changelog}.in" - "${CMAKE_CURRENT_BINARY_DIR}/${deb_changelog}" - @ONLY) - -add_custom_target (debian - COMMAND ${GZIP_EXECUTABLE} -cf9 ${deb_changelog} > ${deb_changelog}.gz - DEPENDS ${deb_changelog}.in - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMENT "Compressing Debian changelog" - ) - -configure_file ( - "${CMAKE_CURRENT_SOURCE_DIR}/copyright.in" - "${CMAKE_CURRENT_BINARY_DIR}/copyright" - @ONLY) - -install (FILES - ${CMAKE_CURRENT_BINARY_DIR}/${deb_changelog}.gz - ${CMAKE_CURRENT_BINARY_DIR}/copyright - DESTINATION ${WSJT_SHARE_DESTINATION}/${WSJT_DOC_DESTINATION} - #COMPONENT Debian - ) diff --git a/debian/README.source b/debian/README.source index 8b4cf4d8..d12c0789 100644 --- a/debian/README.source +++ b/debian/README.source @@ -1,12 +1,16 @@ wsjtx for Debian ---------------- -1. Source was obtained w/ svn co svn://svn.berlios.de/wsjt/branches/wsjtx +1. Source came from https://physics.princeton.edu/pulsar/k1jt/wsjtx.html -2. These files were removed before creating the .orig.tar.gz file: - rm -r .svn LICENSE_WHEATLEY.TXT libfftw3f_win.a libHRDInterface001.a libpskreporter.a WSJT-X_Users_Guide_v1.1.docx +2. The only file kept from the upstream tarball was src/wsjtx.tgz. This archive +forms our wsjtx-1.8.0+repack.orig.tar.gz archive unmodified. 3. wsjt.png was added, converted from wsjt.ico. 4. Other files were added as debian/patches, esp. the wsjt startup script. +5. CMakeLists.txt has had extensive patches - to make sure that we don't +install self-built hamlib and don't faff about with manpages. + +6. Manpages in the debian/ folder are from the upstream tarball. diff --git a/debian/changelog b/debian/changelog index 4c3ce610..f4d5aaec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,6 @@ wsjtx (1.8.0+repack-1) UNRELEASED; urgency=medium - [ Iain R. Learmonth ] - * New upstream release. - - [ Dave Hibberd ] - * + * New Upstream Release -- Dave Hibberd <d@vehibberd.com> Fri, 16 Feb 2018 15:25:57 +0000 diff --git a/debian/control b/debian/control index 1a3c25b1..70517567 100644 --- a/debian/control +++ b/debian/control @@ -16,11 +16,12 @@ Build-Depends: debhelper (>= 11), libhamlib-dev, libqwt-dev, libsamplerate0-dev, - portaudio19-dev (>= 19+svn20111121-1~), + portaudio19-dev, python-all, asciidoc, asciidoctor, - texinfo + texinfo, + libudev-dev Standards-Version: 4.1.3 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-hamradio/wsjtx.git Vcs-Git: git://anonscm.debian.org/pkg-hamradio/wsjtx.git diff --git a/debian/install b/debian/install index 27dc4eb0..edb4c44a 100644 --- a/debian/install +++ b/debian/install @@ -1,8 +1,6 @@ -wsjtx /usr/bin/ *.txt /usr/share/wsjtx/.wsjtx/ *.dat /usr/share/wsjtx/.wsjtx/ debian/130418_1742.wav /usr/share/wsjtx/.wsjtx/save/Samples/ -wsjtx_install/jt9 /usr/lib/wsjtx/ -wsjtx_install/wsjtx /usr/lib/wsjtx/ wsjtx.desktop /usr/share/applications/ +message_aggregator.desktop /usr/share/applications/ debian/wsjtx.png /usr/share/pixmaps/ diff --git a/debian/manpages b/debian/manpages index cd705432..e69de29b 100644 --- a/debian/manpages +++ b/debian/manpages @@ -1 +0,0 @@ -wsjtx.1 diff --git a/debian/patches/0006-cmake-modifications.patch b/debian/patches/0006-cmake-modifications.patch index a096d8a3..052af4e5 100644 --- a/debian/patches/0006-cmake-modifications.patch +++ b/debian/patches/0006-cmake-modifications.patch @@ -1,7 +1,17 @@ +Description: Remove the bits of CMakeLists.txt we don't need +Author: Dave Hibberd <d@vehibberd.com> +Last-Update: 2018-02-20 + --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -1374,8 +1374,8 @@ - add_dependencies (wsjtx manpages) +@@ -1370,12 +1370,12 @@ + + if (UNIX) + if (NOT WSJT_SKIP_MANPAGES) +- add_subdirectory (manpages) +- add_dependencies (wsjtx manpages) ++ #add_subdirectory (manpages) ++ #add_dependencies (wsjtx manpages) endif (NOT WSJT_SKIP_MANPAGES) if (NOT APPLE) - add_subdirectory (debian) @@ -11,6 +21,27 @@ endif (NOT APPLE) endif (UNIX) +@@ -1415,20 +1415,6 @@ + BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime + ) + +-install (PROGRAMS +- ${RIGCTL_EXE} +- DESTINATION ${CMAKE_INSTALL_BINDIR} +- #COMPONENT runtime +- RENAME rigctl-wsjtx${CMAKE_EXECUTABLE_SUFFIX} +- ) +- +-install (PROGRAMS +- ${RIGCTLD_EXE} +- DESTINATION ${CMAKE_INSTALL_BINDIR} +- #COMPONENT runtime +- RENAME rigctld-wsjtx${CMAKE_EXECUTABLE_SUFFIX} +- ) +- + install (FILES + README + COPYING --- a/wsjtx.pro +++ b/wsjtx.pro @@ -13,7 +13,7 @@ diff --git a/debian/patches/series b/debian/patches/series index 080dce99..20303b48 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,4 @@ 0001-add-start-script.patch -0002-add-manpage.patch 0003-no-escape-buildroot.patch 0004-inherit-cflags-fflags.patch 0005-fix-fortran-includes.patch diff --git a/debian/rules b/debian/rules index 15131536..85de1bad 100755 --- a/debian/rules +++ b/debian/rules @@ -11,32 +11,11 @@ # build-arch and build-indep targets by Bill Allombert 2001 # Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# This has to be exported to make some magic below work. -export DH_OPTIONS - -# enable hardening-wrapper -export DEB_BUILD_HARDENING=1 -export DEB_BUILD_HARDENING_FORMAT=1 -export DEB_BUILD_HARDENING_FORTIFY=1 -export DEB_BUILD_HARDENING_STACKPROTECTOR=1 -# PIE causes wsjtx to seg fault immediately -export DEB_BUILD_HARDENING_PIE=0 -export DEB_BUILD_HARDENING_RELRO=1 -export DEB_BUILD_HARDENING_BINDNOW=1 - +export DH_VERBOSE=1 +# This ensures that cmake uses debian's version of hamlib export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 - -override_dh_auto_configure: - echo "running debian/rules/override_dh_auto_configure" - cmake . - qmake -qt=5 - -override_dh_auto_build: - echo "running debian/rules/override_dh_auto_build" - cd lib; make -f Makefile.linux - make +# Belt and Braces +export WSJT_SKIP_MANPAGES=1 %: dh $@ |
