Aerofoil: Use MacPorts zlib

Closes: https://trac.macports.org/ticket/73115
This commit is contained in:
Ryan Carsten Schmidt
2025-10-13 09:17:22 -05:00
parent 01fe555818
commit e599e0cf16
2 changed files with 35 additions and 3 deletions
+5 -3
View File
@@ -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
+30
View File
@@ -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