MC_VERSION:=4.5.0 MC_SOURCE:=mc-$(MC_VERSION).tar.gz MC_SITE:=http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/old MC_DIR:=$(SOURCE_DIR)/mc-$(MC_VERSION) MC_MAKE_DIR:=$(MAKE_DIR)/mc MC_TARGET_DIR:=$(PACKAGES_DIR)/mc-$(MC_VERSION)/root/usr/bin MC_TARGET_BINARY:=mc MC_PKG_VERSION:=0.2 MC_PKG_SOURCE:=mc-$(MC_VERSION)-dsmod-$(MC_PKG_VERSION).tar.bz2 MC_PKG_SITE:=http://www.eiband.info/dsmod $(DL_DIR)/$(MC_SOURCE): wget -P $(DL_DIR) $(MC_SITE)/$(MC_SOURCE) $(DL_DIR)/$(MC_PKG_SOURCE): @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(MC_PKG_SOURCE) $(MC_PKG_SITE) $(MC_DIR)/.unpacked: $(DL_DIR)/$(MC_SOURCE) tar -C $(SOURCE_DIR) $(VERBOSE) -xzf $(DL_DIR)/$(MC_SOURCE) for i in $(MC_MAKE_DIR)/patches/*.patch; do \ patch -d $(MC_DIR) -p0 < $$i; \ done touch $@ $(MC_DIR)/.configured: $(MC_DIR)/.unpacked ( cd $(MC_DIR); rm -f config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CC="$(TARGET_CC)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="-static-libgcc" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --program-prefix="" \ --program-suffix="" \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --datadir=/usr/share \ --includedir=/usr/include \ --infodir=/usr/share/info \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --localstatedir=/var \ --mandir=/usr/share/man \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ $(DISABLE_NLS) \ $(DISABLE_LARGEFILE) \ --without-x \ --without-subshell \ ); touch $@ $(MC_DIR)/src/$(MC_TARGET_BINARY): $(MC_DIR)/.configured PATH="$(TARGET_PATH)" $(MAKE) -C $(MC_DIR) $(PACKAGES_DIR)/.mc-$(MC_VERSION): $(DL_DIR)/$(MC_PKG_SOURCE) @tar -C $(PACKAGES_DIR) -xjf $(DL_DIR)/$(MC_PKG_SOURCE) @touch $@ mc: $(PACKAGES_DIR)/.mc-$(MC_VERSION) mc-package: $(PACKAGES_DIR)/.mc-$(MC_VERSION) tar -C $(PACKAGES_DIR) $(VERBOSE) --exclude .svn -cjf $(PACKAGES_BUILD_DIR)/$(MC_PKG_SOURCE) mc-$(MC_VERSION) mc-precompiled: $(MC_DIR)/src/$(MC_TARGET_BINARY) mc $(TARGET_STRIP) $(MC_DIR)/src/$(MC_TARGET_BINARY) $(TARGET_STRIP) $(MC_DIR)/src/cons.saver cp $(MC_DIR)/src/$(MC_TARGET_BINARY) $(MC_TARGET_DIR)/$(MC_TARGET_BINARY).bin cp $(MC_DIR)/src/cons.saver $(MC_TARGET_DIR)/cons.saver mc-source: $(MC_DIR)/.unpacked $(PACKAGES_DIR)/.mc-$(MC_VERSION) mc-clean: -$(MAKE) -C $(MC_DIR) clean rm -f $(PACKAGES_BUILD_DIR)/$(MC_PKG_SOURCE) mc-dirclean: rm -rf $(MC_DIR) rm -rf $(PACKAGES_DIR)/mc-$(MC_VERSION) rm -f $(PACKAGES_DIR)/.mc-$(MC_VERSION) mc-list: ifeq ($(strip $(DS_PACKAGE_MC)),y) @echo "S99mc-$(MC_VERSION)" >> .static else @echo "S99mc-$(MC_VERSION)" >> .dynamic endif