You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
PKG := libidn
|
|
$(PKG)_WEBSITE := https://www.gnu.org/software/libidn/
|
|
$(PKG)_DESCR := Libidn
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 1.33
|
|
$(PKG)_CHECKSUM := 44a7aab635bb721ceef6beecc4d49dfd19478325e1b47f3196f7d2acc4930e19
|
|
$(PKG)_SUBDIR := libidn-$($(PKG)_VERSION)
|
|
$(PKG)_FILE := libidn-$($(PKG)_VERSION).tar.gz
|
|
$(PKG)_URL := http://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE)
|
|
$(PKG)_URL_2 := ftp://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE)
|
|
$(PKG)_DEPS := gcc gettext libiconv
|
|
|
|
define $(PKG)_UPDATE
|
|
$(WGET) -q -O- 'http://git.savannah.gnu.org/gitweb/?p=libidn.git;a=tags' | \
|
|
grep '<a class="list subject"' | \
|
|
$(SED) -n 's,.*<a[^>]*>\([0-9][^<]*\)<.*,\1,p' | \
|
|
head -1
|
|
endef
|
|
|
|
define $(PKG)_BUILD
|
|
cd '$(1)' && ./configure \
|
|
$(MXE_CONFIGURE_OPTS) \
|
|
--disable-csharp \
|
|
--with-libiconv-prefix='$(PREFIX)/$(TARGET)'
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
|
|
|
'$(TARGET)-gcc' \
|
|
-W -Wall -Werror -ansi -pedantic \
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libidn.exe' \
|
|
`'$(TARGET)-pkg-config' libidn --cflags --libs`
|
|
endef
|