diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-02-25 20:30:09 +0000 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2009-02-27 14:11:34 +0100 |
commit | 9e49fd17ab1da5589b089b02ae8129ac7341c0a2 (patch) | |
tree | 69f89fddb23ad90609848f02158f2595276a30a3 /packages/mc/mc.inc | |
parent | 88539a8d8a18bde9bc50cfa97fa62b4b216f7d45 (diff) |
mc-4.6.2: Miscelaneous fixes:
* Correctly build help whiles cross compiling.
* Detect codeset from langinfo tables, not locale name.
* Ignore modifiers with Esc + Numeral F-keys emulation.
* Package locale dependent files to locale sub-packages.
* Install profile.
* Use standars stages.
* Fixed Serbian locale.
Diffstat (limited to 'packages/mc/mc.inc')
-rw-r--r-- | packages/mc/mc.inc | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/packages/mc/mc.inc b/packages/mc/mc.inc index 039fea6a61..5bafa9d1d7 100644 --- a/packages/mc/mc.inc +++ b/packages/mc/mc.inc @@ -4,18 +4,18 @@ HOMEPAGE = "http://www.ibiblio.org/mc/" LICENSE = "GPLv2" SECTION = "console/utils" PRIORITY = "optional" -DEPENDS = "ncurses glib-2.0" +DEPENDS = "ncurses glib-2.0 glib-2.0-native" RDEPENDS = "ncurses-terminfo" SRC_URI = "http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-${PV}.tar.gz" inherit autotools -EXTRA_OECONF = "--disable-glibtest --without-x --without-samba \ +EXTRA_OECONF = "--libexecdir=${libdir} --disable-glibtest --without-x --without-samba \ --without-nfs --without-gpm-mouse --with-screen=ncurses" PACKAGES += "${PN}-extfs ${PN}-hilite" -FILES_${PN} = "${bindir}/ ${libdir}/ ${datadir}/mc/*.*" +FILES_${PN} = "${bindir}/ ${libdir}/ ${datadir}/mc/*.charsets ${datadir}/mc/*.ext ${datadir}/mc/*.hint ${datadir}/mc/*.hlp ${datadir}/mc/*.lib ${datadir}/mc/*.menu ${datadir}/mc/*.rc ${datadir}/mc/bin /etc/profile.d" FILES_${PN}-extfs = "${datadir}/mc/extfs/" FILES_${PN}-hilite = "${datadir}/mc/syntax/" RRECOMMENDS_${PN} += "${PN}-extfs ${PN}-hilite" @@ -24,29 +24,26 @@ RDEPENDS_${PN}-hilite = "${PN}" PACKAGE_ARCH_${PN}-extfs = "all" PACKAGE_ARCH_${PN}-hilite = "all" +export CC_FOR_BUILD = "${BUILD_CC}" +export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" +export LD_FOR_BUILD = "${BUILD_CC}" +do_compile_prepend() { + export GLIB_CFLAGS_FOR_BUILD="`${STAGING_BINDIR_NATIVE}/pkg-config --cflags glib-2.0`" + export GLIB_LIBS_FOR_BUILD="`${STAGING_BINDIR_NATIVE}/pkg-config --libs glib-2.0`" +} -do_configure() { - gnu-configize - oe_runconf +do_install_append() { + if test -f ${D}${datadir}/mc/bin/mc.sh ; then + mkdir -p ${D}/etc/profile.d + mv ${D}${datadir}/mc/bin/mc.*sh ${D}/etc/profile.d + fi } -do_install() { - cd src - oe_runmake 'DESTDIR=${D}' install - cd ../syntax - oe_runmake 'DESTDIR=${D}' install - cd ../po - oe_runmake 'DESTDIR=${D}' install - cd ../vfs - oe_runmake 'DESTDIR=${D}' install - cd .. - - install -m 0644 lib/cedit.menu ${D}${datadir}/mc/ - install -m 0644 lib/edit.indent.rc ${D}${datadir}/mc/ - install -m 0644 lib/edit.spell.rc ${D}${datadir}/mc/ - install -m 0644 lib/mc.charsets ${D}${datadir}/mc/ - install -m 0644 lib/mc.ext ${D}${datadir}/mc/ - install -m 0644 lib/mc.lib ${D}${datadir}/mc/ - install -m 0644 lib/mc.menu ${D}${datadir}/mc/ - install -m 0644 lib/mc.menu.sr ${D}${datadir}/mc/ +PACKAGES_DYNAMIC = "mc-localedata-*" + +python populate_packages_prepend () { + mcdir = bb.data.expand('${datadir}/mc', d) + do_split_packages(d, mcdir, '^mc\.[hm][ile][npn].*\.(.*)$', + output_pattern='mc-locale-%s', + description='%s translation for mc') } |