blob: 38fb4aee96ff15882076d0332fe28c604ea8cf6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
BaseV := ${PV}
SnapV := 20030906
PV = ${BaseV}.${SnapV}
DESCRIPTION="Ncurses library"
SECTION="libs"
DEPENDS=virtual/libc
PROVIDES=${PV}-${BaseV} ${PV}-${BaseV}-${PR} \
${CATEGORY}/${PN}-${BaseV} ${CATEGORY}/${PN}-${BaseV}-${PR}
SRC_URI = ${GNU_MIRROR}/ncurses/${PN}-${BaseV}.tar.gz \
file://${FILESDIR}/${SnapV}.patch;patch=1
S = ${WORKDIR}/${PN}-${BaseV}
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=/etc/terminfo:/usr/share/terminfo \
--enable-overwrite
export BUILD_CC := ${BUILD_CC}
export BUILD_CCFLAGS=-I${S}/ncurses -I${S}/include ${BUILD_CFLAGS}
export BUILD_LDFLAGS=
do_compile () {
oe_runmake BUILD_LDFLAGS="" 'BUILD_CCFLAGS=${BUILD_CCFLAGS}'
}
do_stage () {
install -m 0755 lib/lib*.so.* ${STAGING_LIBDIR}/
cp -R include/* ${STAGING_DIR}/target/include/
ln -sf curses.h ${STAGING_DIR}/target/include/ncurses.h
ln -sf libpanel.so.5.3 ${STAGING_LIBDIR}/libpanel.so
ln -sf libform.so.5.3 ${STAGING_LIBDIR}/libform.so
ln -sf libmenu.so.5.3 ${STAGING_LIBDIR}/libmenu.so
ln -sf libncurses.so.5.3 ${STAGING_LIBDIR}/libncurses.so
}
|