Noux: add noux-pkg/grep

This commit is contained in:
Josef Söntgen 2012-12-15 02:30:54 +01:00 committed by Norman Feske
parent 2aafc9d4e6
commit 5cf4e323c5
2 changed files with 42 additions and 0 deletions

30
ports/ports/grep.mk Normal file
View 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 $@

View 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