Skip to content

Commit

Permalink
ncurses: create compat libs for recipes written for netbsd-curses
Browse files Browse the repository at this point in the history
in case someone needs to test/build stuff against ncurses rather than
curses, we now need compatibility symlinks for libcurses and libterminfo,
so the recipes assuming existence of those still keep working.
  • Loading branch information
rofl0r committed May 22, 2016
1 parent b9841f0 commit 4764d2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/ncurses
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ for i in lib*.* ; do
l=$(echo $i | awk '{ p = index($1, "."); if(substr($1, p-1, 1) == "w") { a = substr($1, 0, p -2);} else { a = substr($1, 0, p -4) "_g"; } ; b = substr ($1, p); $0 = a b; print; }')
ln -s "$i" "$l"
done
# create empty libterminfo.a and symlinks to libcurses.a,so to be compatible
# with recipes written for netbsd-curses
"$CROSS_COMPILE"ar rc libterminfo.a
ln -sf libncurses.a libcurses.a
ln -sf libncurses.so libcurses.so
)

0 comments on commit 4764d2a

Please sign in to comment.