mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
buildroot: move editors under package/editors and merge menus
Based on patch by Arnar Mar Sig.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
config BR2_PACKAGE_ED
|
||||
bool "ed"
|
||||
default n
|
||||
help
|
||||
A line-oriented text editor. Used to create, display, modify,
|
||||
and otherwise manipulate text files. Often used in scripts
|
||||
rather than invoked directly.
|
||||
|
||||
http://www.gnu.org/software/ed/
|
||||
@@ -1,59 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# ed
|
||||
#
|
||||
#############################################################
|
||||
ED_VERSION:=0.8
|
||||
ED_SOURCE:=ed-$(ED_VERSION).tar.bz2
|
||||
ED_SITE:=$(BR2_GNU_MIRROR)/ed/
|
||||
ED_CAT:=$(BZCAT)
|
||||
ED_DIR:=$(BUILD_DIR)/ed-$(ED_VERSION)
|
||||
ED_BINARY:=ed
|
||||
ED_TARGET_BINARY:=bin/ed
|
||||
|
||||
$(DL_DIR)/$(ED_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_SOURCE)
|
||||
|
||||
$(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE)
|
||||
$(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
toolchain/patch-kernel.sh $(ED_DIR) package/ed/ ed-\*.patch
|
||||
touch $@
|
||||
|
||||
$(ED_DIR)/.configured: $(ED_DIR)/.unpacked
|
||||
(cd $(ED_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
)
|
||||
touch $@
|
||||
|
||||
$(ED_DIR)/$(ED_BINARY): $(ED_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(ED_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(ED_TARGET_BINARY): $(ED_DIR)/$(ED_BINARY)
|
||||
$(INSTALL) -D $(ED_DIR)/$(ED_BINARY) $(TARGET_DIR)/$(ED_TARGET_BINARY)
|
||||
|
||||
ed: uclibc $(TARGET_DIR)/$(ED_TARGET_BINARY)
|
||||
|
||||
ed-source: $(DL_DIR)/$(ED_SOURCE)
|
||||
|
||||
ed-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(ED_DIR) uninstall
|
||||
-$(MAKE) -C $(ED_DIR) clean
|
||||
|
||||
ed-dirclean:
|
||||
rm -rf $(ED_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(strip $(BR2_PACKAGE_ED)),y)
|
||||
TARGETS+=ed
|
||||
endif
|
||||
Reference in New Issue
Block a user