summaryrefslogtreecommitdiffstats
path: root/meta/packages/ncurses/ncurses.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-04-22 11:10:29 +0000
committerRichard Purdie <richard@openedhand.com>2008-04-22 11:10:29 +0000
commitd1440e64604627602a73370cbdc46db1e25c2b98 (patch)
tree503294c9a1a2a1f14cef5ef7dc8239b2c3cb41ee /meta/packages/ncurses/ncurses.inc
parent5357a941481e22c9f85a297ab4e77cbb9174e6cd (diff)
downloadpoky-d1440e64604627602a73370cbdc46db1e25c2b98.tar.gz
ncurses: Add sdk version and tweak common files to adapt for this
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4304 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/ncurses/ncurses.inc')
-rw-r--r--meta/packages/ncurses/ncurses.inc20
1 files changed, 14 insertions, 6 deletions
diff --git a/meta/packages/ncurses/ncurses.inc b/meta/packages/ncurses/ncurses.inc
index 60cc9db66b..fd0885356b 100644
--- a/meta/packages/ncurses/ncurses.inc
+++ b/meta/packages/ncurses/ncurses.inc
@@ -19,6 +19,8 @@ FILES_${PN} = "${bindir}/tput ${bindir}/tset ${libdir}/lib*.so.* usr/share/tabse
19 19
20PARALLEL_MAKE="" 20PARALLEL_MAKE=""
21 21
22FILESPATH = "${FILE_DIRNAME}/local:${FILE_DIRNAME}/ncurses-${PV}-${PR}:${FILE_DIRNAME}/ncurses-${PV}:${FILE_DIRNAME}/ncurses:${FILE_DIRNAME}"
23
22EXTRA_OECONF = "--with-shared \ 24EXTRA_OECONF = "--with-shared \
23 --with-libtool \ 25 --with-libtool \
24 --without-profile \ 26 --without-profile \
@@ -74,18 +76,24 @@ do_install() {
74 ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm 76 ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm
75 fi 77 fi
76 78
77 mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN} 79 if [ "${PN}" = "ncurses" ]; then
78 mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN} 80 mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}
81 mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN}
82 fi
79} 83}
80 84
81 85
82pkg_postinst_ncurses-tools () { 86pkg_postinst_ncurses-tools () {
83 update-alternatives --install ${bindir}/clear clear clear.${PN} 100 87 if [ "${PN}" = "ncurses" ]; then
84 update-alternatives --install ${bindir}/reset reset reset.${PN} 100 88 update-alternatives --install ${bindir}/clear clear clear.${PN} 100
89 update-alternatives --install ${bindir}/reset reset reset.${PN} 100
90 fi
85} 91}
86 92
87 93
88pkg_prerm_ncurses-tools () { 94pkg_prerm_ncurses-tools () {
89 update-alternatives --remove clear clear.${PN} 95 if [ "${PN}" = "ncurses" ]; then
90 update-alternatives --remove reset reset.${PN} 96 update-alternatives --remove clear clear.${PN}
97 update-alternatives --remove reset reset.${PN}
98 fi
91} 99}