mirror of https://github.com/f4exb/sdrangel.git
move to debhelper tool to create debian package
This commit is contained in:
parent
a4c8a9978a
commit
301c580b56
12
.travis.yml
12
.travis.yml
|
@ -22,9 +22,15 @@ language: cpp
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
update: true
|
update: true
|
||||||
# not needed: build-essential cmake git
|
# TODO need packages per distro
|
||||||
# need per distro
|
|
||||||
packages:
|
packages:
|
||||||
|
# needed by debuild
|
||||||
|
- build-essential
|
||||||
|
- cmake
|
||||||
|
- git
|
||||||
|
- devscripts
|
||||||
|
- fakeroot
|
||||||
|
- debhelper
|
||||||
- libfftw3-dev
|
- libfftw3-dev
|
||||||
- qtbase5-dev
|
- qtbase5-dev
|
||||||
- libqt5opengl5-dev
|
- libqt5opengl5-dev
|
||||||
|
@ -80,4 +86,4 @@ deploy:
|
||||||
repo: sdrangel-travis-ci
|
repo: sdrangel-travis-ci
|
||||||
project_name: SDRangel
|
project_name: SDRangel
|
||||||
email: rainbow@irh.it
|
email: rainbow@irh.it
|
||||||
name: rainbow
|
name: rainbow
|
||||||
|
|
|
@ -92,7 +92,8 @@ set(CPACK_SOURCE_GENERATOR "ZIP;TGZ")
|
||||||
# if we don't set build_type
|
# if we don't set build_type
|
||||||
if(NOT DEFINED CMAKE_BUILD_TYPE OR
|
if(NOT DEFINED CMAKE_BUILD_TYPE OR
|
||||||
"${CMAKE_BUILD_TYPE}" STREQUAL "" OR
|
"${CMAKE_BUILD_TYPE}" STREQUAL "" OR
|
||||||
"${CMAKE_BUILD_TYPE}" STREQUAL "MacPorts")
|
"${CMAKE_BUILD_TYPE}" STREQUAL "MacPorts" OR
|
||||||
|
"${CMAKE_BUILD_TYPE}" STREQUAL "None")
|
||||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Build type set to: ${CMAKE_BUILD_TYPE}")
|
message(STATUS "Build type set to: ${CMAKE_BUILD_TYPE}")
|
||||||
|
@ -403,6 +404,9 @@ endif()
|
||||||
# TODO maybe install readme for every plugins
|
# TODO maybe install readme for every plugins
|
||||||
if (LINUX OR APPLE)
|
if (LINUX OR APPLE)
|
||||||
install(FILES ${CMAKE_SOURCE_DIR}/Readme.md DESTINATION ${INSTALL_DOC_DIR})
|
install(FILES ${CMAKE_SOURCE_DIR}/Readme.md DESTINATION ${INSTALL_DOC_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
install(FILES ${CMAKE_SOURCE_DIR}/CHANGELOG DESTINATION ${INSTALL_DOC_DIR})
|
install(FILES ${CMAKE_SOURCE_DIR}/CHANGELOG DESTINATION ${INSTALL_DOC_DIR})
|
||||||
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION ${INSTALL_DOC_DIR})
|
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION ${INSTALL_DOC_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -107,8 +107,11 @@ Plugins = ../PlugIns
|
||||||
# TODO: code/dmg signature
|
# TODO: code/dmg signature
|
||||||
# see https://github.com/cjcliffe/CubicSDR
|
# see https://github.com/cjcliffe/CubicSDR
|
||||||
|
|
||||||
|
# NOTE: only as reference; remove in future
|
||||||
elseif(LINUX AND BUNDLE)
|
elseif(LINUX AND BUNDLE)
|
||||||
|
|
||||||
|
# NOTE: moved to debhelper tool (debian/ folder)
|
||||||
|
# useful for the moment to maintain dependencies list per distro
|
||||||
find_program (DPKG_BUILDER dpkg-buildpackage DOC "Debian package builder")
|
find_program (DPKG_BUILDER dpkg-buildpackage DOC "Debian package builder")
|
||||||
if (DPKG_BUILDER)
|
if (DPKG_BUILDER)
|
||||||
#
|
#
|
||||||
|
@ -151,11 +154,13 @@ elseif(LINUX AND BUNDLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# needed before cmake 2.8.3
|
# needed before cmake 2.8.3
|
||||||
# maybe we can move back to debian/
|
|
||||||
set(CPACK_SET_DESTDIR true)
|
set(CPACK_SET_DESTDIR true)
|
||||||
|
|
||||||
endif (DPKG_BUILDER)
|
endif (DPKG_BUILDER)
|
||||||
|
|
||||||
|
# NOTE: moved to distro tool
|
||||||
|
# for fedora see https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/
|
||||||
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/
|
||||||
find_program (RPMBUILDER rpmbuild DOC "RPM package builder")
|
find_program (RPMBUILDER rpmbuild DOC "RPM package builder")
|
||||||
if (RPMBUILDER)
|
if (RPMBUILDER)
|
||||||
list(APPEND CPACK_GENERATOR "RPM")
|
list(APPEND CPACK_GENERATOR "RPM")
|
||||||
|
|
|
@ -1,21 +1,26 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||||||
JOBS=$(sysctl -n hw.ncpu)
|
JOBS=$(sysctl -n hw.ncpu)
|
||||||
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
elif [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
||||||
JOBS=$(nproc --all)
|
JOBS=$(nproc --all)
|
||||||
else
|
else
|
||||||
JOBS=1
|
JOBS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir build && cd build
|
|
||||||
cmake .. "${CMAKE_CUSTOM_OPTIONS}"
|
|
||||||
|
|
||||||
case "${CMAKE_CUSTOM_OPTIONS}" in
|
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
||||||
*BUNDLE=ON*)
|
debuild -i -us -uc -b
|
||||||
make -j${JOBS} package
|
else
|
||||||
;;
|
mkdir build && cd build
|
||||||
*)
|
cmake .. "${CMAKE_CUSTOM_OPTIONS}"
|
||||||
make -j${JOBS}
|
|
||||||
;;
|
case "${CMAKE_CUSTOM_OPTIONS}" in
|
||||||
esac
|
*BUNDLE=ON*)
|
||||||
|
make -j${JOBS} package
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
make -j${JOBS}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
../CHANGELOG
|
|
@ -0,0 +1 @@
|
||||||
|
10
|
|
@ -0,0 +1,53 @@
|
||||||
|
Source: sdrangel
|
||||||
|
Maintainer: Edouard Griffiths, F4EXB <f4exb06@gmail.com>
|
||||||
|
Section: hamradio
|
||||||
|
Priority: optional
|
||||||
|
Standards-Version: 3.9.2
|
||||||
|
Homepage: https://github.com/f4exb/sdrangel
|
||||||
|
Build-Depends: debhelper (>= 9),
|
||||||
|
libfftw3-dev,
|
||||||
|
qtbase5-dev,
|
||||||
|
libqt5opengl5-dev,
|
||||||
|
qttools5-dev,
|
||||||
|
qttools5-dev-tools,
|
||||||
|
qtmultimedia5-dev,
|
||||||
|
libqt5multimedia5-plugins,
|
||||||
|
libusb-1.0-0-dev,
|
||||||
|
libboost-all-dev,
|
||||||
|
librtlsdr-dev,
|
||||||
|
libasound2-dev,
|
||||||
|
libopencv-dev,
|
||||||
|
libopencv-dev,
|
||||||
|
libsqlite3-dev,
|
||||||
|
libxml2-dev,
|
||||||
|
bison,
|
||||||
|
flex,
|
||||||
|
ffmpeg,
|
||||||
|
libavcodec-dev,
|
||||||
|
libavformat-dev,
|
||||||
|
libopus-dev,
|
||||||
|
libcodec2-dev,
|
||||||
|
libairspy-dev,
|
||||||
|
libhackrf-dev,
|
||||||
|
librtlsdr-dev
|
||||||
|
# TODO:
|
||||||
|
# - more dependencies based on version; newer has more devices
|
||||||
|
# - manage dependencies not present upstream
|
||||||
|
|
||||||
|
Package: sdrangel
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: SDR/Analyzer/Generator front-end for various hardware
|
||||||
|
SDR/Analyzer/Generator front-end for Airspy, BladeRF, HackRF,
|
||||||
|
RTL-SDR, FunCube, LimeSDR, PlutoSDR.
|
||||||
|
Also File source and sink for I/Q samples, network I/Q sources with
|
||||||
|
remote instance.
|
||||||
|
Based on Qt5 framework and OpenGL for the spectrum and scope rendering.
|
||||||
|
Builds on Linux, Windows and Mac O/S
|
||||||
|
Reception modes supported:
|
||||||
|
Analog: AM, ATV, NFM, WFM, SSB, broadcast FM
|
||||||
|
Digital: D-Star, Yaesu SF, DMR, dPMR, LoRa
|
||||||
|
Analyzer: Generic channel
|
||||||
|
Transmission modes supported:
|
||||||
|
Analog: AM, ATV, NFM, SSB, WFM
|
||||||
|
Homepage: https://github.com/f4exb/sdrangel
|
|
@ -0,0 +1,11 @@
|
||||||
|
# probably need to be expanded
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2012 maintech GmbH
|
||||||
|
License: GPL-3.0
|
||||||
|
|
||||||
|
Copyright: 2013 Dimitri Stolnikov
|
||||||
|
License: GPL-3.0
|
||||||
|
|
||||||
|
Copyright: 2015-2019 Edouard Griffiths F4EXB
|
||||||
|
License: GPL-3.0
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
%:
|
||||||
|
dh $@ --parallel
|
||||||
|
|
||||||
|
# FORCE_SSE41 will be not accepted upstream
|
||||||
|
override_dh_auto_configure:
|
||||||
|
dh_auto_configure -- -DFORCE_SSE41=ON
|
||||||
|
|
||||||
|
# permit the packaging with /usr/local/lib libraries (from `make install`)
|
||||||
|
# you can also use `export DEB_DH_SHLIBDEPS_ARGS_ALL=--dpkg-shlibdeps-params=--ignore-missing-info`
|
||||||
|
# not a good idea!
|
||||||
|
override_dh_shlibdeps:
|
||||||
|
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
Loading…
Reference in New Issue