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