Merge oe-devel@oe-devel.bkbits.net:packages
[vuplus_openembedded] / ncurses / ncurses_5.3.oe
1 BaseV := "${PV}"
2 SnapV := "20030906"
3 PV = "${BaseV}.${SnapV}"
4
5 DESCRIPTION = "Ncurses library"
6 SECTION = "libs"
7 DEPENDS = "ncurses-native"
8 PROVIDES = "${PV}-${BaseV} ${PV}-${BaseV}-${PR} \
9          ${CATEGORY}/${PN}-${BaseV} ${CATEGORY}/${PN}-${BaseV}-${PR} "
10 PACKAGES_append = " ncurses-terminfo"
11 FILES_ncurses_append = " ${datadir}/tabset"
12 FILES_ncurses-terminfo = "${datadir}/terminfo"
13
14 SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${BaseV}.tar.gz \
15            file://${SnapV}.patch;patch=1 \
16            file://configure.patch;patch=1"
17 S = "${WORKDIR}/ncurses-${BaseV}"
18
19 inherit autotools
20
21 EXTRA_OECONF = "--with-shared \
22                 --without-profile \
23                 --without-debug \
24                 --disable-rpath \
25                 --enable-echo \
26                 --enable-const \
27                 --without-ada \
28                 --enable-termcap \
29                 --without-cxx-binding \
30                 --with-terminfo-dirs=${sysconfdir}/terminfo:${datadir}/terminfo \
31                 --enable-overwrite"
32 export BUILD_CCFLAGS = "-I${S}/ncurses -I${S}/include ${BUILD_CFLAGS}"
33 export BUILD_LDFLAGS = ""
34
35 do_configure_prepend () {
36         if [ -e aclocal.m4 -a ! -e acinclude.m4 ]; then
37                 cat aclocal.m4 > acinclude.m4
38         fi
39 }
40
41 do_configure () {
42 # override this function to avoid the autoconf/automake/aclocal/autoheader
43 # calls for now
44         gnu-configize
45         oe_runconf
46 }
47
48 do_compile () {
49         oe_runmake BUILD_LDFLAGS="" 'BUILD_CCFLAGS=${BUILD_CCFLAGS}'
50 }
51
52 do_stage () {
53         for h in ncurses_*.h curses.h eti.h form.h menu.h panel.h \
54                 termcap.h term.h unctrl.h; do
55                        install -m 0644 include/$h ${STAGING_INCDIR}/
56         done
57         ln -sf curses.h ${STAGING_INCDIR}/ncurses.h
58         for i in ncurses panel form menu; do
59                 oe_libinstall -so -C lib $i ${STAGING_LIBDIR}
60         done
61 }