diff options
-rw-r--r-- | meta/packages/ncurses/ncurses-native_5.4.bb | 2 | ||||
-rw-r--r-- | meta/packages/ncurses/ncurses-sdk_5.4.bb | 3 | ||||
-rw-r--r-- | meta/packages/ncurses/ncurses.inc | 20 |
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 @@ | |||
1 | SECTION = "libs" | ||
2 | require ncurses_${PV}.bb | 1 | require ncurses_${PV}.bb |
3 | inherit native | 2 | inherit native |
4 | EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"' | 3 | EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"' |
5 | DEPENDS = "" | 4 | DEPENDS = "" |
6 | FILESPATH = "${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 @@ | |||
1 | require ncurses_${PV}.bb | ||
2 | inherit sdk | ||
3 | EXTRA_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 | ||
20 | PARALLEL_MAKE="" | 20 | PARALLEL_MAKE="" |
21 | 21 | ||
22 | FILESPATH = "${FILE_DIRNAME}/local:${FILE_DIRNAME}/ncurses-${PV}-${PR}:${FILE_DIRNAME}/ncurses-${PV}:${FILE_DIRNAME}/ncurses:${FILE_DIRNAME}" | ||
23 | |||
22 | EXTRA_OECONF = "--with-shared \ | 24 | EXTRA_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 | ||
82 | pkg_postinst_ncurses-tools () { | 86 | pkg_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 | ||
88 | pkg_prerm_ncurses-tools () { | 94 | pkg_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 | } |