summaryrefslogtreecommitdiff
path: root/devel/ncurses/Makefile
diff options
context:
space:
mode:
authorsalo <salo>2002-11-17 11:23:15 +0000
committersalo <salo>2002-11-17 11:23:15 +0000
commitf4d2939f70ea828f3a5fda104147e7762bea2f70 (patch)
tree4216e9bd2b9beaf2f8b9c969771270008a370a10 /devel/ncurses/Makefile
parent79ea365fc38ea4699d2c43ac202d06de8ba65e8e (diff)
downloadpkgsrc-f4d2939f70ea828f3a5fda104147e7762bea2f70.tar.gz
Fix TERMINFODIR handling on Solaris. Closes pkg/18622
Diffstat (limited to 'devel/ncurses/Makefile')
-rw-r--r--devel/ncurses/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index 7bc71d0a029..9d0cee170a4 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2002/09/01 18:36:35 tron Exp $
+# $NetBSD: Makefile,v 1.41 2002/11/17 11:23:15 salo Exp $
DISTNAME= ncurses-${NC_VERS}
NC_VERS= 5.2
@@ -27,13 +27,19 @@ CONFIGURE_ARGS+= --with-manpage-tbl
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == SunOS)
-PLIST_SUBST+= NOT_SUNOS="@comment " TERMINFODIR=share/lib/terminfo
-
+PLIST_SUBST+= NOT_SUNOS="@comment "
TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src
+TERMINFODIR= share/lib/terminfo
.else
-PLIST_SUBST+= NOT_SUNOS= TERMINFODIR=share/terminfo
+PLIST_SUBST+= NOT_SUNOS=""
+TERMINFODIR= share/terminfo
.endif
+PLIST_SUBST+= TERMINFODIR="${TERMINFODIR}"
+
+CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR}
+CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR}
+
# Remove these manpages from the distribution so they won't get installed
CURSES_NO_MAN= clear.1 tput.1 tset.1