summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/packages/ncurses/ncurses-native_5.4.bb2
-rw-r--r--meta/packages/ncurses/ncurses-sdk_5.4.bb3
-rw-r--r--meta/packages/ncurses/ncurses.inc20
3 files changed, 17 insertions, 8 deletions
diff --git a/meta/packages/ncurses/ncurses-native_5.4.bb b/meta/packages/ncurses/ncurses-native_5.4.bb
index 19e379a15c..310a4bb27c 100644
--- a/meta/packages/ncurses/ncurses-native_5.4.bb
+++ b/meta/packages/ncurses/ncurses-native_5.4.bb
@@ -1,6 +1,4 @@
1SECTION = "libs"
2require ncurses_${PV}.bb 1require ncurses_${PV}.bb
3inherit native 2inherit native
4EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"' 3EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
5DEPENDS = "" 4DEPENDS = ""
6FILESPATH = "${FILE_DIRNAME}/local:${FILE_DIRNAME}/ncurses-${PV}-${PR}:${FILE_DIRNAME}/ncurses-${PV}:${FILE_DIRNAME}/ncurses:${FILE_DIRNAME}"
diff --git a/meta/packages/ncurses/ncurses-sdk_5.4.bb b/meta/packages/ncurses/ncurses-sdk_5.4.bb
new file mode 100644
index 0000000000..fb69c1ec7d
--- /dev/null
+++ b/meta/packages/ncurses/ncurses-sdk_5.4.bb
@@ -0,0 +1,3 @@
1require ncurses_${PV}.bb
2inherit sdk
3EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
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}