summaryrefslogtreecommitdiff
path: root/devel/ncurses/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2010-06-21 14:49:00 +0000
committertron <tron@pkgsrc.org>2010-06-21 14:49:00 +0000
commit4a652e5874a2f8b9e5809c58d5575e334f63babb (patch)
tree21daa4e5c5bd61a754bfd0530da82aaa8c849fa4 /devel/ncurses/Makefile
parent9a5a1277f54c476c545f0e7fe1359d1e2c893a57 (diff)
downloadpkgsrc-4a652e5874a2f8b9e5809c58d5575e334f63babb.tar.gz
Determine the installed terminfo database files dynammically. This deals
not only with the different directory structure under Mac OS X (due to the case-insensitive file-system) but also with the files which don't get installed under Solaris. Bump the package revision of the "ncurses" package as the binary package changed under Mac OS X. This fixes PR pkg/43446 by Edgar Fuss.
Diffstat (limited to 'devel/ncurses/Makefile')
-rw-r--r--devel/ncurses/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index 9ef52ab1ebc..5dbf76cb4f9 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.83 2008/11/16 17:03:00 adrianp Exp $
+# $NetBSD: Makefile,v 1.84 2010/06/21 14:49:00 tron Exp $
.include "Makefile.common"
+PKGREVISION= 4
COMMENT= CRT screen handling and optimization package
INSTALLATION_DIRS+= share/examples
@@ -29,6 +30,8 @@ SUBST_SED.ti+= -e '/^screen.mlterm/,/^$$/d'
SUBST_SED.ti+= -e '/^screen.rxvt/,/^$$/d'
.endif
+PLIST_SRC= ${PKGDIR}/PLIST ${WRKDIR}/PLIST.terminfo
+
post-configure:
cd ${WRKSRC}/man; \
for f in *.1m; do \
@@ -41,5 +44,7 @@ post-configure:
post-install:
${INSTALL_DATA} ${WRKSRC}/c++/demo.cc \
${DESTDIR}${PREFIX}/share/examples/ncurses++demo.cc
+ ${FIND} ${DESTDIR}${PREFIX}/${TERMINFODIR} -type f -print | ${SORT} | \
+ ${SED} -e "s,^${DESTDIR}${PREFIX}/,," >${WRKDIR}/PLIST.terminfo
.include "../../mk/bsd.pkg.mk"