Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2019 09:19:01 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511918 - in head/misc/pinfo: . files
Message-ID:  <201909130919.x8D9J171025996@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Sep 13 09:19:01 2019
New Revision: 511918
URL: https://svnweb.freebsd.org/changeset/ports/511918

Log:
  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>

Added:
  head/misc/pinfo/files/
  head/misc/pinfo/files/patch-macros_curses.m4   (contents, props changed)
Modified:
  head/misc/pinfo/Makefile

Modified: head/misc/pinfo/Makefile
==============================================================================
--- head/misc/pinfo/Makefile	Fri Sep 13 09:15:12 2019	(r511917)
+++ head/misc/pinfo/Makefile	Fri Sep 13 09:19:01 2019	(r511918)
@@ -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

Added: head/misc/pinfo/files/patch-macros_curses.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pinfo/files/patch-macros_curses.m4	Fri Sep 13 09:19:01 2019	(r511918)
@@ -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 )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909130919.x8D9J171025996>