svn commit: r395641 - in head/comms: . hackrf hackrf/files
Kurt Jaeger
pi at FreeBSD.org
Sun Aug 30 20:20:34 UTC 2015
Author: pi
Date: Sun Aug 30 20:20:31 2015
New Revision: 395641
URL: https://svnweb.freebsd.org/changeset/ports/395641
Log:
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 at tlen.pl>
Reviewed by: Nicolas Blais <nicblais at clkroot.net>
Added:
head/comms/hackrf/
head/comms/hackrf/Makefile (contents, props changed)
head/comms/hackrf/distinfo (contents, props changed)
head/comms/hackrf/files/
head/comms/hackrf/files/patch-host_hackrf-tools_CMakeLists.txt (contents, props changed)
head/comms/hackrf/files/patch-host_libhackrf_CMakeLists.txt (contents, props changed)
head/comms/hackrf/pkg-descr (contents, props changed)
head/comms/hackrf/pkg-plist (contents, props changed)
Modified:
head/comms/Makefile
Modified: head/comms/Makefile
==============================================================================
--- head/comms/Makefile Sun Aug 30 20:13:29 2015 (r395640)
+++ head/comms/Makefile Sun Aug 30 20:20:31 2015 (r395641)
@@ -63,6 +63,7 @@
SUBDIR += gsmlib
SUBDIR += gstreamer1-plugins-spandsp
SUBDIR += gtkmmorse
+ SUBDIR += hackrf
SUBDIR += hamfax
SUBDIR += hamlib
SUBDIR += hcidump
Added: head/comms/hackrf/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/hackrf/Makefile Sun Aug 30 20:20:31 2015 (r395641)
@@ -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 at 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>
Added: head/comms/hackrf/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/hackrf/distinfo Sun Aug 30 20:20:31 2015 (r395641)
@@ -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
Added: head/comms/hackrf/files/patch-host_hackrf-tools_CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/hackrf/files/patch-host_hackrf-tools_CMakeLists.txt Sun Aug 30 20:20:31 2015 (r395641)
@@ -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)
Added: head/comms/hackrf/files/patch-host_libhackrf_CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/hackrf/files/patch-host_libhackrf_CMakeLists.txt Sun Aug 30 20:20:31 2015 (r395641)
@@ -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)
Added: head/comms/hackrf/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/hackrf/pkg-descr Sun Aug 30 20:20:31 2015 (r395641)
@@ -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/
Added: head/comms/hackrf/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/hackrf/pkg-plist Sun Aug 30 20:20:31 2015 (r395641)
@@ -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
More information about the svn-ports-head
mailing list