Subject: Re: Building against ncurses (pkgsrc)
To: Adrian Maier <adrian.maier@gmail.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 12/15/2005 00:08:13
On Thu, 15 Dec 2005, Adrian Maier wrote:

> This program needs to be built against the ncurses located in /usr/pkg
> because:
> - it has a global variable fullname that conflicts with a function
>  defined in /usr/include/curses.h
> - it uses some functions that don't exist in /usr/include/curses.h

tech-pkg is a good list to discuss pkgsrc related questions. You can reply 
there if you need to.

In your pkgsrc package use:

USE_NCURSES=	# list functions that are missing just to let us know
.include "../../devel/ncurses/buildlink3.mk"

Alternatively, you could instead use INCOMPAT_CURSES where you could list 
the MACHINE_PLATFORMs (maybe using wildcards) that do not provide the 
ncurses that is good enough for you. (And still include the 
devel/ncurses/buildlink3.mk.)

  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/