blob: d76083d84478cfaf6889cb4bf7130909b2470763 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libmicrohttpd
$(PKG)_WEBSITE := https://www.gnu.org/software/libmicrohttpd/
$(PKG)_DESCR := GNU Libmicrohttpd
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.9.38
$(PKG)_CHECKSUM := 8df2b4dd863c98799a4775a530d905363fbc02fec850af9094da890b28b9e721
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://ftp.gnu.org/gnu/libmicrohttpd/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.gnu.org/pub/gnu/libmicrohttpd/$($(PKG)_FILE)
$(PKG)_DEPS := gcc plibc pthreads
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://ftp.gnu.org/gnu/libmicrohttpd/?C=M;O=D' | \
$(SED) -n 's,.*<a href="libmicrohttpd-\([0-9][^"]*\)\.tar.*,\1,p' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
mkdir '$(1).build'
cd '$(1).build' && '$(1)/configure' \
--prefix='$(PREFIX)/$(TARGET)' \
--build="`config.guess`" \
--host='$(TARGET)' \
--enable-static \
--disable-shared \
CFLAGS="`'$(TARGET)-pkg-config' --cflags plibc`" \
LIBS="`'$(TARGET)-pkg-config' --libs plibc`"
$(MAKE) -C '$(1).build' -j '$(JOBS)' PROGRAMS=
$(MAKE) -C '$(1).build' -j 1 install PROGRAMS=
'$(TARGET)-gcc' \
-W -Wall -Werror -std=c99 -pedantic -Wno-error=unused-parameter \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libmicrohttpd.exe' \
`'$(TARGET)-pkg-config' --cflags --libs libmicrohttpd`
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_SHARED =
|