2015-09-30 20:28:04 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 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:=libcoap
|
2021-09-19 15:55:44 +08:00
|
|
|
PKG_VERSION:=4.3.0
|
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:=2
|
2015-09-30 20:28:04 +08:00
|
|
|
|
2019-06-04 07:40:22 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/obgm/libcoap/tar.gz/v$(PKG_VERSION)?
|
2021-09-19 15:55:44 +08:00
|
|
|
PKG_HASH:=1a195adacd6188d3b71c476e7b21706fef7f3663ab1fb138652e8da49a9ec556
|
2015-09-30 20:28:04 +08:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
|
2019-09-02 21:15:08 +08:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later BSD-2-Clause
|
2016-09-03 06:00:54 +08:00
|
|
|
PKG_LICENSE_FILES:=COPYING LICENSE.GPL LICENSE.BSD
|
2024-02-03 01:37:33 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:libcoap:libcoap
|
2015-09-30 20:28:04 +08:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
2019-06-04 07:40:22 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2015-09-30 20:28:04 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libcoap
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=CoAP (RFC 7252) library
|
2019-06-04 07:40:22 +08:00
|
|
|
URL:=https://libcoap.net/
|
2021-09-19 15:55:44 +08:00
|
|
|
ABI_VERSION:=3
|
2015-09-30 20:28:04 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcoap/description
|
|
|
|
Constrained Application Protocol (RFC 7252) library
|
|
|
|
endef
|
|
|
|
|
2017-08-31 20:40:00 +08:00
|
|
|
define Package/coap-client
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libcoap
|
|
|
|
TITLE:=CoAP (RFC 7252) client tool
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/coap-client/description
|
|
|
|
Constrained Application Protocol (RFC7252) client tool
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/coap-server
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libcoap
|
|
|
|
TITLE:=CoAP (RFC 7252) server programs
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/coap-server/description
|
|
|
|
Constrained Application Protocol (RFC 7252) server and resource directory server
|
|
|
|
endef
|
|
|
|
|
2015-09-30 20:28:04 +08:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2017-08-31 20:40:00 +08:00
|
|
|
--enable-examples \
|
2019-06-04 07:40:22 +08:00
|
|
|
--disable-documentation \
|
|
|
|
--disable-doxygen \
|
|
|
|
--disable-dtls \
|
|
|
|
--disable-gcov \
|
|
|
|
--disable-tests
|
2015-10-15 01:18:08 +08:00
|
|
|
|
2015-09-30 20:28:04 +08:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcoap/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2022-05-17 07:02:26 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcoap-$(ABI_VERSION)*.so* $(1)/usr/lib/
|
2015-09-30 20:28:04 +08:00
|
|
|
endef
|
|
|
|
|
2017-08-31 20:40:00 +08:00
|
|
|
define Package/coap-client/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/coap-client $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/coap-server/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/coap-server $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/coap-rd $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2015-09-30 20:28:04 +08:00
|
|
|
$(eval $(call BuildPackage,libcoap))
|
2017-08-31 20:40:00 +08:00
|
|
|
$(eval $(call BuildPackage,coap-client))
|
|
|
|
$(eval $(call BuildPackage,coap-server))
|