ootoc: update

This commit is contained in:
CN_SZTL 2020-03-09 01:20:45 +08:00
parent 45acdd25b1
commit fcf2f59cd1
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
4 changed files with 128 additions and 1 deletions

View File

@ -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).<br/>
luci-theme-argon-mc source: [sypopo/luci-theme-argon-mc](https://github.com/sypopo/luci-theme-argon-mc).<br/>
luci-app-cupsd source: [F-Light/luci-app-cupsd](https://github.com/F-Light/luci-app-cupsd).<br/>
libtar source: [ElonH/ootoc-OpenWRT](https://github.com/ElonH/ootoc-OpenWRT).<br/>
ootoc-OpenWRT source: [ElonH/ootoc-OpenWRT](https://github.com/ElonH/ootoc-OpenWRT).<br/>
r8168 source: [BROBIRD/openwrt-r8168](https://github.com/BROBIRD/openwrt-r8168).
## License

View File

@ -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 <elonhhuang@gmail.com>
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))

View File

@ -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

View File

@ -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 <elonhhuang@gmail.com>
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))