blob: d09b49845dd583b05ed607f301a9ee42f1d029fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
pkg:setup
sdk = MacOS.sdk_path_if_needed ? MacOS.sdk_path : ""
(buildpath/"ncurses.pc").write <<~EOS
Name: ncurses
Description: ncurses
Version: 5.4
Libs: -L/usr/lib -lncurses
Cflags: -I#{sdk}/usr/include
EOS
ENV.prepend_path "PKG_CONFIG_PATH", buildpath
mkdir "build" && cd build
meson --prefix=${PKG_TAPF} ..
ninja install
|