Merge pull request #167 from cederom/master

Added FreeBSD support for HOST part.
This commit is contained in:
Michael Ossmann
2015-07-08 15:59:56 -06:00
2 changed files with 18 additions and 1 deletions

View File

@ -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):

View File

@ -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
)
########################################################################