Fix cross-build of ncurses by tool-depending on itself for tic. Index: devel/ncurses/Makefile.common =================================================================== RCS file: /cvsroot/pkgsrc/devel/ncurses/Makefile.common,v retrieving revision 1.18 diff -p -u -r1.18 Makefile.common --- devel/ncurses/Makefile.common 31 Oct 2012 11:17:31 -0000 1.18 +++ devel/ncurses/Makefile.common 23 Apr 2013 13:29:15 -0000 @@ -33,6 +33,13 @@ CONFIGURE_ARGS+= --includedir=${PREFIX}/ MAKE_JOBS_SAFE= no .include "../../mk/bsd.prefs.mk" + +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) +TOOL_DEPENDS+= ncurses-${NC_VERS}:../../devel/ncurses +CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q} +CONFIGURE_ENV+= ac_cv_path_TIC_PATH=${LOCALBASE}/bin/tic +.endif + .if !defined(TOOLS_TBL) # This means that groff needs to be built to get tbl(1). # We can only build groff if there is a builtin implementation of curses,