51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
#
|
|
# Copyright (C) 2019 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:=rapidjson
|
|
PKG_VERSION:=20200213
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/Tencent/rapidjson.git
|
|
PKG_SOURCE_VERSION:=a895ce150fa2d73f4ee55f8657761a6b3e96236f
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_HASH:=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
|
|
|
|
PKG_LICENSE:=GPLv3
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=[CTCGFW]Project OpenWrt
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_USE_MIPS16:=0
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=lib
|
|
CATEGORY:=Libraries
|
|
URL:=https://github.com/Tencent/rapidjson
|
|
TITLE:=rapidjson JSON parser/generator for C++
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
A fast JSON parser/generator for C++ with both SAX/DOM style API
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_BUILD_DIR)/include/rapidjson $(1)/usr/include/rapidjson
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|