Add software
This commit is contained in:
9
Software/CubicSDR/cmake/CubicSDR.desktop.in
Normal file
9
Software/CubicSDR/cmake/CubicSDR.desktop.in
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Exec=CubicSDR %u
|
||||
Icon=@CMAKE_INSTALL_PREFIX@/share/cubicsdr/CubicSDR.png
|
||||
Terminal=false
|
||||
Name=CubicSDR
|
||||
GenericName=CubicSDR
|
||||
Comment=Software-Defined Radio Application
|
||||
Categories=Science;HamRadio;DataVisualization;
|
40
Software/CubicSDR/cmake/CubicSDRInfo.plist.in
Normal file
40
Software/CubicSDR/cmake/CubicSDRInfo.plist.in
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>${MACOSX_BUNDLE_INFO_STRING}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>${MACOSX_BUNDLE_ICON_FILE}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleLongVersionString</key>
|
||||
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
<key>LSRequiresCarbon</key>
|
||||
<true/>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
50
Software/CubicSDR/cmake/Modules/FindJack.cmake
Normal file
50
Software/CubicSDR/cmake/Modules/FindJack.cmake
Normal file
@ -0,0 +1,50 @@
|
||||
# Try to find JACK
|
||||
# This will define the following variables:
|
||||
#
|
||||
# JACK_FOUND - Whether Jack was found.
|
||||
# JACK_INCLUDE_DIRS - Jack include directories.
|
||||
# JACK_LIBRARIES - Jack libraries.
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
if(JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
|
||||
|
||||
# in cache already
|
||||
set(JACK_FOUND TRUE)
|
||||
|
||||
else()
|
||||
|
||||
find_package(PkgConfig)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(_JACK jack)
|
||||
endif(PKG_CONFIG_FOUND)
|
||||
|
||||
find_path(JACK_INCLUDE_DIR
|
||||
NAMES
|
||||
jack/jack.h
|
||||
PATHS
|
||||
${_JACK_INCLUDEDIR}
|
||||
)
|
||||
|
||||
find_library(JACK_LIBRARY
|
||||
NAMES
|
||||
jack
|
||||
PATHS
|
||||
${_JACK_LIBDIR}
|
||||
)
|
||||
|
||||
set(JACK_INCLUDE_DIRS
|
||||
${JACK_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
set(JACK_LIBRARIES
|
||||
${JACK_LIBRARY}
|
||||
)
|
||||
|
||||
find_package_handle_standard_args(Jack DEFAULT_MSG JACK_LIBRARIES JACK_INCLUDE_DIRS)
|
||||
|
||||
# show the JACK_INCLUDE_DIRS and JACK_LIBRARIES variables only in the advanced view
|
||||
mark_as_advanced(JACK_INCLUDE_DIR JACK_LIBRARY JACK_INCLUDE_DIRS JACK_LIBRARIES)
|
||||
|
||||
endif()
|
||||
|
22
Software/CubicSDR/cmake/Modules/FindLiquid.cmake
Normal file
22
Software/CubicSDR/cmake/Modules/FindLiquid.cmake
Normal file
@ -0,0 +1,22 @@
|
||||
# - Find LIQUID
|
||||
# Find the native LIQUID includes and library
|
||||
#
|
||||
# LIQUID_INCLUDES - where to find LIQUID.h
|
||||
# LIQUID_LIBRARIES - List of libraries when using LIQUID.
|
||||
# LIQUID_FOUND - True if LIQUID found.
|
||||
|
||||
if (LIQUID_INCLUDES)
|
||||
# Already in cache, be silent
|
||||
set (LIQUID_FIND_QUIETLY TRUE)
|
||||
endif (LIQUID_INCLUDES)
|
||||
|
||||
find_path (LIQUID_INCLUDES liquid/liquid.h)
|
||||
|
||||
find_library (LIQUID_LIBRARIES NAMES liquid)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set LIQUID_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args (LIQUID DEFAULT_MSG LIQUID_LIBRARIES LIQUID_INCLUDES)
|
||||
|
||||
#mark_as_advanced (LIQUID_LIBRARIES LIQUID_INCLUDES)
|
48
Software/CubicSDR/cmake/Modules/FindRtAudio.cmake
Normal file
48
Software/CubicSDR/cmake/Modules/FindRtAudio.cmake
Normal file
@ -0,0 +1,48 @@
|
||||
# https://github.com/idiap/juicer/blob/master/cmake/FindRtAudio.cmake
|
||||
#
|
||||
# Copyright 2015 by Idiap Research Institute
|
||||
#
|
||||
# Licensed under 3-clause BSD.
|
||||
#
|
||||
# Author(s):
|
||||
# Phil Garner, November 2015
|
||||
#
|
||||
# ...but basically copied from FindSndFile in libube, in turn from the examples
|
||||
# on the web.
|
||||
#
|
||||
|
||||
#
|
||||
# Try to find RtAudio
|
||||
# Once done this will define
|
||||
# RTAUDIO_FOUND - System has RtAudio
|
||||
# RTAUDIO_INCLUDE_DIR - The RtAudio include directories
|
||||
# RTAUDIO_LIBRARIES - The libraries needed to use RtAudio
|
||||
# RTAUDIO_DEFINITIONS - Compiler switches required for using RtAudio
|
||||
# RTAUDIO_VERSION_STRING - the version of RtAudio found
|
||||
#
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PC_RTAUDIO rtaudio)
|
||||
|
||||
set(RTAUDIO_DEFINITIONS ${PC_RTAUDIO_CFLAGS_OTHER})
|
||||
set(RTAUDIO_VERSION_STRING ${PC_RTAUDIO_VERSION})
|
||||
|
||||
find_path(
|
||||
RTAUDIO_INCLUDE_DIR RtAudio.h
|
||||
HINTS ${PC_RTAUDIO_INCLUDEDIR} ${PC_RTAUDIO_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
find_library(
|
||||
RTAUDIO_LIBRARIES NAMES rtaudio
|
||||
HINTS ${PC_RTAUDIO_LIBDIR} ${PC_RTAUDIO_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(
|
||||
RtAudio
|
||||
REQUIRED_VARS RTAUDIO_LIBRARIES RTAUDIO_INCLUDE_DIR
|
||||
VERSION_VAR RTAUDIO_VERSION_STRING
|
||||
)
|
||||
|
||||
#mark_as_advanced(RTAUDIO_INCLUDE_DIR RTAUDIO_LIBRARIES)
|
||||
|
77
Software/CubicSDR/cmake/Modules/Findhamlib.cmake
Normal file
77
Software/CubicSDR/cmake/Modules/Findhamlib.cmake
Normal file
@ -0,0 +1,77 @@
|
||||
# - Try to find Hamlib
|
||||
# Author: George L. Emigh - AB4BD
|
||||
#
|
||||
# Change Log: Charles J. Cliffe <cj@cubicproductions.com>
|
||||
# Updates:
|
||||
# Jan 2015 - Add /opt/ paths for OSX MacPorts
|
||||
# - Fix HAMLIB_INCLUDE_DIR absolute search
|
||||
# - Add static lib support
|
||||
# TODO:
|
||||
# Windows support
|
||||
#
|
||||
# HAMLIB_FOUND - system has Hamlib
|
||||
# HAMLIB_LIBRARY - location of the library for hamlib
|
||||
# HAMLIB_INCLUDE_DIR - location of the include files for hamlib
|
||||
|
||||
set(HAMLIB_FOUND FALSE)
|
||||
|
||||
find_path(HAMLIB_INCLUDE_DIR
|
||||
NAMES hamlib/rig.h
|
||||
PATHS
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/opt/local/include
|
||||
)
|
||||
|
||||
find_library(HAMLIB_LIBRARY
|
||||
NAMES hamlib
|
||||
PATHS
|
||||
/usr/lib64/hamlib
|
||||
/usr/lib/hamlib
|
||||
/usr/lib64
|
||||
/usr/lib
|
||||
/usr/local/lib64/hamlib
|
||||
/usr/local/lib/hamlib
|
||||
/usr/local/lib64
|
||||
/usr/local/lib
|
||||
/opt/local/lib
|
||||
/opt/local/lib/hamlib
|
||||
)
|
||||
|
||||
find_library(HAMLIB_STATIC_LIBRARY
|
||||
NAMES libhamlib.a
|
||||
PATHS
|
||||
/usr/lib64/hamlib
|
||||
/usr/lib/hamlib
|
||||
/usr/lib64
|
||||
/usr/lib
|
||||
/usr/local/lib64/hamlib
|
||||
/usr/local/lib/hamlib
|
||||
/usr/local/lib64
|
||||
/usr/local/lib
|
||||
/opt/local/lib
|
||||
/opt/local/lib/hamlib
|
||||
)
|
||||
|
||||
GET_FILENAME_COMPONENT(HAMLIB_LIB_FOLDER ${HAMLIB_STATIC_LIBRARY} DIRECTORY)
|
||||
|
||||
file(GLOB HAMLIB_STATIC_MODS ${HAMLIB_LIB_FOLDER}/hamlib-*.a)
|
||||
|
||||
if(HAMLIB_INCLUDE_DIR AND HAMLIB_LIBRARY)
|
||||
set(HAMLIB_FOUND TRUE)
|
||||
# message(STATUS "Hamlib version: ${VERSION}")
|
||||
message(STATUS "Found hamlib library at: ${HAMLIB_LIBRARY}")
|
||||
message(STATUS "Found hamlib static library at: ${HAMLIB_STATIC_LIBRARY}")
|
||||
message(STATUS "Found hamlib static modules: ${HAMLIB_STATIC_MODS}")
|
||||
message(STATUS "Found hamlib include directory at: ${HAMLIB_INCLUDE_DIR}")
|
||||
endif(HAMLIB_INCLUDE_DIR AND HAMLIB_LIBRARY)
|
||||
|
||||
IF(NOT HAMLIB_FOUND)
|
||||
IF(NOT HAMLIB_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "HAMLIB was not found.")
|
||||
ELSE(NOT HAMLIB_FIND_QUIETLY)
|
||||
IF(HAMLIB_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "HAMLIB was not found.")
|
||||
ENDIF(HAMLIB_FIND_REQUIRED)
|
||||
ENDIF(NOT HAMLIB_FIND_QUIETLY)
|
||||
ENDIF(NOT HAMLIB_FOUND)
|
22
Software/CubicSDR/cmake/cmake_uninstall.cmake.in
Normal file
22
Software/CubicSDR/cmake/cmake_uninstall.cmake.in
Normal file
@ -0,0 +1,22 @@
|
||||
IF(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt")
|
||||
MESSAGE(FATAL_ERROR "Cannot find install manifest: '${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt'")
|
||||
ENDIF(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt")
|
||||
|
||||
FILE(READ "${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt" files)
|
||||
STRING(REGEX REPLACE " " ";" files "${files}")
|
||||
STRING(REGEX REPLACE "\n" ";" files "${files}")
|
||||
FOREACH(file ${files})
|
||||
MESSAGE(STATUS "Uninstalling '$ENV{DESTDIR}${file}'")
|
||||
IF(EXISTS "$ENV{DESTDIR}${file}")
|
||||
EXEC_PROGRAM(
|
||||
"${CMAKE_COMMAND}" ARGS "-E remove '$ENV{DESTDIR}${file}'"
|
||||
OUTPUT_VARIABLE rm_out
|
||||
RETURN_VALUE rm_retval
|
||||
)
|
||||
IF(NOT "${rm_retval}" STREQUAL 0)
|
||||
MESSAGE(FATAL_ERROR "Problem when removing '$ENV{DESTDIR}${file}'")
|
||||
ENDIF(NOT "${rm_retval}" STREQUAL 0)
|
||||
ELSE(EXISTS "$ENV{DESTDIR}${file}")
|
||||
MESSAGE(STATUS "File '$ENV{DESTDIR}${file}' does not exist.")
|
||||
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
|
||||
ENDFOREACH(file)
|
11
Software/CubicSDR/cmake/code_sign.sh.in
Normal file
11
Software/CubicSDR/cmake/code_sign.sh.in
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
for f in ${APPS}/Contents/MacOS/*.dylib
|
||||
do
|
||||
/usr/bin/codesign --force --verify --verbose --sign "${CUBICSDR_CERT}" $f
|
||||
done
|
||||
for f in ${APPS}/Contents/MacOS/modules/*.so
|
||||
do
|
||||
/usr/bin/codesign --force --verify --verbose --sign "${CUBICSDR_CERT}" $f
|
||||
done
|
||||
|
||||
/usr/bin/codesign --force --verify --verbose --sign "${CUBICSDR_CERT}" ${APPS}
|
2
Software/CubicSDR/cmake/dmg_sign.sh.in
Normal file
2
Software/CubicSDR/cmake/dmg_sign.sh.in
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
/usr/bin/codesign --force --verify --verbose --sign "${CUBICSDR_CERT}" CubicSDR-${CPACK_PACKAGE_VERSION}-Darwin.dmg
|
Reference in New Issue
Block a user