DESCRIPTION = "GNU Midnight Commander is a file \ manager for free operating systems." HOMEPAGE = "http://www.ibiblio.org/mc/" LICENSE = "GPLv2" SECTION = "console/utils" PRIORITY = "optional" DEPENDS = "ncurses glib-2.0 glib-2.0-native" RDEPENDS_${PN} = "ncurses-terminfo" SRC_URI = "http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-${PV}.tar.gz" inherit autotools gettext EXTRA_OECONF = "--disable-glibtest --without-x --without-samba \ --without-nfs --without-gpm-mouse --with-screen=ncurses \ ac_cv_path_PERL=${bindir}/perl \ ac_cv_path_ZIP=${bindir}/zip \ ac_cv_path_UNZIP=${bindir}/unzip \ " EXTRA_OEMAKE = 'GLIB_CFLAGS_FOR_BUILD="$GLIB_CFLAGS_FOR_BUILD" GLIB_LIBS_FOR_BUILD="$GLIB_LIBS_FOR_BUILD" CC_FOR_BUILD="$CC_FOR_BUILD"' PACKAGES += "${PN}-extfs ${PN}-hilite" FILES_${PN} = "${bindir}/ ${libexecdir}/mc ${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/" FILES_${PN}-dbg += "${libexecdir}/mc/.debug" RRECOMMENDS_${PN} += "${PN}-extfs ${PN}-hilite" RDEPENDS_${PN}-extfs = "${PN}" 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() { # FIXME: Ugly! Should be done globally with respect to the host system (in classes) instead of NATIVE_PKGCONFIG_PATH: export HOST_PKG_CONFIG_PATH= export GLIB_CFLAGS_FOR_BUILD="`PKG_CONFIG_PATH="$HOST_PKG_CONFIG_PATH" PKG_CONFIG_SYSROOT_DIR="" pkg-config --cflags glib-2.0`" export GLIB_LIBS_FOR_BUILD="`PKG_CONFIG_PATH="$HOST_PKG_CONFIG_PATH" PKG_CONFIG_SYSROOT_DIR="" pkg-config --libs glib-2.0`" } 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 } 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') }