diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-02-14 19:56:40 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-02-14 19:56:40 (GMT) |
commit | 62b02d542a4f3579f0601509cb34d6d580a2aa5a (patch) | |
tree | 6d0393faddf0178b61e7151ecf5e71ff449e1ab8 | |
parent | 863d4321a5103100a36c231639e631c0de74228c (diff) | |
download | mxe-62b02d542a4f3579f0601509cb34d6d580a2aa5a.zip mxe-62b02d542a4f3579f0601509cb34d6d580a2aa5a.tar.gz mxe-62b02d542a4f3579f0601509cb34d6d580a2aa5a.tar.bz2 |
new package: libidn (by Martin Lambers)
-rw-r--r-- | doc/README | 1 | ||||
-rw-r--r-- | src/curl.mk | 5 | ||||
-rw-r--r-- | src/libidn.mk | 27 |
3 files changed, 31 insertions, 2 deletions
@@ -69,6 +69,7 @@ Copyright (c) Volker Grabsch <vog@notjusthosting.com> Rocco Rutte <pdmef@gmx.net> Andreas Roever <roever@users.sf.net> + Martin Lambers <marlam@marlam.de> 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 '<a class="list subject"' | \ + $(SED) -n 's,.*<a[^>]*>\([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 |