diff --git a/host/README.md b/host/README.md index e03c447d..e31c5e8e 100644 --- a/host/README.md +++ b/host/README.md @@ -56,6 +56,18 @@ Debug version: Solution file: `c:\hackrf\host\cmake\hackrf_all.sln` +##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): diff --git a/host/libhackrf/CMakeLists.txt b/host/libhackrf/CMakeLists.txt index 8b003941..a248f42a 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 ) ########################################################################