aboutsummaryrefslogtreecommitdiffhomepage
path: root/.fmsbw/20-freebsd14-osx-sciteco
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2025-10-06 18:40:55 +0300
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2025-10-06 18:40:55 +0300
commitbd3d9e6e35608791465cef02813a97407ebd06bb (patch)
treefb095ce69d8a1f7c13413b60d9158443327ccb3e /.fmsbw/20-freebsd14-osx-sciteco
parent2c85cacdcdcbd13d3dcf9fdb124286bc20a5500d (diff)
downloadsciteco-bd3d9e6e35608791465cef02813a97407ebd06bb.tar.gz
AX_WITH_NCURSES: support $CURSES_CFLAGS and $CURSES_LIBS
* We wouldn't detect the correct flags (ax_cv_curses_enhanced and ax_cv_curses_color) when CURSES_CFLAGS and CURSES_LIBS are given. * Allows to force ncurses to the SDK/system one when building for OS X (20-freebsd14-osx-sciteco).
Diffstat (limited to '.fmsbw/20-freebsd14-osx-sciteco')
-rwxr-xr-x.fmsbw/20-freebsd14-osx-sciteco6
1 files changed, 5 insertions, 1 deletions
diff --git a/.fmsbw/20-freebsd14-osx-sciteco b/.fmsbw/20-freebsd14-osx-sciteco
index 0173924..a3eea1f 100755
--- a/.fmsbw/20-freebsd14-osx-sciteco
+++ b/.fmsbw/20-freebsd14-osx-sciteco
@@ -47,9 +47,12 @@ mkdir build-osx
cd build-osx
# FIXME: Perhaps SciTECO's configure.ac should use PKG_CHECK_MODULES_STATIC()
# whenever --enable-static-executables is used.
+# NOTE: Make sure we pick up the SDK's ncurses instead of the one pulled in
+# via MacPorts.
../configure --host=x86_64-apple-darwin25 --disable-bootstrap --with-interface=ncurses \
--enable-static-executables --with-scitecodatadir=../share/sciteco \
- PKG_CONFIG="x86_64-apple-darwin25-pkg-config --static"
+ PKG_CONFIG="x86_64-apple-darwin25-pkg-config --static" \
+ CURSES_CFLAGS="-D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR" CURSES_LIBS="-lncurses"
gmake install-strip DESTDIR=`pwd`/temp-install
# There are libraries we cannot link against statically.
# We ship them in /usr/local/lib/sciteco so as not to cause collisions with system
@@ -61,6 +64,7 @@ gmake install-strip DESTDIR=`pwd`/temp-install
dylibbundler -b -x temp-install/usr/local/bin/sciteco \
-cd -d temp-install/usr/local/lib/sciteco -p @executable_path/../lib/sciteco \
--no-codesign
+# FIXME: Perhaps create pkg using fpm (https://github.com/jordansissel/fpm)?
(cd temp-install; tar czf ../../sciteco-curses_nightly_macos_x86_64.tar.gz *)
cd ..