gnome-screensaver 2.28.3: fix up configure as well now
[openembedded.git] / recipes / bash / bash.inc
blob4eba6895baf67e10eac568dd5b6df0d4f7171317
1 DESCRIPTION = "An sh-compatible command language interpreter."
2 HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
3 DEPENDS = "ncurses"
4 SECTION = "base/shell"
5 LICENSE = "GPL"
7 inherit autotools gettext
9 PARALLEL_MAKE = ""
11 SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz"
12 S = "${WORKDIR}/bash-${PV}"
14 bindir = "/bin"
15 sbindir = "/sbin"
17 EXTRA_OECONF = "--with-ncurses"
19 do_configure () {
20         gnu-configize
21         oe_runconf
24 do_compile_prepend() {
25         cd builtins
26         touch mkbuiltins.o
27         ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} -I${S}/include -I${S} -o mkbuiltins mkbuiltins.c
28         cd ${S}
31 pkg_postinst () {
32         touch $D${sysconfdir}/shells
33         grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells
34         grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells