2013-05-25 12:50:46 +00:00
|
|
|
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
|
2012-12-04 18:43:57 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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 $@
|
2013-06-10 09:38:52 +00:00
|
|
|
|
|
|
|
$(DOWNLOAD_DIR)/$(LIBICONV_SIG):
|
2013-05-25 12:50:46 +00:00
|
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(LIBICONV_URL_SIG) && touch $@
|
2013-06-06 14:49:56 +00:00
|
|
|
|
2013-06-10 09:38:52 +00:00
|
|
|
$(DOWNLOAD_DIR)/$(LIBICONV_TGZ).verified: $(DOWNLOAD_DIR)/$(LIBICONV_TGZ) \
|
|
|
|
$(DOWNLOAD_DIR)/$(LIBICONV_SIG)
|
2013-05-25 12:50:46 +00:00
|
|
|
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(LIBICONV_TGZ) $(DOWNLOAD_DIR)/$(LIBICONV_SIG) $(LIBICONV_KEY)
|
2013-06-06 14:49:56 +00:00
|
|
|
$(VERBOSE)touch $@
|
2012-12-04 18:43:57 +00:00
|
|
|
|
2013-06-06 14:49:56 +00:00
|
|
|
$(CONTRIB_DIR)/$(LIBICONV): $(DOWNLOAD_DIR)/$(LIBICONV_TGZ).verified
|
|
|
|
$(VERBOSE)tar xfz $(<:.verified=) -C $(CONTRIB_DIR) && touch $@
|
2012-12-04 18:43:57 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Install iconv headers
|
|
|
|
#
|
|
|
|
|
|
|
|
include/iconv:
|
|
|
|
$(VERBOSE)mkdir -p $@
|
|
|
|
$(VERBOSE)ln -sf ../../src/lib/libiconv/iconv.h $@
|
2013-03-06 17:04:11 +00:00
|
|
|
|
|
|
|
clean-libiconv:
|
|
|
|
$(VERBOSE)rm -rf include/iconv
|
|
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LIBICONV)
|