2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2015-11-08 22:25:20 +00:00
|
|
|
|
|
|
|
PKG := ucl
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.oberhumer.com/opensource/ucl/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := UCL
|
2015-11-08 22:25:20 +00:00
|
|
|
$(PKG)_IGNORE :=
|
|
|
|
$(PKG)_VERSION := 1.03
|
|
|
|
$(PKG)_CHECKSUM := b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348
|
|
|
|
$(PKG)_SUBDIR := ucl-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := ucl-$($(PKG)_VERSION).tar.gz
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL := https://www.oberhumer.com/opensource/ucl/download/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc
|
2016-01-09 19:41:25 +00:00
|
|
|
$(PKG)_DEPS_$(BUILD) :=
|
|
|
|
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
|
2015-11-08 22:25:20 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-05 03:41:39 +00:00
|
|
|
$(WGET) -q -O- 'https://www.oberhumer.com/opensource/ucl/' | \
|
2015-11-08 22:25:20 +00:00
|
|
|
$(SED) -n 's,.*ucl-\([0-9][^"]*\)\.tar.*,\1,p' | \
|
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2017-07-20 11:29:39 +01:00
|
|
|
# configure script is ancient and isn't easy to regenerate
|
|
|
|
# filter out invalid options
|
|
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
|
|
|
$(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) \
|
2016-08-17 00:22:41 +01:00
|
|
|
CFLAGS='-std=gnu90 -fPIC'
|
2017-07-20 11:29:39 +01:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS='-no-undefined'
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
2015-11-08 22:25:20 +00:00
|
|
|
endef
|