summaryrefslogtreecommitdiff
path: root/nonworking/ncurses/ncurses_4.2.oe
blob: fdaf573ca077247ffb2c41be3103aba31574881e (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
DESCRIPTION="Ncurses library"
SECTION="libs"
DEPENDS=
SRC_URI = ${GNU_MIRROR}/ncurses/${P}.tar.gz \
	  file://${FILESDIR}/mk_shared_lib.patch;patch=1 \
	  file://${FILESDIR}/run_tic.patch;patch=1

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 HOSTCCFLAGS=-I${S}/ncurses -I${S}/include ${BUILD_CFLAGS}
export HOSTLDFLAGS=
export LD := ${CC}

do_compile () {
	oe_runmake -C progs 'HOSTCC=${BUILD_CC}' 'HOSTLDFLAGS=' \
		   'HOSTCCFLAGS=${HOSTCCFLAGS}' 'CC=${BUILD_CC}' \
		   'LINK=${BUILD_CXX}' 'CFLAGS=${HOSTCCFLAGS}' \
		   'LDFLAGS=-lncurses' tic
	oe_runmake 'HOSTCC=${HOSTCC}' 'HOSTLDFLAGS=' 'HOSTCCFLAGS=${HOSTCCFLAGS}'
}

do_stage () {
	install -m 0755 lib/lib*.so.* ${STAGING_LIBDIR}/
	cp -R include/* ${STAGING_DIR}/target/include/
	ln -sf libpanel.so.${PV} ${STAGING_LIBDIR}/libpanel.so
	ln -sf libform.so.${PV} ${STAGING_LIBDIR}/libform.so
	ln -sf libmenu.so.${PV} ${STAGING_LIBDIR}/libmenu.so
	ln -sf libncurses.so.${PV} ${STAGING_LIBDIR}/libncurses.so
}