<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2b6a7820268cb760a4fa50d220d38ac07692a625">https://github.com/macports/macports-ports/commit/2b6a7820268cb760a4fa50d220d38ac07692a625</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2b6a7820268cb760a4fa50d220d38ac07692a625
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Thu Jun 15 02:41:08 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> R-RcppCWB: new port
</span>---
R/R-RcppCWB/Portfile | 51 +++++++
.../files/0001-Fix-building-for-PowerPC.patch | 162 +++++++++++++++++++++
R/R-RcppCWB/files/0002-Fix-static-libs.patch | 46 ++++++
R/R-RcppCWB/files/0003-Fixes-for-Macports.patch | 76 ++++++++++
4 files changed, 335 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-RcppCWB/Portfile b/R/R-RcppCWB/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e6aa12b4837
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-RcppCWB/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,51 @@
</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 R 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# GitHub version is outdated.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+R.setup cran PolMine RcppCWB 0.6.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append math
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Rcpp bindings for the C code of the Corpus Workbench (CWB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a27d5d11a19de211d28178f6e3ecf5e4a7cfe5df \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 297c93941eeafbd01a8df6dc11af315dba0217c91ccc76dba1bb7d2deb410041 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1127675
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append path:lib/pkgconfig/glib-2.0.pc:glib2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pcre2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-fs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-Rcpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/src/cwb/config/platform/darwin-64 ${worksrcpath}/src/cwb/config/platform/darwin-x86_64
</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 0001-Fix-building-for-PowerPC.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0002-Fix-static-libs.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0003-Fixes-for-Macports.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@CC@|${configure.cc}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/cwb/config/platform/darwin-arm64 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/cwb/config/platform/darwin-ppc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/cwb/config/platform/darwin-ppc64 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/cwb/config/platform/darwin-x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # R is not universal in Macports at the moment.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${configure.build_arch} eq "ppc64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|darwin-ppc|darwin-ppc64|g"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|build for ppc64|build for ppc|"
</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;'>+depends_test-append port:R-knitr \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-rmarkdown \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-testthat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-RcppCWB/files/0001-Fix-building-for-PowerPC.patch b/R/R-RcppCWB/files/0001-Fix-building-for-PowerPC.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0c85dd97271
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-RcppCWB/files/0001-Fix-building-for-PowerPC.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,162 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From de5cdcc027fbefd5675301878d54b7f063ae4a02 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 15 Jun 2023 01:40:39 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1/3] Fix building for PowerPC
</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 | 11 ++++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/INSTALL-MACOS | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/config.mk | 12 +++---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/config/platform/darwin-ppc | 37 +++++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/config/platform/darwin-ppc64 | 37 +++++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/install-scripts/config-basic | 7 ++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create mode 100644 src/cwb/config/platform/darwin-ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create mode 100644 src/cwb/config/platform/darwin-ppc64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git configure configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 32deb3f..ffb7aa1 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,10 +25,15 @@ case $OS in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "* compiling for darwin-arm64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CWB_PLATFORM_CONFIG_FILE="darwin-arm64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CWB_PLATFORM_CONFIG_FILE_CC="unix";;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # uname -m is a poor choice, as it shows machine arch family and has nothing to do with desired arch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # of the build; for PowerPC it reports 'Power Macintosh', which is not an arch at all.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 'Power Macintosh')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ echo "* compiling for darwin-ppc; if you wish to build for ppc64, please change the value manually"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CWB_PLATFORM_CONFIG_FILE="darwin-ppc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CWB_PLATFORM_CONFIG_FILE_CC="unix";;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- echo "* compiling for darwin-64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CWB_PLATFORM_CONFIG_FILE="darwin-64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ echo "* compiling for darwin-x86_64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CWB_PLATFORM_CONFIG_FILE="darwin-x86_64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CWB_PLATFORM_CONFIG_FILE_CC="unix";;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/INSTALL-MACOS src/cwb/INSTALL-MACOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 80aff97..7ee56d7 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/INSTALL-MACOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/INSTALL-MACOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -128,7 +128,7 @@ If you've used the MacPorts package manager, specify
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Otherwise, make sure that the prerequisite libraries have been installed into
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the /usr/local tree and then specify either
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PLATFORM=darwin-64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PLATFORM=darwin-x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for an Intel 64-bit build or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/config.mk src/cwb/config.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 2b5e164..f7f65fe 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/config.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/config.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,13 +30,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # linux-64 - configuration for 64-bit CPUs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # linux-opteron - with optimimzation for AMD Opteron processor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # darwin MacOS / Darwin [use one of the more specific entries below]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# darwin-brew - Intel 64-bit, natively tuned, prerequisites installed with HomeBrew (recommended)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# darwin-brew - Intel 64-bit, natively tuned, prerequisites installed with HomeBrew (recommended)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # darwin-brew-m1 - same for ARM 64-bit (M1 and other Apple Silicon)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# darwin-brew-release - Intel 64-bit (Core2 and newer), statically linked for binary release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# darwin-brew-release - Intel 64-bit (Core2 and newer), statically linked for binary release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # darwin-brew-release-m1 - same for ARM 64-bit (M1 and other Apple Silicon)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# darwin-64 - Intel 64-bit, natively tunes, prerequisites installed by user
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# darwin-universal - universal 64-bit/32-bit build on Mac OS X 10.6 - 10.13 (deprecated)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# darwin-port - generic build, prerequisites installed with MacPorts (deprecated)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# darwin-x86_64 - Intel 64-bit, natively tunes, prerequisites installed by user
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# darwin-ppc - PowerPC 32-bit, natively tunes, prerequisites installed by user
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# darwin-ppc64 - PowerPC 64-bit, natively tunes, prerequisites installed by user
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# darwin-universal - universal 64-bit/32-bit build on Mac OS X 10.7–10.13 (deprecated)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# darwin-port - generic build, prerequisites installed with MacPorts (deprecated)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # solaris SUN Solaris 8 for SPARC CPU (unsupported)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # cygwin Win32 build using Cygwin emulation layer (experimental)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # mingw-cross Cross-compile for Win32-on-i586 from a *nix system with MinGW installed (experimental)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/config/platform/darwin-ppc src/cwb/config/platform/darwin-ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+new file mode 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0000000..55c1245
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/config/platform/darwin-ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,37 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## -*-Makefile-*-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++##
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## IMS Open Corpus Workbench (CWB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Copyright (C) 1993-2006 by IMS, University of Stuttgart
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Copyright (C) 2007- by the respective contributers (see file AUTHORS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++##
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## This program is free software; you can redistribute it and/or modify it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## under the terms of the GNU General Public License as published by the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Free Software Foundation; either version 2, or (at your option) any later
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++##
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## This program is distributed in the hope that it will be useful, but
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## WITHOUT ANY WARRANTY; without even the implied warranty of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Public License for more details (in the file "COPYING", or available via
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## WWW at http://www.gnu.org/copyleft/gpl.html).
</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;'>++## PLATFORM CONFIGURATION FILE:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Recent Mac OS X with Xcode 5 or later on 64-bit Intel Core2 and newer CPUs, natively tuned,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## with prerequisite libraries installed by user or package manager in standard locations
</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;'>++## Inherits from basic Darwin configuration
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include $(TOP)/config/platform/darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Use GCC compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC ?= /usr/bin/gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Only build PowerPC 32-bit architecture, optimised for this system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Notice, using -mtune=native assumes a newer GCC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS = -Wall -O3 -arch ppc -mtune=native
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++DEPEND_CFLAGS = -Wall -O3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## CPU architecture and operating system used to name binary releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++RELEASE_ARCH = ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/config/platform/darwin-ppc64 src/cwb/config/platform/darwin-ppc64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+new file mode 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0000000..54b102c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/config/platform/darwin-ppc64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,37 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## -*-Makefile-*-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++##
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## IMS Open Corpus Workbench (CWB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Copyright (C) 1993-2006 by IMS, University of Stuttgart
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Copyright (C) 2007- by the respective contributers (see file AUTHORS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++##
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## This program is free software; you can redistribute it and/or modify it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## under the terms of the GNU General Public License as published by the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Free Software Foundation; either version 2, or (at your option) any later
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++##
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## This program is distributed in the hope that it will be useful, but
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## WITHOUT ANY WARRANTY; without even the implied warranty of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Public License for more details (in the file "COPYING", or available via
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## WWW at http://www.gnu.org/copyleft/gpl.html).
</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;'>++## PLATFORM CONFIGURATION FILE:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Recent Mac OS X with Xcode 5 or later on 64-bit Intel Core2 and newer CPUs, natively tuned,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## with prerequisite libraries installed by user or package manager in standard locations
</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;'>++## Inherits from basic Darwin configuration
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include $(TOP)/config/platform/darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Use GCC compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC ?= /usr/bin/gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Only build PowerPC 64-bit architecture, optimised for this system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## Notice, using -mtune=native assumes a newer GCC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS = -Wall -O3 -arch ppc64 -mtune=native
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++DEPEND_CFLAGS = -Wall -O3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## CPU architecture and operating system used to name binary releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++RELEASE_ARCH = ppc64
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-RcppCWB/files/0002-Fix-static-libs.patch b/R/R-RcppCWB/files/0002-Fix-static-libs.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9c72b9dbbf7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-RcppCWB/files/0002-Fix-static-libs.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,46 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From d010ec50d4fc96c52f346ef4b0567d3ef86a6b26 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 15 Jun 2023 03:27:21 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2/3] Fix static libs
</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;'>+ src/cwb/cl/Makefile | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/cqp/Makefile | 7 +------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/utils/Makefile | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/cl/Makefile src/cwb/cl/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 75b1c17..b91a024 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/cl/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/cl/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -106,6 +106,7 @@ all: libcl.a $(EXTRA_OBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libcl.a: $(OBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(RM) $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(AR) cq $@ $^
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ranlib $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install: libcl.a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifndef __MINGW__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/cqp/Makefile src/cwb/cqp/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 436a6a5..6ad4370 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/cqp/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/cqp/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -103,6 +103,7 @@ parser.tab.c parser.tab.h: parser.y
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libcqp.a: $(OBJS) $(CQI_OBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(RM) $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(AR) cq $@ $^
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ranlib $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cqp$(EXEC_SUFFIX): $(OBJS) $(CQP_OBJS) llquery.o $(LIBCL_PATH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @$(ECHO) " .... link executable" $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/utils/Makefile src/cwb/utils/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c6abc4f..68abdf4 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/utils/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/utils/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -49,6 +49,7 @@ libcwb.a: $(OBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @$(ECHO) "--------------------------------- CREATING ARCHIVE"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(RM) $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(AR) cq $@ $^
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ranlib $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cwb-encode.o: cwb-encode.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CC} -c $(CFLAGS_ALL) -o cwb-encode.o cwb-encode.c
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-RcppCWB/files/0003-Fixes-for-Macports.patch b/R/R-RcppCWB/files/0003-Fixes-for-Macports.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9a3678c3c51
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-RcppCWB/files/0003-Fixes-for-Macports.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,76 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 5eea3dbd90afe82ede1ed0245b244ce1a481dab8 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 15 Jun 2023 03:06:52 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 3/3] Fixes for Macports
</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;'>+ src/cwb/config/platform/darwin-arm64 | 8 +++-----
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/config/platform/darwin-ppc | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/config/platform/darwin-ppc64 | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/cwb/config/platform/darwin-x86_64 | 4 ++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/config/platform/darwin-arm64 src/cwb/config/platform/darwin-arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 532a09a..157bf72 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/config/platform/darwin-arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/config/platform/darwin-arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,14 +25,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include $(TOP)/config/platform/darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Explicitly use Clang compiler (Apple's gcc is now just a symlink to Clang)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# CC = /usr/bin/clang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# CC = @CC@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Only build default 64-bit architecture, optimised for this system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS = -Wall -O3 -arch arm64 -mtune=native
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS = -Wall -O3 -arch arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEPEND_CFLAGS = -Wall -O3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## CPU architecture and operating system used to name binary releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-RELEASE_ARCH = x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-RELEASE_OS = osx-10.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++RELEASE_ARCH = arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/config/platform/darwin-ppc src/cwb/config/platform/darwin-ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 55c1245..07f6870 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/config/platform/darwin-ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/config/platform/darwin-ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,7 +25,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include $(TOP)/config/platform/darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Use GCC compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CC ?= /usr/bin/gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC = @CC@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Only build PowerPC 32-bit architecture, optimised for this system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Notice, using -mtune=native assumes a newer GCC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/config/platform/darwin-ppc64 src/cwb/config/platform/darwin-ppc64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 54b102c..143ce50 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/config/platform/darwin-ppc64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/config/platform/darwin-ppc64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,7 +25,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include $(TOP)/config/platform/darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Use GCC compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CC ?= /usr/bin/gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC = @CC@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Only build PowerPC 64-bit architecture, optimised for this system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Notice, using -mtune=native assumes a newer GCC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/cwb/config/platform/darwin-x86_64 src/cwb/config/platform/darwin-x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 71719d5..8228276 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cwb/config/platform/darwin-x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cwb/config/platform/darwin-x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,10 +25,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include $(TOP)/config/platform/darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Explicitly use Clang compiler (Apple's gcc is now just a symlink to Clang)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CC = /usr/bin/clang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC = @CC@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Only build Intel 64-bit architecture, optimised for this system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS = -Wall -O3 -arch x86_64 -mtune=native
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS = -Wall -O3 -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEPEND_CFLAGS = -Wall -O3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>