# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # hackrf # hackrf/Makefile # hackrf/distinfo # hackrf/pkg-descr # hackrf/files # hackrf/files/patch-host_libhackrf_CMakeLists.txt # hackrf/pkg-plist # echo c - hackrf mkdir -p hackrf > /dev/null 2>&1 echo x - hackrf/Makefile sed 's/^X//' >hackrf/Makefile << 'e5ec32f8d4cea2eb4596f78c10477455' X# Created by: Tomasz "CeDeROM" CEDRO (http://www.tomek.cedro.info) X# $FreeBSD$ X XPORTNAME= hackrf XPORTVERSION= 2014.08.1 XCATEGORIES= comms devel hamradio science security X XMAINTAINER= cederom@tlen.pl XCOMMENT= Low cost open source hardware software radio platform X XLICENSE= GPLv2 X XUSE_GITHUB= YES XGH_ACCOUNT= mossmann XGH_TAGNAME= 69c4997 X XUSES= cmake:outsource XCMAKE_SOURCE_PATH= ${WRKSRC}/host XCMAKE_ARGS= -DLIBUSB_LIBRARIES=/usr/lib/libusb.so X XUSE_LDCONFIG= yes X X.include e5ec32f8d4cea2eb4596f78c10477455 echo x - hackrf/distinfo sed 's/^X//' >hackrf/distinfo << '5b99ee49a4467d25779f3d7a5ad8fff7' XSHA256 (mossmann-hackrf-2014.08.1-69c4997_GH0.tar.gz) = fa4c18a9108011d306e90b16866e42f908c13f3ddc47db774344c0eb053543e5 XSIZE (mossmann-hackrf-2014.08.1-69c4997_GH0.tar.gz) = 15625682 5b99ee49a4467d25779f3d7a5ad8fff7 echo x - hackrf/pkg-descr sed 's/^X//' >hackrf/pkg-descr << 'd5df29ee045c2b8e863abb842ca93813' XHackRF One from Great Scott Gadgets is a Software Defined Radio peripheral Xcapable of transmission or reception of radio signals from 10 MHz to 6 GHz. XDesigned to enable test and development of modern and next generation radio Xtechnologies, HackRF One is an open source hardware platform that can Xbe used as a USB peripheral or programmed for stand-alone operation. X XWWW: https://greatscottgadgets.com/hackrf/ d5df29ee045c2b8e863abb842ca93813 echo c - hackrf/files mkdir -p hackrf/files > /dev/null 2>&1 echo x - hackrf/files/patch-host_libhackrf_CMakeLists.txt sed 's/^X//' >hackrf/files/patch-host_libhackrf_CMakeLists.txt << 'e2ce2e5844f3b9eeea469415af24c77e' X--- host/libhackrf/CMakeLists.txt.orig 2014-08-28 17:34:30 UTC X+++ host/libhackrf/CMakeLists.txt X@@ -68,8 +68,13 @@ ENDIF(CMAKE_CROSSCOMPILING) X X set(prefix ${CMAKE_INSTALL_PREFIX}) X set(exec_prefix \${prefix}) X-set(libdir \${exec_prefix}/lib) X+set(libdir \${exec_prefix}/lib${LIB_SUFFIX}) X set(includedir \${prefix}/include) X+set(libpkgdata "lib"${LIB_SUFFIX}) X+ X+if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") X+ set(libpkgdata "libdata") X+endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") X X CONFIGURE_FILE( X ${CMAKE_CURRENT_SOURCE_DIR}/libhackrf.pc.in X@@ -78,7 +83,7 @@ CONFIGURE_FILE( X X INSTALL( X FILES ${CMAKE_CURRENT_BINARY_DIR}/libhackrf.pc X- DESTINATION lib/pkgconfig X+ DESTINATION ${libpkgdata}/pkgconfig X ) X X ######################################################################## X@@ -100,9 +105,13 @@ endif() X ######################################################################## X option(INSTALL_UDEV_RULES "Install udev rules for HackRF" OFF) X if (INSTALL_UDEV_RULES) X+ if (NOT UDEV_INSTALL_DIR) X+ set (UDEV_INSTALL_DIR "/etc/udev/rules.d") X+ endif (NOT UDEV_INSTALL_DIR) X+ X install ( X FILES 53-hackrf.rules X- DESTINATION "/etc/udev/rules.d" X+ DESTINATION ${UDEV_INSTALL_DIR} X COMPONENT "udev" X ) X else (INSTALL_UDEV_RULES) e2ce2e5844f3b9eeea469415af24c77e echo x - hackrf/pkg-plist sed 's/^X//' >hackrf/pkg-plist << 'f4996e0ab112e937408e48602b099f88' Xbin/hackrf_cpldjtag Xbin/hackrf_info Xbin/hackrf_max2837 Xbin/hackrf_rffc5071 Xbin/hackrf_si5351c Xbin/hackrf_spiflash Xbin/hackrf_transfer Xinclude/libhackrf/hackrf.h Xlib/libhackrf.a Xlib/libhackrf.so Xlib/libhackrf.so.0 Xlib/libhackrf.so.0.3.0 Xlibdata/pkgconfig/libhackrf.pc f4996e0ab112e937408e48602b099f88 exit