--- cmake/TrenchBroomApp.cmake.orig 2017-01-12 18:19:20 UTC +++ cmake/TrenchBroomApp.cmake @@ -166,7 +166,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux|F SET_TARGET_PROPERTIES(TrenchBroom PROPERTIES OUTPUT_NAME "trenchbroom") ENDIF() -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD") # Copy application icon to resources directory ADD_CUSTOM_COMMAND(TARGET TrenchBroom POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy "${APP_DIR}/resources/linux/icons/icon_16.png" "$/Resources/AppIcon.png" --- common/src/IO/SystemPaths.cpp.orig 2017-01-12 18:19:20 UTC +++ common/src/IO/SystemPaths.cpp @@ -32,7 +32,7 @@ namespace TrenchBroom { return IO::Path(wxStandardPaths::Get().GetExecutablePath().ToStdString()).deleteLastComponent(); } -#if defined __linux__ +#if defined __linux__ || defined __FreeBSD__ static bool getDevMode() { wxString value; if (!wxGetEnv("TB_DEV_MODE", &value)) @@ -42,7 +42,7 @@ namespace TrenchBroom { #endif Path resourceDirectory() { -#if defined __linux__ +#if defined __linux__ || defined __FreeBSD__ static const bool DevMode = getDevMode(); if (DevMode) return appDirectory();