blob: c4292a9b752989099bdddb5af75fbb8864775f1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := ucl
$(PKG)_WEBSITE := https://www.oberhumer.com/opensource/ucl/
$(PKG)_DESCR := UCL
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.03
$(PKG)_CHECKSUM := b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348
$(PKG)_SUBDIR := ucl-$($(PKG)_VERSION)
$(PKG)_FILE := ucl-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://www.oberhumer.com/opensource/ucl/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
$(PKG)_DEPS_$(BUILD) :=
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://www.oberhumer.com/opensource/ucl/' | \
$(SED) -n 's,.*ucl-\([0-9][^"]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && \
./configure \
$(MXE_CONFIGURE_OPTS) \
CFLAGS='-std=gnu90 -fPIC'
$(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS=-no-undefined
$(MAKE) -C '$(1)' -j 1 install
endef
|