genode/libports/ports/libiconv.mk
Stephan Mueller 056e0792e5 libports: Verify signatures of 3rd-party code
This patch adds integrity checks for the packages of the libports
repository.

Issue #748
2013-06-10 10:44:09 +02:00

38 lines
1.0 KiB
Makefile

LIBICONV = libiconv-1.14
LIBICONV_TGZ = $(LIBICONV).tar.gz
LIBICONV_SIG = $(LIBICONV_TGZ).sig
LIBICONV_BASE_URL = http://ftp.gnu.org/pub/gnu/libiconv
LIBICONV_URL = $(LIBICONV_BASE_URL)//$(LIBICONV_TGZ)
LIBICONV_URL_SIG = $(LIBICONV_BASE_URL)//$(LIBICONV_SIG)
LIBICONV_KEY = GNU
#
# Interface to top-level prepare Makefile
#
PORTS += $(LIBICONV)
prepare-libiconv: $(CONTRIB_DIR)/$(LIBICONV) include/iconv
#
# Port-specific local rules
#
$(DOWNLOAD_DIR)/$(LIBICONV_TGZ):
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(LIBICONV_URL) && touch $@
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(LIBICONV_URL_SIG) && touch $@
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(LIBICONV_TGZ) $(DOWNLOAD_DIR)/$(LIBICONV_SIG) $(LIBICONV_KEY)
$(CONTRIB_DIR)/$(LIBICONV): $(DOWNLOAD_DIR)/$(LIBICONV_TGZ)
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@
#
# Install iconv headers
#
include/iconv:
$(VERBOSE)mkdir -p $@
$(VERBOSE)ln -sf ../../src/lib/libiconv/iconv.h $@
clean-libiconv:
$(VERBOSE)rm -rf include/iconv
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LIBICONV)