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>
93 lines
2.3 KiB
Makefile
93 lines
2.3 KiB
Makefile
#
|
|
# 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
|
|
PKG_VERSION:=0.9.75
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@GNU/libmicrohttpd
|
|
PKG_HASH:=9278907a6f571b391aab9644fd646a5108ed97311ec66f6359cebbedb0a4e3bb
|
|
|
|
PKG_MAINTAINER:=Alexander Couzens <lynxis@fe80.eu>
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libmicrohttpd/default
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=GNU libmicrohttpd is a library that runs an HTTP server.
|
|
URL:=https://www.gnu.org/software/libmicrohttpd/
|
|
endef
|
|
|
|
define Package/libmicrohttpd-no-ssl
|
|
$(call Package/libmicrohttpd/default)
|
|
VARIANT:=nossl
|
|
DEFAULT_VARIANT:=1
|
|
PROVIDES:=libmicrohttpd
|
|
endef
|
|
|
|
define Package/libmicrohttpd-ssl
|
|
$(call Package/libmicrohttpd/default)
|
|
TITLE+= with SSL support
|
|
VARIANT:=ssl
|
|
DEPENDS:=+libgcrypt +libgnutls +libgpg-error
|
|
PROVIDES:=libmicrohttpd
|
|
endef
|
|
|
|
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
|
|
|
|
CONFIGURE_ARGS += \
|
|
--disable-curl \
|
|
--disable-rpath \
|
|
--disable-doc \
|
|
--disable-examples \
|
|
--disable-poll \
|
|
--enable-epoll \
|
|
--with-pic
|
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
CONFIGURE_ARGS += \
|
|
--enable-https \
|
|
--with-gnutls
|
|
else
|
|
CONFIGURE_ARGS += \
|
|
--disable-https \
|
|
--without-gnutls
|
|
endif
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/microhttpd.h $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.{so*,a,la} $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmicrohttpd.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libmicrohttpd-no-ssl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(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/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libmicrohttpd-no-ssl))
|
|
$(eval $(call BuildPackage,libmicrohttpd-ssl))
|