From 4592d38871e4250adf74ea8789ee0291538734d3 Mon Sep 17 00:00:00 2001 From: Tomasz CEDRO Date: Wed, 8 Apr 2015 03:16:39 +0200 Subject: [PATCH 1/2] Fixed pkgdata install path on FreeBSD. Signed-off-by: Tomasz CEDRO --- host/libhackrf/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/host/libhackrf/CMakeLists.txt b/host/libhackrf/CMakeLists.txt index 4f1ec642..b5134f84 100644 --- a/host/libhackrf/CMakeLists.txt +++ b/host/libhackrf/CMakeLists.txt @@ -70,6 +70,11 @@ set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix \${prefix}) 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${LIB_SUFFIX}/pkgconfig + DESTINATION ${libpkgdata}/pkgconfig ) ######################################################################## From 4dc991e79dfd0b4bd4a4456da6df2c2c24152126 Mon Sep 17 00:00:00 2001 From: Tomasz CEDRO Date: Wed, 8 Apr 2015 03:27:43 +0200 Subject: [PATCH 2/2] Added information on FreeBSD build. Signed-off-by: Tomasz CEDRO --- host/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/host/README.md b/host/README.md index 56de42ed..1f3a0b13 100644 --- a/host/README.md +++ b/host/README.md @@ -52,6 +52,18 @@ Debug version: `make install` +##How to build host the software on FreeBSD + +[Tomek "CeDeROM" CEDRO](http://www.tomek.cedro.info) is working on a Port for you - stay tuned! :-) + +You can use the binary package: +`# pkg install hackrf` + +You can build and install from ports: +`# cd /usr/ports/comms/hackrf` +`# make install` + + ##How to build the host software on Linux: ###Prerequisites for Linux (Debian/Ubuntu):