diff --git a/src/libunistring.mk b/src/libunistring.mk new file mode 100644 index 00000000..8d47f5b6 --- /dev/null +++ b/src/libunistring.mk @@ -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 ']*>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