2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2013-11-11 13:59:52 +00:00
|
|
|
|
|
|
|
PKG := libmicrohttpd
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.gnu.org/software/libmicrohttpd/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := GNU Libmicrohttpd
|
2013-11-11 13:59:52 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2014-12-01 12:51:26 +00:00
|
|
|
$(PKG)_VERSION := 0.9.38
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := 8df2b4dd863c98799a4775a530d905363fbc02fec850af9094da890b28b9e721
|
2013-11-11 13:59:52 +00:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_URL := https://ftp.gnu.org/gnu/libmicrohttpd/$($(PKG)_FILE)
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL_2 := https://ftpmirror.gnu.org/libmicrohttpd/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc plibc pthreads
|
2013-11-11 13:59:52 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://ftp.gnu.org/gnu/libmicrohttpd/?C=M;O=D' | \
|
2013-11-11 13:59:52 +00:00
|
|
|
$(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 \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libmicrohttpd.exe' \
|
2013-11-11 13:59:52 +00:00
|
|
|
`'$(TARGET)-pkg-config' --cflags --libs libmicrohttpd`
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(PKG)_BUILD_x86_64-w64-mingw32 =
|
2014-04-06 14:18:15 +01:00
|
|
|
|
|
|
|
$(PKG)_BUILD_SHARED =
|