2006-03-21 12:22:52 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# uemacs
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
UEMACS_VERSION:=4.0.15-lt
|
|
|
|
UEMACS_SOURCE:=em-$(UEMACS_VERSION).tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
UEMACS_CAT:=$(BZCAT)
|
2008-03-11 19:54:17 +01:00
|
|
|
UEMACS_SITE:=$(BR2_KERNEL_MIRROR)/software/editors/uemacs/
|
2007-07-11 16:06:06 +02:00
|
|
|
UEMACS_DIR:=$(BUILD_DIR)/em-$(UEMACS_VERSION)
|
2006-03-21 12:22:52 +01:00
|
|
|
UEMACS_BINARY:=em
|
|
|
|
UEMACS_TARGET_BINARY:=usr/bin/emacs
|
|
|
|
|
|
|
|
$(DL_DIR)/$(UEMACS_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(UEMACS_SITE),$(UEMACS_SOURCE))
|
2006-03-21 12:22:52 +01:00
|
|
|
|
|
|
|
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) -
|
2010-04-26 22:03:37 +02:00
|
|
|
toolchain/patch-kernel.sh $(UEMACS_DIR) package/uemacs/ uemacs\*.patch
|
2006-03-21 12:22:52 +01:00
|
|
|
touch $(UEMACS_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(UEMACS_DIR)/$(UEMACS_BINARY): $(UEMACS_DIR)/.unpacked
|
|
|
|
$(MAKE) -C $(UEMACS_DIR) \
|
2010-05-15 20:05:26 +02:00
|
|
|
CC="$(TARGET_CC)" DEFINES="-DAUTOCONF -DPOSIX -DUSG" CFLAGS+="$(TARGET_CFLAGS) " LIBS="$(TARGET_CFLAGS) -lncurses"
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(UEMACS_DIR)/$(UEMACS_BINARY)
|
2006-03-21 12:22:52 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(UEMACS_TARGET_BINARY): $(UEMACS_DIR)/$(UEMACS_BINARY)
|
|
|
|
$(INSTALL) -m 0755 -D $(UEMACS_DIR)/$(UEMACS_BINARY) $(TARGET_DIR)/$(UEMACS_TARGET_BINARY)
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
uemacs: ncurses $(TARGET_DIR)/$(UEMACS_TARGET_BINARY)
|
2006-03-21 12:22:52 +01:00
|
|
|
|
|
|
|
uemacs-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(UEMACS_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(UEMACS_DIR) clean
|
|
|
|
|
|
|
|
uemacs-dirclean:
|
|
|
|
rm -rf $(UEMACS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_UEMACS),y)
|
2006-03-21 12:22:52 +01:00
|
|
|
TARGETS+=uemacs
|
|
|
|
endif
|