Merge pull request #167 from cederom/master
Added FreeBSD support for HOST part.
This commit is contained in:
@ -56,6 +56,18 @@ Debug version:
|
|||||||
|
|
||||||
Solution file: `c:\hackrf\host\cmake\hackrf_all.sln`
|
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:
|
##How to build the host software on Linux:
|
||||||
|
|
||||||
###Prerequisites for Linux (Debian/Ubuntu):
|
###Prerequisites for Linux (Debian/Ubuntu):
|
||||||
|
@ -70,6 +70,11 @@ set(prefix ${CMAKE_INSTALL_PREFIX})
|
|||||||
set(exec_prefix \${prefix})
|
set(exec_prefix \${prefix})
|
||||||
set(libdir \${exec_prefix}/lib${LIB_SUFFIX})
|
set(libdir \${exec_prefix}/lib${LIB_SUFFIX})
|
||||||
set(includedir \${prefix}/include)
|
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(
|
CONFIGURE_FILE(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/libhackrf.pc.in
|
${CMAKE_CURRENT_SOURCE_DIR}/libhackrf.pc.in
|
||||||
@ -78,7 +83,7 @@ CONFIGURE_FILE(
|
|||||||
|
|
||||||
INSTALL(
|
INSTALL(
|
||||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/libhackrf.pc
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/libhackrf.pc
|
||||||
DESTINATION lib${LIB_SUFFIX}/pkgconfig
|
DESTINATION ${libpkgdata}/pkgconfig
|
||||||
)
|
)
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
Reference in New Issue
Block a user