mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
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
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
SECTION = "libs"
|
||||
require ncurses_${PV}.bb
|
||||
inherit native
|
||||
EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
|
||||
DEPENDS = ""
|
||||
FILESPATH = "${FILE_DIRNAME}/local:${FILE_DIRNAME}/ncurses-${PV}-${PR}:${FILE_DIRNAME}/ncurses-${PV}:${FILE_DIRNAME}/ncurses:${FILE_DIRNAME}"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
require ncurses_${PV}.bb
|
||||
inherit sdk
|
||||
EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
|
||||
@@ -19,6 +19,8 @@ FILES_${PN} = "${bindir}/tput ${bindir}/tset ${libdir}/lib*.so.* usr/share/tabse
|
||||
|
||||
PARALLEL_MAKE=""
|
||||
|
||||
FILESPATH = "${FILE_DIRNAME}/local:${FILE_DIRNAME}/ncurses-${PV}-${PR}:${FILE_DIRNAME}/ncurses-${PV}:${FILE_DIRNAME}/ncurses:${FILE_DIRNAME}"
|
||||
|
||||
EXTRA_OECONF = "--with-shared \
|
||||
--with-libtool \
|
||||
--without-profile \
|
||||
@@ -74,18 +76,24 @@ do_install() {
|
||||
ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm
|
||||
fi
|
||||
|
||||
mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}
|
||||
mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN}
|
||||
if [ "${PN}" = "ncurses" ]; then
|
||||
mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}
|
||||
mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN}
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
pkg_postinst_ncurses-tools () {
|
||||
update-alternatives --install ${bindir}/clear clear clear.${PN} 100
|
||||
update-alternatives --install ${bindir}/reset reset reset.${PN} 100
|
||||
if [ "${PN}" = "ncurses" ]; then
|
||||
update-alternatives --install ${bindir}/clear clear clear.${PN} 100
|
||||
update-alternatives --install ${bindir}/reset reset reset.${PN} 100
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
pkg_prerm_ncurses-tools () {
|
||||
update-alternatives --remove clear clear.${PN}
|
||||
update-alternatives --remove reset reset.${PN}
|
||||
if [ "${PN}" = "ncurses" ]; then
|
||||
update-alternatives --remove clear clear.${PN}
|
||||
update-alternatives --remove reset reset.${PN}
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user