2006-03-21 12:22:52 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# uemacs
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
UEMACS_VER:=4.0.15-lt
|
|
|
|
UEMACS_SOURCE:=em-$(UEMACS_VER).tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
UEMACS_CAT:=$(BZCAT)
|
2006-03-21 12:22:52 +01:00
|
|
|
UEMACS_SITE:=ftp://ftp.kernel.org/pub/software/editors/uemacs/
|
|
|
|
UEMACS_DIR:=$(BUILD_DIR)/em-$(UEMACS_VER)
|
|
|
|
UEMACS_BINARY:=em
|
|
|
|
UEMACS_TARGET_BINARY:=usr/bin/emacs
|
|
|
|
|
|
|
|
$(DL_DIR)/$(UEMACS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(UEMACS_SITE)/$(UEMACS_SOURCE)
|
|
|
|
|
|
|
|
uemacs-source: $(DL_DIR)/$(UEMACS_SOURCE)
|
|
|
|
|
|
|
|
$(UEMACS_DIR)/.unpacked: $(DL_DIR)/$(UEMACS_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(UEMACS_CAT) $(DL_DIR)/$(UEMACS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2006-03-21 12:22:52 +01:00
|
|
|
toolchain/patch-kernel.sh $(UEMACS_DIR) package/uemacs/ uemacs\*.patch
|
|
|
|
touch $(UEMACS_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(UEMACS_DIR)/$(UEMACS_BINARY): $(UEMACS_DIR)/.unpacked
|
|
|
|
$(MAKE) -C $(UEMACS_DIR) \
|
2006-10-06 15:02:11 +02:00
|
|
|
CC="$(TARGET_CC)" DEFINES="-DAUTOCONF -DPOSIX -DUSG" CFLAGS+="$(TARGET_CFLAGS) " LIBS=-lcurses
|
2006-03-21 12:22:52 +01:00
|
|
|
$(STRIP) $(UEMACS_DIR)/$(UEMACS_BINARY)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(UEMACS_TARGET_BINARY): $(UEMACS_DIR)/$(UEMACS_BINARY)
|
|
|
|
$(INSTALL) -m 0755 -D $(UEMACS_DIR)/$(UEMACS_BINARY) $(TARGET_DIR)/$(UEMACS_TARGET_BINARY)
|
|
|
|
|
|
|
|
uemacs: uclibc $(TARGET_DIR)/$(UEMACS_TARGET_BINARY)
|
|
|
|
|
|
|
|
uemacs-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(UEMACS_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(UEMACS_DIR) clean
|
|
|
|
|
|
|
|
uemacs-dirclean:
|
|
|
|
rm -rf $(UEMACS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_UEMACS)),y)
|
|
|
|
TARGETS+=uemacs
|
|
|
|
endif
|