genode/libports/ports/curl.mk
Josef Söntgen f3864f673b libports: add curl-7.29.0
For now the port is x86_* only because it depends on libcrypto which
is currently not available (as in tested) on arm.

Fixes #669
2013-02-25 22:14:21 +01:00

36 lines
946 B
Makefile

include ports/curl.inc
CURL_TGZ = $(CURL).tar.gz
CURL_URL = http://curl.haxx.se/download/$(CURL_TGZ)
#
# Interface to top-level prepare Makefile
#
PORTS += $(CURL)
prepare-curl: $(CONTRIB_DIR)/$(CURL) include/curl
$(CONTRIB_DIR)/$(CURL): clean-curl
#
# Port-specific local rules
#
$(DOWNLOAD_DIR)/$(CURL_TGZ):
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(CURL_URL) && touch $@
$(CONTRIB_DIR)/$(CURL): $(DOWNLOAD_DIR)/$(CURL_TGZ)
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@
$(VERBOSE)find ./src/lib/curl/ -name "*.patch" |\
xargs -ixxx sh -c "patch -p1 -r - -N -d $(CONTRIB_DIR)/$(CURL) < xxx" || true
include/curl:
$(VERBOSE)mkdir -p $@
$(VERBOSE)for f in $(shell find $(CONTRIB_DIR)/$(CURL)/include/curl -name *.h); do \
ln -sf ../../$$f $@; done
@# This header is located in src/lib/curl/$(TARGET_ARCH)/curl
$(VERBOSE)rm -rf $@/curlbuild.h
clean-curl:
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(CURL)
$(VERBOSE)rm -rf include/curl