cbf401f232
This patch adds the GNU 'which' program to the 'ports' repository. Fixes #380.
20 lines
508 B
Makefile
20 lines
508 B
Makefile
WHICH = which-2.20
|
|
WHICH_TGZ = $(WHICH).tar.gz
|
|
WHICH_URL = http://ftp.gnu.org/gnu/which/$(WHICH_TGZ)
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(WHICH)
|
|
|
|
prepare:: $(CONTRIB_DIR)/$(WHICH)
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
$(DOWNLOAD_DIR)/$(WHICH_TGZ):
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) -O $@ $(WHICH_URL) && touch $@
|
|
|
|
$(CONTRIB_DIR)/$(WHICH): $(DOWNLOAD_DIR)/$(WHICH_TGZ)
|
|
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@
|
|
# $(VERBOSE)patch -d contrib/ -N -p0 < src/noux-pkg/lynx/build.patch
|