5 changed files with 111 additions and 1 deletions
@ -0,0 +1,20 @@
|
||||
# ASAN and UBSAN are not supported by macports gcc14 on PowerPC. |
||||
set(ASAN OFF) |
||||
set(UBSAN OFF) |
||||
|
||||
# SDL2 does not build for Tiger, so we use SDL1 instead. |
||||
set(USE_SDL1 ON) |
||||
|
||||
# ZeroTier is yet to be tested. |
||||
set(DISABLE_ZERO_TIER ON) |
||||
|
||||
# Use vendored libfmt until this issue is resolved: |
||||
# https://trac.macports.org/ticket/71503 |
||||
set(DEVILUTIONX_SYSTEM_LIBFMT OFF) |
||||
set(DEVILUTIONX_STATIC_LIBFMT ON) |
||||
|
||||
# https://trac.macports.org/ticket/71511 |
||||
set(DEVILUTIONX_SYSTEM_GOOGLETEST OFF) |
||||
set(DEVILUTIONX_STATIC_GOOGLETEST OFF) |
||||
set(DEVILUTIONX_SYSTEM_BENCHMARK OFF) |
||||
set(DEVILUTIONX_STATIC_BENCHMARK OFF) |
||||
@ -0,0 +1,30 @@
|
||||
# Provides missing functions, such as localtime_r |
||||
if(NOT TARGET MacportsLegacySupport::MacportsLegacySupport) |
||||
set(MacportsLegacySupport_INCLUDE_DIR /opt/local/include/LegacySupport) |
||||
mark_as_advanced(MacportsLegacySupport_INCLUDE_DIR) |
||||
|
||||
find_library(MacportsLegacySupport_LIBRARY NAMES MacportsLegacySupport |
||||
PATHS /opt/local/lib) |
||||
mark_as_advanced(MacportsLegacySupport_LIBRARY) |
||||
|
||||
include(FindPackageHandleStandardArgs) |
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( |
||||
MacportsLegacySupport |
||||
DEFAULT_MSG |
||||
MacportsLegacySupport_LIBRARY MacportsLegacySupport_INCLUDE_DIR) |
||||
|
||||
if(MacportsLegacySupport_FOUND) |
||||
set(MacportsLegacySupport_LIBRARIES ${MacportsLegacySupport_LIBRARY}) |
||||
set(MacportsLegacySupport_INCLUDE_DIRS ${MacportsLegacySupport_INCLUDE_DIR}) |
||||
add_library(MacportsLegacySupport::MacportsLegacySupport UNKNOWN IMPORTED) |
||||
set_target_properties( |
||||
MacportsLegacySupport::MacportsLegacySupport PROPERTIES |
||||
INTERFACE_INCLUDE_DIRECTORIES "${MacportsLegacySupport_INCLUDE_DIR}" |
||||
) |
||||
set_target_properties( |
||||
MacportsLegacySupport::MacportsLegacySupport PROPERTIES |
||||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" |
||||
IMPORTED_LOCATION "${MacportsLegacySupport_LIBRARY}" |
||||
) |
||||
endif() |
||||
endif() |
||||
Loading…
Reference in new issue