2 set(CORE_MAIN_SOURCE ${CMAKE_SOURCE_DIR}/xbmc/platform/posix/main.cpp)
4 set(ARCH_DEFINES -DTARGET_POSIX -DTARGET_FREEBSD)
5 set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_LARGEFILE64_SOURCE
6 -D_FILE_OFFSET_BITS=64 -DHAS_OSS)
7 set(PLATFORM_DIR platform/linux)
8 set(PLATFORMDEFS_DIR platform/posix)
9 set(SYSTEM_LDFLAGS -L/usr/local/lib)
11 set(ARCH ${WITH_ARCH})
13 if(CMAKE_SYSTEM_PROCESSOR STREQUAL amd64)
14 set(ARCH x86_64-freebsd)
15 elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i.86")
17 elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL armv6)
18 set(ARCH armv6-freebsd)
20 elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL armv7)
21 set(ARCH armv7-freebsd)
23 elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)
24 set(ARCH aarch64-freebsd)
27 message(WARNING "unknown CPU: ${CPU}")
31 # Disable ALSA by default
33 option(ENABLE_ALSA "Enable alsa support?" OFF)
36 # Additional SYSTEM_DEFINES
37 list(APPEND SYSTEM_DEFINES -DHAS_POSIX_NETWORK -DHAS_FREEBSD_NETWORK)
40 if(NOT USE_INTERNAL_LIBS)
42 set(USE_INTERNAL_LIBS ON)
44 set(USE_INTERNAL_LIBS OFF)