From 62b02d542a4f3579f0601509cb34d6d580a2aa5a Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sat, 14 Feb 2009 20:56:40 +0100 Subject: new package: libidn (by Martin Lambers) --- doc/README | 1 + src/curl.mk | 5 +++-- src/libidn.mk | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/libidn.mk diff --git a/doc/README b/doc/README index c5d3ab3..b05d7c4 100644 --- a/doc/README +++ b/doc/README @@ -69,6 +69,7 @@ Copyright (c) Volker Grabsch Rocco Rutte Andreas Roever + Martin Lambers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/src/curl.mk b/src/curl.mk index ef362fa..73a9947 100644 --- a/src/curl.mk +++ b/src/curl.mk @@ -6,7 +6,7 @@ $(PKG)_VERSION := 7.19.3 $(PKG)_SUBDIR := curl-$($(PKG)_VERSION) $(PKG)_FILE := curl-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE) -$(PKG)_DEPS := gcc gnutls +$(PKG)_DEPS := gcc gnutls libidn define $(PKG)_UPDATE wget -q -O- 'http://curl.haxx.se/changes.html' | \ @@ -24,6 +24,7 @@ define $(PKG)_BUILD --disable-shared \ --prefix='$(PREFIX)/$(TARGET)' \ --with-gnutls='$(PREFIX)/$(TARGET)' \ - LIBS="-lgcrypt `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`" + --with-libidn='$(PREFIX)/$(TARGET)' \ + LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`" $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= endef diff --git a/src/libidn.mk b/src/libidn.mk new file mode 100644 index 0000000..96a6a5c --- /dev/null +++ b/src/libidn.mk @@ -0,0 +1,27 @@ +# libidn +# ftp://ftp.gnu.org/gnu/libidn/ + +PKG := libidn +$(PKG)_VERSION := 1.12 +$(PKG)_SUBDIR := libidn-$($(PKG)_VERSION) +$(PKG)_FILE := libidn-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := ftp://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE) +$(PKG)_DEPS := gcc libiconv + +define $(PKG)_UPDATE + wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=libidn.git;a=tags' | \ + grep ']*>\([0-9][^>]*\)<.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + # wine confuses the cross-compiling detection, so set it explicitly + $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --with-libiconv-prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef -- cgit v0.12