Background: DragonFly master has effectively removed ncurses from base
(it's still there, but in a private area dports won't find). As a result,
literally hundreds of ports broken. That's how many are missing
USES=ncurses. That's not a big problem because the infrastructure blanket
will allow me to fix those.
The problem is that ports ncurces handling is broken in two ways:
- There is no library path (-L) set in LDFLAGS. For compilers that do no automatically search /usr/local/lib, that's broken, and of course if a non-default localbase is used, it's broken
- The LDFLAGS that are set regarding rpath is wrong. It uses the -Wl, prefix which is for the compiler, not the linker.
The commit fixes both problem by:
A) adding -L${LOCALBASE}/lib to LDFLAGS
- correcting -Wl,-rpath=${NCURSESPATH} to "-rpath ${NCURSESPATH}"
DragonFly will be extremely helpful to FreeBSD because we have to fix
all these ncurses ports, which will be very nice for FreeBSD if/when
they privatize ncurses library in a similar fashion.