Ensure the port is linked to libncursesw to properly support wildchar.

While here make it use USES=ncurses to be able to properly choose between
base ncurses and the port version

PR:		240553
Reported by:	Victor Sudakov <vas@mpeks.tomsk.su>
This commit is contained in:
Baptiste Daroussin 2019-09-13 09:19:01 +00:00
parent 6bcc76c417
commit 0532235a8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511918
2 changed files with 18 additions and 4 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= pinfo
PORTVERSION= 0.6.10
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= misc
MASTER_SITES= GENTOO \
http://alioth.debian.org/frs/download.php/file/3351/
@ -16,10 +16,9 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_aarch64= Fails to link: missing sbrk
USES= autoreconf gettext-tools libtool makeinfo ncurses tar:bzip2
USES= autoreconf gettext-tools libtool localbase makeinfo ncurses tar:bzip2
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-curses=${NCURSESBASE}
INFO= pinfo
PLIST_FILES= bin/pinfo etc/pinforc man/man1/pinfo.1.gz

View file

@ -0,0 +1,15 @@
--- macros/curses.m4.orig 2006-03-09 19:44:48 UTC
+++ macros/curses.m4
@@ -182,6 +182,12 @@ AC_DEFUN([AC_SEARCH_CURSES_H], [
if test "x$curses_location" != "xfalse"
then
dnl check this particular location
+ AC_SEARCH_CURSES_FILE($curses_location/include, ncurses/ncurses.h,
+ -L$curses_location/lib -lncursesw,
+ -I$curses_location/include )
+ AC_SEARCH_CURSES_FILE($curses_location/include, ncurses.h,
+ -L$curses_location/lib -lncursesw,
+ -I$curses_location/include )
AC_SEARCH_CURSES_FILE($curses_location/include, ncursesw/ncurses.h,
-L$curses_location/lib -lncursesw,
-I$curses_location/include )