mxe/src/libunistring.mk

27 lines
879 B
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2010-04-15 00:29:49 +01:00
PKG := libunistring
$(PKG)_WEBSITE := https://www.gnu.org/software/libunistring/
2010-04-15 00:29:49 +01:00
$(PKG)_IGNORE :=
2018-06-22 22:36:00 +01:00
$(PKG)_VERSION := 0.9.10
2019-09-07 14:09:23 +01:00
$(PKG)_CHECKSUM := eb8fb2c3e4b6e2d336608377050892b54c3c983b646c561836550863003c05d7
2010-04-15 00:29:49 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2019-09-07 14:09:23 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
2017-03-04 10:33:47 +00:00
$(PKG)_URL := https://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := cc libiconv
2010-04-15 00:29:49 +01:00
define $(PKG)_UPDATE
2019-09-07 14:09:23 +01:00
$(WGET) -q -O- 'https://ftp.gnu.org/gnu/libunistring/?C=M;O=D' | \
$(SED) -n 's,.*<a href="libunistring-\([0-9][^"]*\)\.tar.*,\1,p' | \
$(SORT) -V | \
tail -1
2010-04-15 00:29:49 +01:00
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2010-04-15 00:29:49 +01:00
--enable-threads=win32
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef