diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-15 09:36:23 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-15 09:36:23 +0000 |
commit | 2dcf8eb5ad3e6800c0b5d704963a5552fb07bbbf (patch) | |
tree | b62059a1289b653d286e16fe7af387de7a530f90 | |
parent | abec0467722546cf0b82a39f2eecd1388cccaf23 (diff) |
Merge oe-devel@oe-devel.bkbits.net:openembedded
into hyperion.kergoth.com:/home/kergoth/code/openembedded
2004/12/15 03:36:22-06:00 ti.com!kergoth
Apply patch to ncurses to use gcc symbol visibility if it's available.
BKrev: 41c00597J3NEYM0DeTAN52Xnkh73HA
-rw-r--r-- | packages/ncurses/ncurses/visibility.patch | 0 | ||||
-rw-r--r-- | packages/ncurses/ncurses_5.4.bb | 67 |
2 files changed, 67 insertions, 0 deletions
diff --git a/packages/ncurses/ncurses/visibility.patch b/packages/ncurses/ncurses/visibility.patch new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/ncurses/ncurses/visibility.patch diff --git a/packages/ncurses/ncurses_5.4.bb b/packages/ncurses/ncurses_5.4.bb index e69de29bb2..b4faa4f458 100644 --- a/packages/ncurses/ncurses_5.4.bb +++ b/packages/ncurses/ncurses_5.4.bb @@ -0,0 +1,67 @@ +DESCRIPTION = "Ncurses library" +HOMEPAGE = "http://www.gnu.org/software/ncurses/ncurses.html" +LICENSE = "MIT" +SECTION = "libs" +DEPENDS = "ncurses-native" +PACKAGES_append = " ncurses-terminfo" +FILES_ncurses_append = " ${datadir}/tabset" +FILES_ncurses-terminfo = "${datadir}/terminfo" +RSUGGESTS_${PN} = "ncurses-terminfo" +PR = "r4" + +SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz \ + file://visibility.patch;patch=1" +S = "${WORKDIR}/ncurses-${PV}" + +inherit autotools + +EXTRA_OECONF = "--with-shared \ + --without-profile \ + --without-debug \ + --disable-rpath \ + --enable-echo \ + --enable-const \ + --without-ada \ + --enable-termcap \ + --without-cxx-binding \ + --with-terminfo-dirs=${sysconfdir}/terminfo:${datadir}/terminfo \ + --enable-overwrite" +export BUILD_CCFLAGS = "-I${S}/ncurses -I${S}/include ${BUILD_CFLAGS}" +export BUILD_LDFLAGS = "" +export EXTRA_OEMAKE = '"BUILD_LDFLAGS=" "BUILD_CCFLAGS=${BUILD_CCFLAGS}"' + +do_stage () { + for i in libncurses libpanel libform libmenu; do + oe_libinstall -so -C lib $i ${STAGING_LIBDIR} + done + for h in ncurses_*.h curses.h eti.h form.h menu.h panel.h \ + termcap.h term.h unctrl.h; do + install -m 0644 include/$h ${STAGING_INCDIR}/ + done + ln -sf curses.h ${STAGING_INCDIR}/ncurses.h +} + +do_install() { + autotools_do_install + + # include some basic terminfo files + # stolen ;) from gentoo and modified a bit + for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86 + do + local termfile="$(find "${D}/usr/share/terminfo/" -name "${x}" 2>/dev/null)" + local basedir="$(basename $(dirname "${termfile}"))" + + if [ -n "${termfile}" ] + then + install -d ${D}/etc/terminfo/${basedir} + mv ${termfile} ${D}/etc/terminfo/${basedir}/ + ln -s /etc/terminfo/${basedir}/${x} \ + ${D}/usr/share/terminfo/${basedir}/${x} + fi + done + # i think we can use xterm-color as default xterm + if [ -e ${D}/etc/terminfo/x/xterm-color ] + then + ln -sf xterm-color ${D}/etc/terminfo/x/xterm + fi +} |