<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b108247bc3ee29be8d7a7b876b90f8f98acddad1">https://github.com/macports/macports-ports/commit/b108247bc3ee29be8d7a7b876b90f8f98acddad1</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 b108247bc3e fpc-cross-*: new cross targets.
</span>b108247bc3e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b108247bc3ee29be8d7a7b876b90f8f98acddad1
</span>Author: Karl-Michael Schindler <karl-michael.schindler@web.de>
AuthorDate: Fri Jan 29 17:26:13 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> fpc-cross-*: new cross targets.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This adds cross targets for fpc, which do not require external tools. These targets use internal assemblers and linkers.
</span><span style='display:block; white-space:pre;color:#404040;'> So far, the rtl only and no packages. See the commented lines. fpmkunit does build without trouble.
</span>---
lang/fpc/Portfile | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 98 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/fpc/Portfile b/lang/fpc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 80ae9c83685..e599fc7fb45 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/fpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/fpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -115,6 +115,104 @@ subport "${name}-cross" {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+subport "${name}-cross-arm-wince" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir fpcbuild-${version}/fpcsrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:${name} port:${name}-cross
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# build.target rtl packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# destroot.target rtl_install packages_install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target rtl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target rtl_install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# target specifics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description FPC cross-compiler for arm-wince
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This Pascal crosscompiler produces arm executables, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ which run natively on arm-wince systems. \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Get help with: \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fpc -h \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Compile and link a Pascal file with: \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fpc -Parm -Twince FILENAME
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args PP=ppcarm CPU_TARGET=arm OS_TARGET=wince OPT="-ap -v0"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args CPU_TARGET=arm OS_TARGET=wince CROSSINSTALL=1 INSTALL_PREFIX=${destroot}${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove duplicate doc and bin files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/share
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/bin
</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;'>+foreach ostarget {nativent win32 wince} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ subport "${name}-cross-i386-$ostarget" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir fpcbuild-${version}/fpcsrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:${name} port:${name}-cross
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# build.target rtl packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# destroot.target rtl_install packages_install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target rtl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target rtl_install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# target specifics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description FPC cross-compiler for i386-$ostarget
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This Pascal crosscompiler produces i386 executables, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ which run natively on i386-$ostarget systems. \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Get help with: \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fpc -h \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Compile and link a Pascal file with: \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fpc -Pi386 -T$ostarget FILENAME
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args PP=ppc386 CPU_TARGET=i386 OS_TARGET=$ostarget OPT="-ap -v0"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args CPU_TARGET=i386 OS_TARGET=$ostarget CROSSINSTALL=1 INSTALL_PREFIX=${destroot}${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove duplicate doc and bin files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/share
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/bin
</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;'>+subport "${name}-cross-x86-64-win64" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir fpcbuild-${version}/fpcsrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:${name} port:${name}-cross
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# build.target rtl packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# destroot.target rtl_install packages_install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target rtl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target rtl_install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# target specifics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description FPC cross-compiler for x86_64-win64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This Pascal crosscompiler produces x86_64 executables, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ which run natively on x86_64-win64 systems. \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Get help with: \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fpc -h \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Compile and link a Pascal file with: \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \n \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fpc -Px86_64 -Twin64 FILENAME
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args PP=ppcx64 CPU_TARGET=x86_64 OS_TARGET=win64 OPT="-ap -v0"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args CPU_TARGET=x86_64 OS_TARGET=win64 CROSSINSTALL=1 INSTALL_PREFIX=${destroot}${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove duplicate doc and bin files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/share
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/bin
</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> if {${subport} eq "${name}"} {
revision 1
</pre><pre style='margin:0'>
</pre>