new package: libunistring

This commit is contained in:
Volker Grabsch 2010-04-15 01:29:49 +02:00
parent 059874a74e
commit ee75875156
1 changed files with 30 additions and 0 deletions

30
src/libunistring.mk Normal file
View File

@ -0,0 +1,30 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# libunistring
PKG := libunistring
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.9.2.1
$(PKG)_CHECKSUM := 9e2dfde9030281d40b16e8c998ffbeb48f016512
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.gnu.org/software/$(PKG)/
$(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libiconv
define $(PKG)_UPDATE
wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=$(PKG).git;a=tags' | \
grep '<a class="list name"' | \
$(SED) -n 's,.*<a[^>]*>v\([0-9][^<]*\)<.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--enable-threads=win32
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef