2022-08-05 04:19:01 +03:00
|
|
|
distributable:
|
|
|
|
url: https://ftp.gnu.org/gnu/ncurses/ncurses-{{ version.raw }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: mirror/ncurses/tags
|
2022-09-23 16:54:00 +03:00
|
|
|
strip: /v/
|
2022-08-05 04:19:01 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
script: |
|
|
|
|
mkdir -p $PCDIR
|
|
|
|
./configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
2023-01-10 20:41:42 +03:00
|
|
|
|
|
|
|
# fix up symlinks
|
|
|
|
cd {{prefix}}/lib
|
|
|
|
for lib in form menu ncurses panel curses++; do
|
|
|
|
for ii in $(find . -name lib${lib}w\*); do
|
|
|
|
# hopefully no new w's will be introduced
|
2023-03-10 18:51:03 +03:00
|
|
|
ln -sf $ii $(echo $ii | tr -d w)
|
2023-01-10 20:41:42 +03:00
|
|
|
done
|
|
|
|
done
|
2023-03-10 18:51:03 +03:00
|
|
|
|
|
|
|
# things often expect either no namespace or namespace
|
|
|
|
cd ../include
|
|
|
|
mv ncursesw/* .
|
|
|
|
rmdir ncursesw
|
|
|
|
ln -sf . ncursesw
|
|
|
|
|
2023-08-27 00:39:12 +03:00
|
|
|
# fix hardcoded paths
|
|
|
|
sed -i.bak 's|{{prefix}}|\${pcfiledir}/../..|g' {{prefix}}/lib/pkgconfig/*.pc
|
|
|
|
rm {{prefix}}/lib/pkgconfig/*.bak
|
|
|
|
|
|
|
|
sed -i.bak 's|{{prefix}}|\$(dirname "\$0")/..|g' {{prefix}}/bin/ncursesw{{version.major}}-config
|
|
|
|
rm {{prefix}}/bin/ncursesw{{version.major}}-config.bak
|
|
|
|
|
2022-08-05 04:19:01 +03:00
|
|
|
env:
|
|
|
|
PCDIR: ${{prefix}}/lib/pkgconfig
|
|
|
|
ARGS:
|
|
|
|
- --prefix={{ prefix }}
|
|
|
|
- --enable-pc-files
|
|
|
|
- --enable-sigwinch
|
|
|
|
- --enable-widec
|
|
|
|
- --with-shared
|
|
|
|
- --with-cxx-shared
|
|
|
|
- --with-gpm=no
|
|
|
|
- --without-ada
|
|
|
|
- --with-pkg-config-libdir=$PCDIR
|
|
|
|
|
2022-12-11 18:10:19 +03:00
|
|
|
runtime:
|
|
|
|
env:
|
2023-04-24 19:07:07 +03:00
|
|
|
TERMINFO: /usr/share/terminfo:{{prefix}}/share/terminfo
|
2022-12-11 18:10:19 +03:00
|
|
|
# ^^ we delegate to the system first since they may apply platform specific info
|
|
|
|
|
2022-08-05 04:19:01 +03:00
|
|
|
test:
|
2023-08-27 00:39:12 +03:00
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
|
|
|
script: |
|
|
|
|
ncursesw6-config --version | grep {{version.marketing}}
|
|
|
|
ncursesw6-config --terminfo-dirs | grep '{{prefix}}'
|
|
|
|
pkg-config --modversion ncursesw | grep {{version.marketing}}
|
|
|
|
pkg-config --libs ncursesw | grep '{{prefix}}'
|
2022-11-18 21:43:48 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/captoinfo
|
|
|
|
- bin/clear
|
|
|
|
- bin/infocmp
|
|
|
|
- bin/infotocap
|
|
|
|
- bin/ncursesw6-config
|
|
|
|
- bin/reset
|
|
|
|
- bin/tabs
|
|
|
|
- bin/tic
|
|
|
|
- bin/toe
|
|
|
|
- bin/tput
|
|
|
|
- bin/tset
|