aboutsummaryrefslogtreecommitdiff
path: root/package/uemacs/uemacs.mk
blob: b7b942c658b8476b358b2af9ac37399956259248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#############################################################
#
# uemacs
#
#############################################################

UEMACS_VERSION = 4.0.15-lt
UEMACS_SOURCE = em-$(UEMACS_VERSION).tar.bz2
UEMACS_SITE = $(BR2_KERNEL_MIRROR)/software/editors/uemacs/
UEMACS_DEPENDENCIES = ncurses

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

define UEMACS_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0755 -D $(@D)/em $(TARGET_DIR)/usr/bin/em
endef

define UEMACS_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/bin/em
endef

$(eval $(call GENTARGETS))