From fcf2f59cd1cf159d1e016b2e0f2e502a1711e117 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Mon, 9 Mar 2020 01:20:45 +0800 Subject: [PATCH] ootoc: update --- CONTRIBUTED.md | 2 +- package/ctcgfw/httplib/Makefile | 48 ++++++++++++++++++++++ package/ctcgfw/libtar/Makefile | 8 ++++ package/ctcgfw/ootoc/Makefile | 71 +++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+), 1 deletion(-) create mode 100644 package/ctcgfw/httplib/Makefile create mode 100644 package/ctcgfw/ootoc/Makefile diff --git a/CONTRIBUTED.md b/CONTRIBUTED.md index f8711d83bd..096dbc252e 100644 --- a/CONTRIBUTED.md +++ b/CONTRIBUTED.md @@ -46,7 +46,7 @@ luci-app-qos-gargoyle source: [kuoruan/luci-app-qos-gargoyle](https://github.com luci-theme-rosy source: [rosywrt/luci-theme-rosy](https://github.com/rosywrt/luci-theme-rosy).
luci-theme-argon-mc source: [sypopo/luci-theme-argon-mc](https://github.com/sypopo/luci-theme-argon-mc).
luci-app-cupsd source: [F-Light/luci-app-cupsd](https://github.com/F-Light/luci-app-cupsd).
-libtar source: [ElonH/ootoc-OpenWRT](https://github.com/ElonH/ootoc-OpenWRT).
+ootoc-OpenWRT source: [ElonH/ootoc-OpenWRT](https://github.com/ElonH/ootoc-OpenWRT).
r8168 source: [BROBIRD/openwrt-r8168](https://github.com/BROBIRD/openwrt-r8168). ## License diff --git a/package/ctcgfw/httplib/Makefile b/package/ctcgfw/httplib/Makefile new file mode 100644 index 0000000000..8505321312 --- /dev/null +++ b/package/ctcgfw/httplib/Makefile @@ -0,0 +1,48 @@ +#### + # 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:=httplib +PKG_VERSION:=0.5.7 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/yhirose/cpp-httplib.git +PKG_MIRROR_HASH:=7b04f20cbb27f6e11120c9b185ee6b425d464cd0566b03b907b9881f1642594d +PKG_SOURCE_VERSION:=bf7700d1924e12a27faa5d346a5b8a9f8e163b61 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz + +PKG_LICENSE:=GPLv3 +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=ElonH + +HOST_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/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/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,httplib)) diff --git a/package/ctcgfw/libtar/Makefile b/package/ctcgfw/libtar/Makefile index 50b12c646e..4f51cbfa5d 100644 --- a/package/ctcgfw/libtar/Makefile +++ b/package/ctcgfw/libtar/Makefile @@ -54,7 +54,15 @@ Here are some of its features: endef +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libtar $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include +endef + define Package/libtar/install + $(Build/Install/Default) $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libtar $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/lib diff --git a/package/ctcgfw/ootoc/Makefile b/package/ctcgfw/ootoc/Makefile new file mode 100644 index 0000000000..53fe2c33fc --- /dev/null +++ b/package/ctcgfw/ootoc/Makefile @@ -0,0 +1,71 @@ +#### + # File: /Makefile + # Project: ootoc + # File Created: Saturday, 7th March 2020 5:44:11 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:=ootoc +PKG_VERSION:=0.0.1 +PKG_RELEASE:=2 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/ElonH/ootoc.git +PKG_MIRROR_HASH:=1618751ed55f5b0b54ceddca43b92f55c8ff8d60bec22616d7a2d2303f7d2328 +PKG_SOURCE_VERSION:=8fb0c485eb03c6e97b5be002b731cbabe65ea536 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz + +PKG_LICENSE:=GPLv3 +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=ElonH + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_BUILD_DEPENDS:=httplib/host + +PKG_INSTALL:=1 +PKG_USE_MIPS16:=0 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +CMAKE_OPTIONS+= -DOOTOC_TEST:BOOL=OFF -DOOTOC_BUILDIN_LIBTAR:BOOL=OFF -DOOTOC_BUILDIN_HTTPLIB:BOOL=OFF + +define Package/ootoc + SECTION:=base + CATEGORY:=Base system + URL:=https://github.com/msgpack/ootoc + TITLE:=opkg over tar over curl + DEPENDS:=+libootoc + MENU:=1 +endef + +define Package/libootoc + URL:=https://github.com/msgpack/ootoc + TITLE:=opkg over tar over curl + DEPENDS:=+libcurl +libyaml-cpp +libtar + SECTION:=lib + CATEGORY:=Libraries + VARIANT:=lib +endef + +define Package/ootoc/description + opkg over tar over curl +endef + +define Package/libootocc/description + $(call Package/ootoc/description) +endef + +define Package/ootoc/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ootocCLI $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,ootoc)) +$(eval $(call BuildPackage,libootoc))