Add buildroot 2018-02
This commit is contained in:
12
buildroot/package/grep/Config.in
Normal file
12
buildroot/package/grep/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_GREP
|
||||
bool "grep"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
help
|
||||
The GNU regular expression matcher.
|
||||
|
||||
http://www.gnu.org/software/grep/grep.html
|
||||
|
||||
comment "grep needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
4
buildroot/package/grep/grep.hash
Normal file
4
buildroot/package/grep/grep.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally calculated after checking signature
|
||||
# http://ftp.gnu.org/gnu/grep/grep-3.1.tar.xz.sig
|
||||
sha256 db625c7ab3bb3ee757b3926a5cfa8d9e1c3991ad24707a83dde8a5ef2bf7a07e grep-3.1.tar.xz
|
||||
sha256 ca372a7d92560b1fa9f6d832b440e8bcd62d9adfa8870c98287deab66d98310e COPYING
|
||||
33
buildroot/package/grep/grep.mk
Normal file
33
buildroot/package/grep/grep.mk
Normal file
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# grep
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GREP_VERSION = 3.1
|
||||
GREP_SITE = $(BR2_GNU_MIRROR)/grep
|
||||
GREP_SOURCE = grep-$(GREP_VERSION).tar.xz
|
||||
GREP_LICENSE = GPL-3.0+
|
||||
GREP_LICENSE_FILES = COPYING
|
||||
GREP_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
||||
|
||||
# link with iconv if enabled
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
GREP_CONF_ENV += LIBS=-liconv
|
||||
GREP_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
# link with pcre if enabled
|
||||
ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||
GREP_CONF_OPTS += --enable-perl-regexp
|
||||
GREP_DEPENDENCIES += pcre
|
||||
else
|
||||
GREP_CONF_OPTS += --disable-perl-regexp
|
||||
endif
|
||||
|
||||
# Full grep preferred over busybox grep
|
||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||
GREP_DEPENDENCIES += busybox
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user