1 #############################################################
5 #############################################################
6 UEMACS_VERSION
:=4.0.15-lt
7 UEMACS_SOURCE
:=em-
$(UEMACS_VERSION
).
tar.bz2
9 UEMACS_SITE
:=$(BR2_KERNEL_MIRROR
)/software
/editors
/uemacs
/
10 UEMACS_DIR
:=$(BUILD_DIR
)/em-
$(UEMACS_VERSION
)
12 UEMACS_TARGET_BINARY
:=usr
/bin
/emacs
14 $(DL_DIR
)/$(UEMACS_SOURCE
):
15 $(WGET
) -P
$(DL_DIR
) $(UEMACS_SITE
)/$(UEMACS_SOURCE
)
17 uemacs-source
: $(DL_DIR
)/$(UEMACS_SOURCE
)
19 $(UEMACS_DIR
)/.unpacked
: $(DL_DIR
)/$(UEMACS_SOURCE
)
20 $(UEMACS_CAT
) $(DL_DIR
)/$(UEMACS_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
21 toolchain
/patch-kernel.sh
$(UEMACS_DIR
) package
/uemacs
/ uemacs\
*.patch
22 touch
$(UEMACS_DIR
)/.unpacked
24 $(UEMACS_DIR
)/$(UEMACS_BINARY
): $(UEMACS_DIR
)/.unpacked
25 $(MAKE
) -C
$(UEMACS_DIR
) \
26 CC
="$(TARGET_CC)" DEFINES
="-DAUTOCONF -DPOSIX -DUSG" CFLAGS
+="$(TARGET_CFLAGS) " LIBS
=-lncurses
27 $(STRIPCMD
) $(UEMACS_DIR
)/$(UEMACS_BINARY
)
29 $(TARGET_DIR
)/$(UEMACS_TARGET_BINARY
): $(UEMACS_DIR
)/$(UEMACS_BINARY
)
30 $(INSTALL
) -m
0755 -D
$(UEMACS_DIR
)/$(UEMACS_BINARY
) $(TARGET_DIR
)/$(UEMACS_TARGET_BINARY
)
32 uemacs
: ncurses
$(TARGET_DIR
)/$(UEMACS_TARGET_BINARY
)
35 rm -f
$(TARGET_DIR
)/$(UEMACS_TARGET_BINARY
)
36 -$(MAKE
) -C
$(UEMACS_DIR
) clean
41 #############################################################
43 # Toplevel Makefile options
45 #############################################################
46 ifeq ($(BR2_PACKAGE_UEMACS
),y
)