<pre style='margin:0'>
Vincent (Veence) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/faaccbf62e59951907baab862e23ec128604b1b7">https://github.com/macports/macports-ports/commit/faaccbf62e59951907baab862e23ec128604b1b7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new faaccbf62e5 grass8: new branch. Initial commit 8.0.1
</span>faaccbf62e5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit faaccbf62e59951907baab862e23ec128604b1b7
</span>Author: Veence <vince@macports.org>
AuthorDate: Sun Mar 20 13:45:39 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> grass8: new branch. Initial commit 8.0.1
</span>---
gis/grass8/Portfile | 323 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 323 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/grass8/Portfile b/gis/grass8/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..fa3805adf0c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/grass8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,323 @@
</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 wxWidgets 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup debug 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compilers 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup OSGeo grass 8.0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name grass8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set main_version [join [lrange [split ${version} "."] 0 1] ""]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set realVersion ${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#distname grass-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname grass-${realVersion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories gis
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description GRASS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description GRASS is a Geographic Information System (GIS) used for \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ geospatial data management and analysis.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://grass.osgeo.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${homepage}grass[join [lrange [split ${realVersion} .] 0 1] {}]/source/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 b2ee2f92fc546d9632b139d2366d6be9558c4e26 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 e925bf8c44e1809459974457f2ab3c61dd5a24c0655ed026de665d1494f68a96 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 64928098
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:bzip2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:freetype \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fftw-3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gdal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pdal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:geos \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tiff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libpng \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:liblas\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/cairo.pc:cairo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:readline
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags -DGL_SILENCE_DEPRECATION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --prefix=${prefix}/share \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --exec-prefix=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-opengl=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-opencl=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-openmp=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-bzlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-bzlib-includes=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-bzlib-libs=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-fftw-includes=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-fftw-libs=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-freetype \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-freetype-includes=${prefix}/include/freetype2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-freetype-libs=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-gdal=${prefix}/bin/gdal-config \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-tiff-includes=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-tiff-libs=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-png-includes=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-png-libs=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-geos=${prefix}/bin/geos-config \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-liblas=${prefix}/bin/liblas-config \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-postgres \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-pthread \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-cairo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-cairo-includes=${prefix}/include/cairo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-cairo-libs=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-blas=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-lapack=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-pdal=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-readline \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-readline-includes=${prefix}/include/readline \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-readline-libs=${prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# --with-pdal=${prefix}/bin/pdal-config \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Python 3 variants
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_suffixes {36 37 38 39 310}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_variants {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend python_variants python${pyver}
</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;'>+foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set index [lsearch -exact ${python_variants} python${pyver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set conf [lreplace ${python_variants} ${index} ${index}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant python${pyver} description "Use python${pyver}" conflicts {*}${conf} "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python${pyver} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver}-Pillow \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver}-numpy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${pyver}-six
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:py${pyver}-psycopg2
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Patches scripts to launch the selected Python version (fixes #59954)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset python${pyver}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pyversion [string index ${pyver} 0].[string range ${pyver} 1 end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pybin ${prefix}/bin/python${pyversion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse f ${worksrcpath} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file extension ${f}] eq ".py"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|/usr/bin/env python3|${pybin}|" ${f}
</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;'>+ reinplace "s|PYVER.*|PYVER = ${pyversion}|" ${worksrcpath}/macosx/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|^PYTHON.*|PYTHON = ${pybin}|" ${worksrcpath}/include/Make/Platform.make.in
</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;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Python default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pydefault "if {"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach suffix ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pydefault "${pydefault}!\[variant_isset python${suffix}\] && "
</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 pydefault [string range ${pydefault} 0 end-4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pydefault "${pydefault}} { default_variants +python${suffix} }"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+eval ${pydefault}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set proj_versions {6 7 8}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set proj_variants {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach pjver ${proj_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend proj_variants proj${pjver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach proj_ver ${proj_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set index [lsearch -exact ${proj_variants} proj${proj_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cflcts [lreplace ${proj_variants} ${index} ${index}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant proj${proj_ver} description "Use Proj${proj_ver}" conflicts {*}${cflcts} "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:proj${proj_ver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env PATH=$::env(PATH):${prefix}/lib/proj${proj_ver}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env PATH=$::env(PATH):${prefix}/lib/proj${proj_ver}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-proj-includes=${prefix}/lib/proj${proj_ver}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-proj-libs=${prefix}/lib/proj${proj_ver}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-proj-share=${prefix}/lib/proj${proj_ver}/share/proj
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set projdf "if {"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach pv ${proj_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set projdf "${projdf}!\[variant_isset proj${pv}\] && "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set projdf [string range ${projdf} 0 end-4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set projdf "${projdf}} { default_variants +proj${pv} }"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+eval ${projdf}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant gui description {Build with wxPython GUI and application bundle} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wxWidgets.use wxWidgets-3.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:${wxWidgets.port}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach pyver ${python_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset python${pyver}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:py${pyver}-wxpython-4.0
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-wxwidgets=${wxWidgets.wxconfig}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --with-opengl=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-opengl=osx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Create app bundle
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global app_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set app_name_version [join [lrange [split ${version} "."] 0 1] "."]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set app_name GRASS-${app_name_version}.app
</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;'>+ xinstall -d -m 0755 ${worksrcpath}/${app_name}/Contents
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${worksrcpath}/${app_name}/Contents/Resources
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${worksrcpath}/${app_name}/Contents/MacOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set script [open "${worksrcpath}/${app_name}/Contents/MacOS/GRASS" w 0755]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${script} "#!/usr/bin/osascript"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${script} ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${script} "tell application \"Terminal\" to do script \"${prefix}/bin/grass${main_version} --gui; exit\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close ${script}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/macosx/app/AppIcon.icns \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/${app_name}/Contents/Resources/AppIcon.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/macosx/app/GRASSDocument_gxw.icns \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/${app_name}/Contents/Resources/GRASSDocument_gxw.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set info_plist ${worksrcpath}/${app_name}/Contents/Info.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/macosx/app/Info.plist.in ${info_plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set version_file [open ${worksrcpath}/include/VERSION]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set version_data [split [read ${version_file}] "\n"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close ${version_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set grass_version_major [lindex ${version_data} 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set grass_version_minor [lindex ${version_data} 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set grass_version_date [lindex ${version_data} 3]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set bundle_version [join [lrange ${version_data} 0 2] "."]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@GRASS_VERSION_MAJOR@|${grass_version_major}|" ${info_plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@GRASS_VERSION_MINOR@|${grass_version_minor}|" ${info_plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@GRASS_VERSION_DATE@|${grass_version_date}|" ${info_plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@BUNDLE_VERSION@|${bundle_version}|" ${info_plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@DEPLOYMENT_TARGET@|${macosx_deployment_target}|" ${info_plist}
</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;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/${app_name} ${destroot}${applications_dir}
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# OpenMPI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset openmpi]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --with-openmp=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-openmp=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-openmp-includes=${prefix}/include/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-openmp-libs=${prefix}/lib/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compilers.choose cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compilers.setup clang13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.compiler macports-clang-13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append -L${prefix}/lib/libomp
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant mysql5 description {Add MySQL 5 support} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:bin/mysql_config5:mysql5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-mysql-libs=${prefix}/lib/mysql5/mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
</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;'>+# PostGreSQL variants (from the GDAL port)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set postgresql_suffixes {10 11 12 13 14}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set postgresql_variants {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach suffix ${postgresql_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend postgresql_variants postgresql${suffix}
</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;'>+foreach suffix ${postgresql_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set vrt postgresql${suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pgversion [string index ${suffix} 0].[string index ${suffix} 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set index [lsearch -exact ${postgresql_variants} ${vrt}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set conf [lreplace ${postgresql_variants} ${index} ${index}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant ${vrt} description "Use PostgreSQL ${pgversion}" conflicts {*}${conf} "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:${vrt}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-postgres-includes=${prefix}/include/${vrt}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-postgres-libs=${prefix}/lib/${vrt}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --with-postgres=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-postgres=yes
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# PostGreSQL default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pgdefault "if {"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach suffix ${postgresql_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pgdefault "${pgdefault}!\[variant_isset postgresql${suffix}\] && "
</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 pgdefault [string range ${pgdefault} 0 end-4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pgdefault "${pgdefault}} { default_variants +postgresql${suffix} }"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+eval ${pgdefault}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant sqlite description {Add SQLite 3 support} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:sqlite3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sqlite
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sqlite-includes=${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sqlite-libs=${prefix}/lib
</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;'>+variant openblas description {Use OpenBLAS for BLAS/LAPACK} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:openblas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --with-blas=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --with-lapack=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-blas=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-lapack=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-blas-includes=${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-lapack-includes=${prefix}/include
</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;'>+variant zstd description {Add ZStandard compression support} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-zstd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-zstd-includes=${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-zstd-libs=${prefix}/lib
</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;'>+post-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file copy ${prefix}/include/ogr_srs_api.h ${worksrcpath}/lib/python/ctypes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file copy ${prefix}/include/ogr_api.h ${worksrcpath}/lib/python/ctypes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file copy ${prefix}/include/cpl_progress.h ${worksrcpath}/lib/python/ctypes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file copy ${prefix}/include/ogr_core.h ${worksrcpath}/lib/python/ctypes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file copy ${prefix}/include/gdal_version.h ${worksrcpath}/lib/python/ctypes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file copy ${prefix}/include/cpl_port.h ${worksrcpath}/lib/python/ctypes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# reinplace -E "s|\\\$\\\(CPPFLAGS)|-I${worksrcpath}/python/libgrass_interface_generator \$(CPPFLAGS) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \\\\\"-Drestrict=\\\\\" \\\\\"-D__attribute__(x)=0\\\\\" \\\\\"-D_Nonnull=\\\\\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \\\\\"-Dint8_t=char\\\\\" \\\\\"-DCF_INLINE=\\\\\" \\\\\"-D_Null_unspecified=\\\\\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \\\\\"-D__DARWIN_OS_INLINE=\\\\\"|" ${worksrcpath}/python/libgrass_interface_generator/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|(MAC_FLAGS =.*)|\\1 -D__attribute__(x)=|" ${worksrcpath}/python/libgrass_interface_generator/Makefile
</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;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url ${master_sites}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex grass-(7.\[0-9.\]+)${extract.suffix}
</span></pre><pre style='margin:0'>
</pre>