Subject: mk/curses.buildlink3.mk by-passes builtin.mk's PREFER_PKGSRC?
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/07/2004 23:14:12
mk/curses.buildlink3.mk is:

.if !exists(/usr/include/curses.h) && \
    !exists(/usr/include/ncurses.h)
.  include "../../devel/ncurses/buildlink3.mk"
.endif

This means if the pkgsrc builder chose to use PREFER_PKGSRC=ncurses or
PREFER_PKGSRC=YES or PREFER.ncurses=pkgsrc, it would not be honored if
/usr/include/curses.h or /usr/include/ncurses.h exists.

Am I understanding this correctly? Should all the following packages be
fixed to replace
.include "../../mk/curses.buildlink3.mk"
with
.include "../../devel/ncurses/buildlink3.mk"
?

devel/physfs/buildlink3.mk:.include "../../mk/curses.buildlink3.mk"
audio/cam/Makefile:.include "../../mk/curses.buildlink3.mk"
audio/gmodplay/Makefile:.include "../../mk/curses.buildlink3.mk"
audio/lame/Makefile:.include "../../mk/curses.buildlink3.mk"
devel/physfs/Makefile:.include "../../mk/curses.buildlink3.mk"
editors/bvi/Makefile:.include "../../mk/curses.buildlink3.mk"
games/zombies/Makefile:.include "../../mk/curses.buildlink3.mk"
misc/gnome2-utils/Makefile:.include "../../mk/curses.buildlink3.mk"
net/trafshow/Makefile:.include "../../mk/curses.buildlink3.mk"
wip/elmo/Makefile:.include "../../mk/curses.buildlink3.mk"
www/lynx/Makefile:.  include "../../mk/curses.buildlink3.mk"

And should mk/curses.buildlink?.mk be removed?

 Jeremy C. Reed

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