2014-12-01 05:29:19 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010-2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libmicrohttpd
|
2024-02-12 06:54:01 +08:00
|
|
|
PKG_VERSION:=0.9.77
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=1
|
2014-12-01 05:29:19 +08:00
|
|
|
|
2018-12-28 06:40:03 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/libmicrohttpd
|
2024-02-12 06:54:01 +08:00
|
|
|
PKG_HASH:=9e7023a151120060d2806a6ea4c13ca9933ece4eacfc5c9464d20edddb76b0a0
|
2020-05-02 08:04:18 +08:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Alexander Couzens <lynxis@fe80.eu>
|
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2024-02-03 01:37:33 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:libmicrohttpd
|
2015-12-15 03:59:22 +08:00
|
|
|
|
2014-12-01 05:29:19 +08:00
|
|
|
PKG_INSTALL:=1
|
2020-05-02 08:04:18 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-12-01 05:29:19 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2018-12-28 06:40:03 +08:00
|
|
|
define Package/libmicrohttpd/default
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=GNU libmicrohttpd is a library that runs an HTTP server.
|
2020-05-14 15:52:18 +08:00
|
|
|
URL:=https://www.gnu.org/software/libmicrohttpd/
|
2015-12-15 03:59:22 +08:00
|
|
|
endef
|
|
|
|
|
2019-04-02 04:33:06 +08:00
|
|
|
define Package/libmicrohttpd-no-ssl
|
2018-12-28 06:40:03 +08:00
|
|
|
$(call Package/libmicrohttpd/default)
|
|
|
|
VARIANT:=nossl
|
2019-04-02 04:33:06 +08:00
|
|
|
DEFAULT_VARIANT:=1
|
|
|
|
PROVIDES:=libmicrohttpd
|
2014-12-01 05:29:19 +08:00
|
|
|
endef
|
|
|
|
|
2018-12-28 06:40:03 +08:00
|
|
|
define Package/libmicrohttpd-ssl
|
|
|
|
$(call Package/libmicrohttpd/default)
|
|
|
|
TITLE+= with SSL support
|
|
|
|
VARIANT:=ssl
|
|
|
|
DEPENDS:=+libgcrypt +libgnutls +libgpg-error
|
|
|
|
PROVIDES:=libmicrohttpd
|
2015-12-15 03:59:22 +08:00
|
|
|
endef
|
|
|
|
|
2020-05-14 15:52:18 +08:00
|
|
|
define Package/libmicrohttpd/description
|
|
|
|
GNU libmicrohttpd is a small C library that is supposed to make it easy
|
|
|
|
to run an HTTP server as part of another application.
|
|
|
|
endef
|
|
|
|
|
2020-05-02 08:04:18 +08:00
|
|
|
CONFIGURE_ARGS += \
|
2015-06-04 18:52:31 +08:00
|
|
|
--disable-curl \
|
2018-12-28 06:40:03 +08:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-examples \
|
2020-05-02 08:04:18 +08:00
|
|
|
--disable-poll \
|
2020-05-14 15:52:18 +08:00
|
|
|
--enable-epoll \
|
|
|
|
--with-pic
|
2015-06-04 18:52:31 +08:00
|
|
|
|
2018-12-28 06:40:03 +08:00
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
2015-12-15 03:59:22 +08:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-https \
|
|
|
|
--with-gnutls
|
2018-12-28 06:40:03 +08:00
|
|
|
else
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-https \
|
|
|
|
--without-gnutls
|
2015-12-15 03:59:22 +08:00
|
|
|
endif
|
|
|
|
|
2014-12-01 05:29:19 +08:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
2019-01-30 17:13:34 +08:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/microhttpd.h $(1)/usr/include/
|
2014-12-01 05:29:19 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2019-01-30 17:13:34 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.{so*,a,la} $(1)/usr/lib/
|
2014-12-01 05:29:19 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
2019-01-30 17:13:34 +08:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmicrohttpd.pc $(1)/usr/lib/pkgconfig/
|
2014-12-01 05:29:19 +08:00
|
|
|
endef
|
|
|
|
|
2019-04-02 04:33:06 +08:00
|
|
|
define Package/libmicrohttpd-no-ssl/install
|
2014-12-01 05:29:19 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2019-01-30 17:13:34 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmicrohttpd-ssl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.so* $(1)/usr/lib/
|
2014-12-01 05:29:19 +08:00
|
|
|
endef
|
|
|
|
|
2019-04-02 04:33:06 +08:00
|
|
|
$(eval $(call BuildPackage,libmicrohttpd-no-ssl))
|
2018-12-28 06:40:03 +08:00
|
|
|
$(eval $(call BuildPackage,libmicrohttpd-ssl))
|