mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
grep: convert to Makefile.autotools.in format
This commit is contained in:
parent
895a027353
commit
8bcb19eb50
@ -3,65 +3,12 @@
|
|||||||
# grep
|
# grep
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
GNUGREP_VERSION:=2.5.3
|
GREP_VERSION:=2.5.3
|
||||||
GNUGREP_SOURCE:=grep-$(GNUGREP_VERSION).tar.gz
|
GREP_SOURCE:=grep-$(GREP_VERSION).tar.bz2
|
||||||
GNUGREP_SITE:=$(BR2_GNU_MIRROR)/grep
|
GREP_SITE:=$(BR2_GNU_MIRROR)/grep
|
||||||
GNUGREP_DIR:=$(BUILD_DIR)/grep-$(GNUGREP_VERSION)
|
GREP_CONF_OPT = --disable-perl-regexp --without-included-regex \
|
||||||
GNUGREP_CAT:=$(ZCAT)
|
$(DISABLE_NLS) $(DISABLE_LARGEFILE)
|
||||||
GNUGREP_BINARY:=src/grep
|
|
||||||
GNUGREP_TARGET_BINARY:=bin/grep
|
|
||||||
|
|
||||||
$(DL_DIR)/$(GNUGREP_SOURCE):
|
GREP_DEPENDENCIES = $(if $(BR2_ENABLE_LOCALE),gettext libintl)
|
||||||
$(WGET) -P $(DL_DIR) $(GNUGREP_SITE)/$(GNUGREP_SOURCE)
|
|
||||||
|
|
||||||
grep-source: $(DL_DIR)/$(GNUGREP_SOURCE)
|
$(eval $(call AUTOTARGETS,package,grep))
|
||||||
|
|
||||||
$(GNUGREP_DIR)/.unpacked: $(DL_DIR)/$(GNUGREP_SOURCE)
|
|
||||||
rm -rf $(GNUGREP_DIR).xxx
|
|
||||||
$(GNUGREP_CAT) $(DL_DIR)/$(GNUGREP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
||||||
$(CONFIG_UPDATE) $(GNUGREP_DIR)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked
|
|
||||||
(cd $(GNUGREP_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=/ \
|
|
||||||
$(DISABLE_NLS) \
|
|
||||||
$(DISABLE_LARGEFILE) \
|
|
||||||
--disable-perl-regexp \
|
|
||||||
--without-included-regex \
|
|
||||||
)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(GNUGREP_DIR)/$(GNUGREP_BINARY): $(GNUGREP_DIR)/.configured
|
|
||||||
$(MAKE) -C $(GNUGREP_DIR)
|
|
||||||
|
|
||||||
$(TARGET_DIR)/$(GNUGREP_TARGET_BINARY): $(GNUGREP_DIR)/$(GNUGREP_BINARY)
|
|
||||||
for i in egrep fgrep grep; do \
|
|
||||||
$(INSTALL) $(GNUGREP_DIR)/src/$$i $(@D); \
|
|
||||||
done
|
|
||||||
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
|
||||||
|
|
||||||
grep: uclibc $(if $(BR2_ENABLE_LOCALE),gettext libintl) \
|
|
||||||
$(TARGET_DIR)/$(GNUGREP_TARGET_BINARY)
|
|
||||||
echo deps: $^
|
|
||||||
grep-clean:
|
|
||||||
rm -f $(addprefix $(TARGET_DIR)/bin/,egrep fgrep grep)
|
|
||||||
-$(MAKE) -C $(GNUGREP_DIR) clean
|
|
||||||
|
|
||||||
grep-dirclean:
|
|
||||||
rm -rf $(GNUGREP_DIR)
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
# Toplevel Makefile options
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(BR2_PACKAGE_GREP),y)
|
|
||||||
TARGETS+=grep
|
|
||||||
endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user