diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-01-24 00:29:46 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2011-01-24 00:36:20 -0800 |
commit | bb4c101bb2e02bb82b45bd0530499de1cd49c224 (patch) | |
tree | ab474d1a4a06d997231744e9cf1fdff4522ed43b | |
parent | 47f6429db1d520f5e5e8d660588f58292c1300ba (diff) | |
download | openembedded-bb4c101bb2e02bb82b45bd0530499de1cd49c224.tar.gz |
mc_4.7.5.bb: Add recipe for 4.7.5
* This works equally well on uclibc systems. Older versions
wont compile
* Fixes bugzilla/1749
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes/mc/mc_4.7.5.bb | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/recipes/mc/mc_4.7.5.bb b/recipes/mc/mc_4.7.5.bb new file mode 100644 index 0000000000..16b5816fab --- /dev/null +++ b/recipes/mc/mc_4.7.5.bb @@ -0,0 +1,65 @@ +require mc.inc +PR = "${INC_PR}.0" +HOMEPAGE = "http://www.midnight-commander.org/" + +SRC_URI = "http://www.midnight-commander.org/downloads/${P}.tar.gz \ + " +SRC_URI[md5sum] = "5bb6a0130df3f3df3092a7b1b3e14fc7" +SRC_URI[sha256sum] = "668d8d66ce092ad17caaa82b2a281b9486b2b2137e662b7e9ff20f77e0782401" + +EXTRA_OECONF = "--without-x --without-samba \ +--without-nfs --without-gpm-mouse --enable-charset \ +--with-screen=ncurses \ +ac_cv_path_PERL=${bindir}/perl \ +ac_cv_path_ZIP=${bindir}/zip \ +ac_cv_path_UNZIP=${bindir}/unzip \ +" + +do_unpack_append() { + bb.build.exec_func('do_utf8_conversion', d) +} +do_utf8_conversion() { + cd ${S}/doc/hints + iconv -f iso8859-1 -t utf-8 -o mc.hint.tmp mc.hint && mv mc.hint.tmp mc.hint + iconv -f iso8859-1 -t utf-8 -o mc.hint.es.tmp mc.hint.es && mv mc.hint.es.tmp mc.hint.es + iconv -f iso8859-1 -t utf-8 -o mc.hint.it.tmp mc.hint.it && mv mc.hint.it.tmp mc.hint.it + iconv -f iso8859-1 -t utf-8 -o mc.hint.nl.tmp mc.hint.nl && mv mc.hint.nl.tmp mc.hint.nl + iconv -f iso8859-2 -t utf-8 -o mc.hint.cs.tmp mc.hint.cs && mv mc.hint.cs.tmp mc.hint.cs + iconv -f iso8859-2 -t utf-8 -o mc.hint.hu.tmp mc.hint.hu && mv mc.hint.hu.tmp mc.hint.hu + iconv -f iso8859-2 -t utf-8 -o mc.hint.pl.tmp mc.hint.pl && mv mc.hint.pl.tmp mc.hint.pl + iconv -f iso8859-5 -t utf-8 -o mc.hint.sr.tmp mc.hint.sr && mv mc.hint.sr.tmp mc.hint.sr + iconv -f koi8-r -t utf8 -o mc.hint.ru.tmp mc.hint.ru && mv mc.hint.ru.tmp mc.hint.ru + iconv -f koi8-u -t utf8 -o mc.hint.uk.tmp mc.hint.uk && mv mc.hint.uk.tmp mc.hint.uk + iconv -f big5 -t utf8 -o mc.hint.zh.tmp mc.hint.zh && mv mc.hint.zh.tmp mc.hint.zh + iconv -f iso8859-5 -t utf-8 -o mc.menu.sr.tmp mc.menu.sr && mv mc.menu.sr.tmp mc.menu.sr + # convert docs to utf-8 + cd ${S}/doc/man/es + iconv -f iso8859-1 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in + iconv -f iso8859-1 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp + cd ${S}/doc/man/hu + iconv -f iso8859-2 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in + iconv -f iso8859-2 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp + cd ${S}/doc/man/it + iconv -f iso8859-1 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in + iconv -f iso8859-1 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp + cd ${S}/doc/man/pl + iconv -f iso8859-2 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in + iconv -f iso8859-2 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp + cd ${S}/doc/man/ru + iconv -f koi8-r -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in + iconv -f koi8-r -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp + cd ${S}/doc/man/sr + iconv -f iso8859-5 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in + iconv -f iso8859-5 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp + iconv -f iso8859-5 -t utf-8 -o mcserv.8.in.tmp mcserv.8.in && mv mcserv.8.in.tmp mcserv.8.in + cd ${S} +} + +do_configure_prepend() { + +AUTOFOO="config.guess config.sub depcomp install-sh missing mkinstalldirs" + + for i in ${AUTOFOO}; do + rm config/${i} + done +} |