diff options
author | pi <pi@FreeBSD.org> | 2015-08-31 04:20:31 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2015-08-31 04:20:31 +0800 |
commit | 808b8617b7beef17e91450688de09b92371fe60e (patch) | |
tree | d8e2226b28d12fcf1b5038819c07e675ed0ee127 /comms | |
parent | f79d71c1d4f8ea87ac123fabae20ececa045df6e (diff) | |
download | freebsd-ports-gnome-808b8617b7beef17e91450688de09b92371fe60e.tar.gz freebsd-ports-gnome-808b8617b7beef17e91450688de09b92371fe60e.tar.zst freebsd-ports-gnome-808b8617b7beef17e91450688de09b92371fe60e.zip |
New port: comms/hackrf
HackRF One from Great Scott Gadgets is a Software Defined Radio peripheral
capable of transmission or reception of radio signals from 10 MHz to 6 GHz.
Designed to enable test and development of modern and next generation radio
technologies, HackRF One is an open source hardware platform that can
be used as a USB peripheral or programmed for stand-alone operation.
WWW: https://greatscottgadgets.com/hackrf/
PR: 199281
Submitted by: Tomek CEDRO <cederom@tlen.pl>
Reviewed by: Nicolas Blais <nicblais@clkroot.net>
Diffstat (limited to 'comms')
-rw-r--r-- | comms/Makefile | 1 | ||||
-rw-r--r-- | comms/hackrf/Makefile | 23 | ||||
-rw-r--r-- | comms/hackrf/distinfo | 2 | ||||
-rw-r--r-- | comms/hackrf/files/patch-host_hackrf-tools_CMakeLists.txt | 11 | ||||
-rw-r--r-- | comms/hackrf/files/patch-host_libhackrf_CMakeLists.txt | 50 | ||||
-rw-r--r-- | comms/hackrf/pkg-descr | 7 | ||||
-rw-r--r-- | comms/hackrf/pkg-plist | 13 |
7 files changed, 107 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile index 8898c600ab7c..56ac881977dc 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -63,6 +63,7 @@ SUBDIR += gsmlib SUBDIR += gstreamer1-plugins-spandsp SUBDIR += gtkmmorse + SUBDIR += hackrf SUBDIR += hamfax SUBDIR += hamlib SUBDIR += hcidump diff --git a/comms/hackrf/Makefile b/comms/hackrf/Makefile new file mode 100644 index 000000000000..b8dd7d232103 --- /dev/null +++ b/comms/hackrf/Makefile @@ -0,0 +1,23 @@ +# Created by: Tomasz "CeDeROM" CEDRO (http://www.tomek.cedro.info) +# $FreeBSD$ + +PORTNAME= hackrf +PORTVERSION= 2015.07.2 +CATEGORIES= comms devel hamradio science security + +MAINTAINER= cederom@tlen.pl +COMMENT= Low cost open source hardware software radio platform + +LICENSE= GPLv2 + +USE_GITHUB= YES +GH_ACCOUNT= mossmann +GH_TAGNAME= 69c4997 + +USES= cmake:outsource +CMAKE_SOURCE_PATH= ${WRKSRC}/host +CMAKE_ARGS= -DLIBUSB_LIBRARIES=/usr/lib/libusb.so + +USE_LDCONFIG= yes + +.include <bsd.port.mk> diff --git a/comms/hackrf/distinfo b/comms/hackrf/distinfo new file mode 100644 index 000000000000..4215cd75812f --- /dev/null +++ b/comms/hackrf/distinfo @@ -0,0 +1,2 @@ +SHA256 (mossmann-hackrf-2015.07.2-69c4997_GH0.tar.gz) = fa4c18a9108011d306e90b16866e42f908c13f3ddc47db774344c0eb053543e5 +SIZE (mossmann-hackrf-2015.07.2-69c4997_GH0.tar.gz) = 15625682 diff --git a/comms/hackrf/files/patch-host_hackrf-tools_CMakeLists.txt b/comms/hackrf/files/patch-host_hackrf-tools_CMakeLists.txt new file mode 100644 index 000000000000..039c51a9e5f1 --- /dev/null +++ b/comms/hackrf/files/patch-host_hackrf-tools_CMakeLists.txt @@ -0,0 +1,11 @@ +--- host/hackrf-tools/CMakeLists.txt.orig 2015-08-30 19:34:41 UTC ++++ host/hackrf-tools/CMakeLists.txt +@@ -35,7 +35,7 @@ include_directories(getopt) + add_definitions(/D _CRT_SECURE_NO_WARNINGS) + else() + add_definitions(-Wall) +-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90") ++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") + endif() + + if(NOT libhackrf_SOURCE_DIR) diff --git a/comms/hackrf/files/patch-host_libhackrf_CMakeLists.txt b/comms/hackrf/files/patch-host_libhackrf_CMakeLists.txt new file mode 100644 index 000000000000..98b9badbcba2 --- /dev/null +++ b/comms/hackrf/files/patch-host_libhackrf_CMakeLists.txt @@ -0,0 +1,50 @@ +--- host/libhackrf/CMakeLists.txt.orig 2014-08-28 17:34:30 UTC ++++ host/libhackrf/CMakeLists.txt +@@ -34,7 +34,7 @@ if(MSVC) + set(THREADS_USE_PTHREADS_WIN32 true) + else() + add_definitions(-Wall) +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") + + INCLUDE(TestBigEndian) + TEST_BIG_ENDIAN(BIGENDIAN) +@@ -68,8 +68,13 @@ ENDIF(CMAKE_CROSSCOMPILING) + + set(prefix ${CMAKE_INSTALL_PREFIX}) + set(exec_prefix \${prefix}) +-set(libdir \${exec_prefix}/lib) ++set(libdir \${exec_prefix}/lib${LIB_SUFFIX}) + set(includedir \${prefix}/include) ++set(libpkgdata "lib"${LIB_SUFFIX}) ++ ++if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") ++ set(libpkgdata "libdata") ++endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/libhackrf.pc.in +@@ -78,7 +83,7 @@ CONFIGURE_FILE( + + INSTALL( + FILES ${CMAKE_CURRENT_BINARY_DIR}/libhackrf.pc +- DESTINATION lib/pkgconfig ++ DESTINATION ${libpkgdata}/pkgconfig + ) + + ######################################################################## +@@ -100,9 +105,13 @@ endif() + ######################################################################## + option(INSTALL_UDEV_RULES "Install udev rules for HackRF" OFF) + if (INSTALL_UDEV_RULES) ++ if (NOT UDEV_INSTALL_DIR) ++ set (UDEV_INSTALL_DIR "/etc/udev/rules.d") ++ endif (NOT UDEV_INSTALL_DIR) ++ + install ( + FILES 53-hackrf.rules +- DESTINATION "/etc/udev/rules.d" ++ DESTINATION ${UDEV_INSTALL_DIR} + COMPONENT "udev" + ) + else (INSTALL_UDEV_RULES) diff --git a/comms/hackrf/pkg-descr b/comms/hackrf/pkg-descr new file mode 100644 index 000000000000..663b63e82021 --- /dev/null +++ b/comms/hackrf/pkg-descr @@ -0,0 +1,7 @@ +HackRF One from Great Scott Gadgets is a Software Defined Radio peripheral +capable of transmission or reception of radio signals from 10 MHz to 6 GHz. +Designed to enable test and development of modern and next generation radio +technologies, HackRF One is an open source hardware platform that can +be used as a USB peripheral or programmed for stand-alone operation. + +WWW: https://greatscottgadgets.com/hackrf/ diff --git a/comms/hackrf/pkg-plist b/comms/hackrf/pkg-plist new file mode 100644 index 000000000000..abe33b5f6e56 --- /dev/null +++ b/comms/hackrf/pkg-plist @@ -0,0 +1,13 @@ +bin/hackrf_cpldjtag +bin/hackrf_info +bin/hackrf_max2837 +bin/hackrf_rffc5071 +bin/hackrf_si5351c +bin/hackrf_spiflash +bin/hackrf_transfer +include/libhackrf/hackrf.h +lib/libhackrf.a +lib/libhackrf.so +lib/libhackrf.so.0 +lib/libhackrf.so.0.3.0 +libdata/pkgconfig/libhackrf.pc |