2018-12-30 20:45:42 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2019 Daniel Engberg <daniel.engberg.lists@pyret.net>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=jsoncpp
|
2021-12-16 10:25:12 +08:00
|
|
|
PKG_VERSION:=1.9.5
|
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
|
2019-09-23 09:24:07 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/open-source-parsers/jsoncpp/tar.gz/$(PKG_VERSION)?
|
2021-12-16 10:25:12 +08:00
|
|
|
PKG_HASH:=f409856e5920c18d0c2fb85276e24ee607d2a09b5e7d5f0a371368903c275da2
|
2019-09-23 09:24:07 +08:00
|
|
|
|
2021-07-08 21:32:31 +08:00
|
|
|
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
|
2018-12-30 20:45:42 +08:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2024-02-03 01:37:33 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:jsoncpp_project:jsoncpp
|
2018-12-30 20:45:42 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-09-08 06:24:45 +08:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2018-12-30 20:45:42 +08:00
|
|
|
|
|
|
|
define Package/jsoncpp
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=jsoncpp
|
|
|
|
URL:=https://github.com/open-source-parsers/jsoncpp
|
|
|
|
DEPENDS:=+libstdcpp
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/jsoncpp/description
|
|
|
|
JsonCpp is a C++ library that allows manipulating
|
|
|
|
JSON values, including serialization and
|
|
|
|
deserialization to and from strings. It can also
|
|
|
|
preserve existing comment in
|
|
|
|
unserialization/serialization steps, making it a
|
|
|
|
convenient format to store user input files.
|
|
|
|
endef
|
|
|
|
|
2020-04-26 11:49:11 +08:00
|
|
|
MESON_ARGS += \
|
2020-06-11 14:44:14 +08:00
|
|
|
-Db_lto=true \
|
|
|
|
-Dtests=false
|
2020-04-26 11:49:11 +08:00
|
|
|
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
|
|
|
|
2019-11-19 19:15:45 +08:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjsoncpp.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/jsoncpp.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
2018-12-30 20:45:42 +08:00
|
|
|
|
|
|
|
define Package/jsoncpp/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjsoncpp.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,jsoncpp))
|