<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c7925b5fcb6ec71c3b6bd519c8d5a7d92969eaf1">https://github.com/macports/macports-ports/commit/c7925b5fcb6ec71c3b6bd519c8d5a7d92969eaf1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c7925b5fcb6ec71c3b6bd519c8d5a7d92969eaf1
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu Mar 17 01:04:43 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> Aerofoil: New port, version 1.1.2
</span>---
games/Aerofoil/Portfile | 78 +++++++++++++++++++++++++++++++++++++
games/Aerofoil/files/Aerofoil.patch | 78 +++++++++++++++++++++++++++++++++++++
2 files changed, 156 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/Aerofoil/Portfile b/games/Aerofoil/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..377cddb508f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/Aerofoil/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,78 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup app 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup elasota Aerofoil 1.1.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set src_distfile ${distfiles}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set dat_distname ${distname}-win64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set dat_distfile ${dat_distname}.zip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums ${src_distfile} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 2382b9a93d340e381a6c444700b0a2e4602bcfad \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 94f87e57ab8853730e7cc18cf971fb469129f34a2decfe9f8e961caaaf107e30 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 33306728 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${dat_distfile} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 d0be9c700c4db859319851995be47b7ff84e850a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a407f6e70e79941198ce36ae4fda8d000c7f10c8a0b52b1fd740e70b2c4c0a99 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 9503855
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories games
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms macosx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {ryandesign @ryandesign} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description a port of John Calhoun's Glider PRO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${name} is {*}${description}, the classic 1994 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ paper airplane game for Macintosh.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://galeforcegames.itch.io/aerofoil
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${github.master_sites}:src \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${github.homepage}/releases/download/${github.version}:dat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles ${src_distfile}:src \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${dat_distfile}:dat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_extract-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bin:unzip:unzip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libsdl2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.only ${src_distfile}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The programs that convert the game data from the form in the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # repository to the form needed by the game only work on Windows so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # we have to get the converted files from the Windows binary.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/elasota/Aerofoil/issues/8#issuecomment-1069795648
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath} "unzip -q [shellescape ${distpath}/${dat_distfile}] Aerofoil/Packaged/*"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles Aerofoil.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args -DPLATFORM=MAC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If someone knows a less cumbersome way to make an icns from an
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # appiconset let me know. The app portgroup should probably be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # enhanced to be able to work with iconsets and appiconsets.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${build.dir}/${name}.iconset
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach png [glob ${worksrcpath}/AerofoilMac/AerofoilMac/Assets.xcassets/AppIcon.appiconset/*.png] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set size [file rootname [file tail ${png}]]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${png} ${build.dir}/${name}.iconset/icon_${size}x${size}.png
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${build.dir} "iconutil -c icns ${name}.iconset"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.executable ${build.dir}/AerofoilMac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.icon ${build.dir}/${name}.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.identifier com.madthijs.AerofoilMac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${workpath}/Aerofoil/Packaged ${destroot}${applications_dir}/${app.name}.app/Contents/Resources/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/Documentation ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/Aerofoil/files/Aerofoil.patch b/games/Aerofoil/files/Aerofoil.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..58564a830da
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/Aerofoil/files/Aerofoil.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,78 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix build issues.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/elasota/Aerofoil/pull/10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- AerofoilX/GpMain_SDL_X.cpp.orig 2021-11-10 17:05:19.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ AerofoilX/GpMain_SDL_X.cpp 2022-03-16 20:45:44.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,7 +20,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "IGpVOSEventQueue.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __MACOS__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "MacInit.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GpXGlobals g_gpXGlobals;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2021-11-10 17:05:19.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2022-03-16 22:29:17.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,6 +45,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortabilityLayer/BitmapImage.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortabilityLayer/ByteSwap.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortabilityLayer/CFileStream.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PortabilityLayer/CompositeRenderedFont.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortabilityLayer/DeflateCodec.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortabilityLayer/DialogManager.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortabilityLayer/DisplayDeviceManager.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -240,7 +241,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_link_libraries(GpApp PortabilityLayer)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(CMAKE_HOST_UNIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_executable(${EXECNAME}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(EXEC_SOURCES )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND EXEC_SOURCES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AerofoilPortable/GpSystemServices_POSIX.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AerofoilPortable/GpThreadEvent_Cpp11.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AerofoilPortable/GpAllocator_C.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -257,8 +259,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AerofoilX/GpSystemServices_X.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AerofoilX/GpFileSystem_X.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- target_include_directories(${EXECNAME} PRIVATE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(EXEC_LIBS )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND EXEC_LIBS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${SDL2_LIBRARIES}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ GpApp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ GpShell
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(EXEC_INC_DIRS )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND EXEC_INC_DIRS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Common>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/GpCommon>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/GpShell>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -267,8 +277,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/PortabilityLayer>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${SDL2_INCLUDE_DIRS}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- target_link_libraries(${EXECNAME} ${SDL2_LIBRARIES} GpApp GpShell)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(PLATFORM STREQUAL "MAC")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND EXEC_SOURCES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AerofoilMac/AerofoilMac/AerofoilApplication.mm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AerofoilMac/AerofoilMac/MacInit.mm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND EXEC_INC_DIRS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/AerofoilMac/AerofoilMac>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND EXEC_LIBS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "-framework Cocoa"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif(PLATFORM STREQUAL "MAC")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ add_executable(${EXECNAME} ${EXEC_SOURCES})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ target_include_directories(${EXECNAME} PRIVATE ${EXEC_INC_DIRS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ target_link_libraries(${EXECNAME} ${EXEC_LIBS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>