genode/repos/libports/ports/libiconv.port
Emery Hemingway 72cb71c827 Replace SHA1 hashes of port downloads with SHA256
Now SHA256 has been shown to be an adequate replacement for SHA1, use
SHA256 for verifying all port downloads.

Ref #2767
2018-05-30 13:36:22 +02:00

30 lines
762 B
Plaintext

LICENSE := GPLv3
VERSION := 1.14
DOWNLOADS := libiconv.archive
URL(libiconv) := http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$(VERSION).tar.gz
SHA(libiconv) := 72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613
SIG(libiconv) := ${URL(libiconv)}.sig
KEY(libiconv) := GNU
DIR(libiconv) := src/lib/libiconv
default: include/iconv/iconv.h
include/iconv/iconv.h: $(DOWNLOADS)
iconv_subst := \
"@DLL_VARIABLE@/" \
"@EILSEQ@/" \
"@ICONV_CONST@/" \
"@USE_MBSTATE_T@/1" \
"@BROKEN_WCHAR_H@/0" \
"@HAVE_WCHAR_T@/1"
apply_substitutions = for i in $(iconv_subst); do sed -i "s/$$i/g" $(1); done
include/iconv/iconv.h:
$(VERBOSE)mkdir -p $(dir $@)
$(VERBOSE)cp src/lib/libiconv/include/iconv.h.in $@
$(VERBOSE)$(call apply_substitutions,$@)