immortalwrt/package/ctcgfw/cpp-httplib/Makefile
Tianling Shen 36c9fc3bda
Package ctcgfw: use package-immortalwrt.mk
Moved all duplicate parts to a single .mk file

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-22 21:56:03 +08:00

43 lines
1.2 KiB
Makefile

####
# File: /httplib/Makefile
# Project: ootoc-OpenWRT
# File Created: Sunday, 8th March 2020 10:45:13 pm
# Author: ElonH[EH](elonhhuang@gmail.com)
# License: GNU General Public License v3.0 or later(http://www.gnu.org/licenses/gpl-3.0-standalone.html)
# Copyright (C) 2020 [ElonH]
####
include $(TOPDIR)/rules.mk
PKG_NAME:=cpp-httplib
PKG_VERSION:=0.5.7
PKG_SOURCE_URL:=@GHCODELOAD/yhirose/cpp-httplib/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=27b7f6346bdeb1ead9d17bd7cea89d9ad491f50f0479081053cc6e5742a89e64
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=ElonH <elonhhuang@gmail.com>
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package-immortalwrt.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/cpp-httplib
SECTION:=lib
CATEGORY:=Libraries
VARIANT:=lib
URL:=https://github.com/yhirose/cpp-httplib
TITLE:=A C++11 single-file header-only cross platform HTTP/HTTPS library.
endef
define Package/cpp-httplib/description
A C++11 single-file header-only cross platform HTTP/HTTPS library.
It's extremely easy to setup. Just include `httplib.h` file in your code!
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,cpp-httplib))