summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-10 00:36:30 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-10 00:36:30 +0000
commitd0353d9c0058dce054c7cae3498f82f0613a19b3 (patch)
treeafe27c9223f5612a564a82c8f7f96a0a15b71241 /devel
parent937682e63b8e9f5e25d4080299d1fe5a542408fa (diff)
downloadpkgsrc-d0353d9c0058dce054c7cae3498f82f0613a19b3.tar.gz
Fix cross-build of ncurses by tool-depending on itself for tic.
ok agc
Diffstat (limited to 'devel')
-rw-r--r--devel/ncurses/Makefile.common9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
index 2e49072af42..97e1d98f684 100644
--- a/devel/ncurses/Makefile.common
+++ b/devel/ncurses/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.18 2012/10/31 11:17:31 asau Exp $
+# $NetBSD: Makefile.common,v 1.19 2013/05/10 00:36:30 riastradh Exp $
#
# used by devel/ncursesw/Makefile
@@ -33,6 +33,13 @@ CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses
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,