mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
Noux: add noux-pkg/grep
This commit is contained in:
parent
2aafc9d4e6
commit
5cf4e323c5
30
ports/ports/grep.mk
Normal file
30
ports/ports/grep.mk
Normal file
@ -0,0 +1,30 @@
|
||||
GNUGREP = grep-2.14
|
||||
GNUGREP_TXZ = $(GNUGREP).tar.xz
|
||||
GNUGREP_SIG = $(GNUGREP_TXZ).sig
|
||||
GNUGREP_URL = http://ftp.gnu.org/pub/gnu/grep
|
||||
GNUGREP_KEY = GNU
|
||||
|
||||
#
|
||||
# Interface to top-level prepare Makefile
|
||||
#
|
||||
PORTS += $(GNUGREP)
|
||||
|
||||
prepare:: $(CONTRIB_DIR)/$(GNUGREP)
|
||||
|
||||
#
|
||||
# Port-specific local rules
|
||||
#
|
||||
$(DOWNLOAD_DIR)/$(GNUGREP_TXZ):
|
||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GNUGREP_URL)/$(GNUGREP_TXZ) && touch $@
|
||||
|
||||
$(DOWNLOAD_DIR)/$(GNUGREP_SIG):
|
||||
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(GNUGREP_URL)/$(GNUGREP_SIG) && touch $@
|
||||
|
||||
$(CONTRIB_DIR)/$(GNUGREP): $(DOWNLOAD_DIR)/$(GNUGREP_TXZ).verified
|
||||
$(VERBOSE)tar xfJ $(<:.verified=) -C $(CONTRIB_DIR) && touch $@
|
||||
|
||||
$(DOWNLOAD_DIR)/$(GNUGREP_TXZ).verified: $(DOWNLOAD_DIR)/$(GNUGREP_TXZ) \
|
||||
$(DOWNLOAD_DIR)/$(GNUGREP_SIG)
|
||||
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(GNUGREP_TXZ) $(DOWNLOAD_DIR)/$(GNUGREP_SIG) $(GNUGREP_KEY)
|
||||
$(VERBOSE)touch $@
|
||||
|
12
ports/src/noux-pkg/grep/target.mk
Normal file
12
ports/src/noux-pkg/grep/target.mk
Normal file
@ -0,0 +1,12 @@
|
||||
NOUX_CONFIGURE_FLAGS = --without-included-regex
|
||||
|
||||
#NOUX_INSTALL_TARGET =
|
||||
|
||||
LIBS += pcre
|
||||
|
||||
#
|
||||
# Prevent double definition of '__size_t' in 'glob/glob.h'
|
||||
#
|
||||
#NOUX_CPPFLAGS += -D__FreeBSD__
|
||||
|
||||
include $(REP_DIR)/mk/noux.mk
|
Loading…
x
Reference in New Issue
Block a user