ncurses needs less hacks now

This commit is contained in:
Max Howell 2023-03-21 10:36:29 -04:00
parent 221daf24f4
commit e1aa05cb68
4 changed files with 5 additions and 17 deletions

View file

@ -38,7 +38,6 @@ build:
ARGS:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
- -DCURSES_INCLUDE_PATH="{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw"
test:
dependencies:

View file

@ -20,10 +20,9 @@ build:
# Add -v to allow testing resultant binary
patch -p1 < props/version.patch
make
mkdir "{{prefix}}"/bin
mkdir -p "{{prefix}}"/bin
mv sl "{{prefix}}"/bin
env:
CPATH: ${{ deps.invisible-island.net/ncurses.prefix }}/include/ncursesw:$CPATH
TEA_VERSION: ${{ version }}
test:

View file

@ -23,12 +23,12 @@ runtime:
build:
dependencies:
tea.xyz/gx/cc: '*'
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/autoconf: '>=2.64'
gnu.org/automake: '>=1.12'
gnu.org/libtool: '*'
freedesktop.org/pkg-config: '^0.29'
freedesktop.org/pkg-config: ~0.29
script: |
./configure $ARGS
make -j {{hw.concurrency}}
@ -42,15 +42,13 @@ build:
rm $x.bak
done
sed -i.bak 's|{{tea.prefix}}|%p/../|g' etc/mc/mc.ext
rm etc/mc/mc.ext.bak
sed -i.bak 's|{{tea.prefix}}|%p/../|g' etc/mc/mc.ext*
rm etc/mc/mc.ext*.bak
env:
ARGS:
- --prefix={{prefix}}
- --with-screen=ncurses
# Needed for the compiler to `#include <term.h>`
CPATH: $CPATH:{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw
# FIXME: hard to test interactive tools
test:

View file

@ -15,17 +15,9 @@ build:
gnu.org/autoconf: '*'
script: |
./autogen.sh
# configure won't find libncursesw for libncurses.
sed -i.bak -e 's/-lncurses/-lncursesw/' configure
rm configure.bak
./configure --prefix={{prefix}}
make
make install
env:
# needed to `include <curses.h>;`
CPATH: $CPATH:{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw
test:
true