From 5cf4e323c53cce5de9503978bfd2470f6c4bcb05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Sat, 15 Dec 2012 02:30:54 +0100 Subject: [PATCH] Noux: add noux-pkg/grep --- ports/ports/grep.mk | 30 ++++++++++++++++++++++++++++++ ports/src/noux-pkg/grep/target.mk | 12 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 ports/ports/grep.mk create mode 100644 ports/src/noux-pkg/grep/target.mk diff --git a/ports/ports/grep.mk b/ports/ports/grep.mk new file mode 100644 index 0000000000..26132ace0d --- /dev/null +++ b/ports/ports/grep.mk @@ -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 $@ + diff --git a/ports/src/noux-pkg/grep/target.mk b/ports/src/noux-pkg/grep/target.mk new file mode 100644 index 0000000000..9bd2469dca --- /dev/null +++ b/ports/src/noux-pkg/grep/target.mk @@ -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