diff --git a/games/Aerofoil/Portfile b/games/Aerofoil/Portfile index 78957c62869..293e957263f 100644 --- a/games/Aerofoil/Portfile +++ b/games/Aerofoil/Portfile @@ -6,7 +6,7 @@ PortGroup cmake 1.1 PortGroup github 1.0 github.setup elasota Aerofoil 1.1.2 -revision 0 +revision 1 set src_distfile ${distfiles} set dat_distname ${distname}-win64 set dat_distfile ${dat_distname}.zip @@ -39,7 +39,8 @@ distfiles ${src_distfile}:src \ depends_extract-append \ bin:unzip:unzip -depends_lib-append port:libsdl2 +depends_lib-append port:libsdl2 \ + port:zlib extract.only ${src_distfile} post-extract { @@ -51,7 +52,8 @@ post-extract { } patchfiles Aerofoil.patch \ - stdlib.patch + stdlib.patch \ + zlib.patch compiler.cxx_standard 2011 diff --git a/games/Aerofoil/files/zlib.patch b/games/Aerofoil/files/zlib.patch new file mode 100644 index 00000000000..7cd71f8a395 --- /dev/null +++ b/games/Aerofoil/files/zlib.patch @@ -0,0 +1,30 @@ +Use MacPorts zlib instead of the bundled copy. +--- CMakeLists.txt.orig 2021-11-10 17:05:19.000000000 -0600 ++++ CMakeLists.txt 2025-10-13 09:10:59.000000000 -0500 +@@ -23,16 +23,7 @@ + stb/stb_image_write.c + ) + +-add_library(zlib STATIC +- zlib/adler32.c +- zlib/crc32.c +- zlib/deflate.c +- zlib/inffast.c +- zlib/inflate.c +- zlib/inftrees.c +- zlib/trees.c +- zlib/zutil.c +- ) ++find_package(ZLIB REQUIRED) + + add_library(MacRomanConversion STATIC + MacRomanConversion/MacRomanConversion.cpp +@@ -138,7 +129,7 @@ + + target_compile_options(PortabilityLayer PRIVATE -Wno-multichar) + +-target_link_libraries(PortabilityLayer zlib MacRomanConversion stb) ++target_link_libraries(PortabilityLayer ZLIB::ZLIB MacRomanConversion stb) + + + add_library(GpShell STATIC