Fix USE_NCURSES with pkgng

Reported by:	graudeejs on irc://freenode/#pkgng
This commit is contained in:
Baptiste Daroussin 2012-05-06 13:54:57 +00:00
parent 6c395d15c9
commit a5b77af446
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296084

View file

@ -76,7 +76,7 @@ NCURSES_INSTALLED!= find "${PKG_DBDIR}/" -type f -name "+CONTENTS" -print0 | \
.if defined(NCURSES_INSTALLED) && ${NCURSES_INSTALLED} != ""
.if defined(WITH_PKGNG)
NCURSES_PORT= ${NCURSES_INSTALLED}
NCURSES_SHLIBFILE!= ${PKG_INFO} -ql ${NCURSES_INSTALLED} | grep "^`pkg query "%p" ${NCURSES_INSTALLED}`/lib/libncurses.so."
NCURSES_SHLIBFILE!= ${PKG_INFO} -ql ${NCURSES_INSTALLED} | grep -m 1 "^`pkg query "%p" ${NCURSES_INSTALLED}`/lib/libncurses.so."
.else
NCURSES_PORT!= grep "^@comment ORIGIN:" "${NCURSES_INSTALLED}" | ${CUT} -d : -f 2
NCURSES_SHLIBFILE!= grep -m 1 "^lib/libncurses.so." "${NCURSES_INSTALLED}"