uemacs: convert to GENTARGETS
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
acf2af2d91
commit
ba030e960f
@ -3,46 +3,24 @@
|
|||||||
# uemacs
|
# uemacs
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
UEMACS_VERSION:=4.0.15-lt
|
|
||||||
UEMACS_SOURCE:=em-$(UEMACS_VERSION).tar.bz2
|
|
||||||
UEMACS_CAT:=$(BZCAT)
|
|
||||||
UEMACS_SITE:=$(BR2_KERNEL_MIRROR)/software/editors/uemacs/
|
|
||||||
UEMACS_DIR:=$(BUILD_DIR)/em-$(UEMACS_VERSION)
|
|
||||||
UEMACS_BINARY:=em
|
|
||||||
UEMACS_TARGET_BINARY:=usr/bin/emacs
|
|
||||||
|
|
||||||
$(DL_DIR)/$(UEMACS_SOURCE):
|
UEMACS_VERSION = 4.0.15-lt
|
||||||
$(call DOWNLOAD,$(UEMACS_SITE)/$(UEMACS_SOURCE))
|
UEMACS_SOURCE = em-$(UEMACS_VERSION).tar.bz2
|
||||||
|
UEMACS_SITE = $(BR2_KERNEL_MIRROR)/software/editors/uemacs/
|
||||||
|
UEMACS_DEPENDENCIES = ncurses
|
||||||
|
|
||||||
uemacs-source: $(DL_DIR)/$(UEMACS_SOURCE)
|
define UEMACS_BUILD_CMDS
|
||||||
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||||
|
CC="$(TARGET_CC)" DEFINES="-DAUTOCONF -DPOSIX -DUSG" \
|
||||||
|
CFLAGS+="$(TARGET_CFLAGS) " LIBS="$(TARGET_CFLAGS) -lncurses"
|
||||||
|
endef
|
||||||
|
|
||||||
$(UEMACS_DIR)/.unpacked: $(DL_DIR)/$(UEMACS_SOURCE)
|
define UEMACS_INSTALL_TARGET_CMDS
|
||||||
$(UEMACS_CAT) $(DL_DIR)/$(UEMACS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(INSTALL) -m 0755 -D $(@D)/em $(TARGET_DIR)/usr/bin/em
|
||||||
support/scripts/apply-patches.sh $(UEMACS_DIR) package/uemacs/ uemacs\*.patch
|
endef
|
||||||
touch $(UEMACS_DIR)/.unpacked
|
|
||||||
|
|
||||||
$(UEMACS_DIR)/$(UEMACS_BINARY): $(UEMACS_DIR)/.unpacked
|
define UEMACS_UNINSTALL_TARGET_CMDS
|
||||||
$(MAKE) -C $(UEMACS_DIR) \
|
rm -f $(TARGET_DIR)/usr/bin/em
|
||||||
CC="$(TARGET_CC)" DEFINES="-DAUTOCONF -DPOSIX -DUSG" CFLAGS+="$(TARGET_CFLAGS) " LIBS="$(TARGET_CFLAGS) -lncurses"
|
endef
|
||||||
$(STRIPCMD) $(UEMACS_DIR)/$(UEMACS_BINARY)
|
|
||||||
|
|
||||||
$(TARGET_DIR)/$(UEMACS_TARGET_BINARY): $(UEMACS_DIR)/$(UEMACS_BINARY)
|
$(eval $(call GENTARGETS))
|
||||||
$(INSTALL) -m 0755 -D $(UEMACS_DIR)/$(UEMACS_BINARY) $(TARGET_DIR)/$(UEMACS_TARGET_BINARY)
|
|
||||||
|
|
||||||
uemacs: ncurses $(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 ($(BR2_PACKAGE_UEMACS),y)
|
|
||||||
TARGETS+=uemacs
|
|
||||||
endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user