|
@ -8,21 +8,18 @@ |
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=rtty |
|
|
PKG_NAME:=rtty |
|
|
PKG_VERSION:=6.6.1 |
|
|
|
|
|
|
|
|
PKG_VERSION:=7.0.1 |
|
|
PKG_RELEASE:=1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION) |
|
|
|
|
|
PKG_SOURCE_URL=https://codeload.github.com/zhaojh329/rtty/tar.gz/v$(PKG_VERSION)? |
|
|
|
|
|
PKG_HASH:=4a46bd80f738ccb9aeea7c0cb8aa5ac364fd964d9ccc1bc3faf7b68eae17007c |
|
|
|
|
|
|
|
|
PKG_SOURCE_URL=https://github.com/zhaojh329/rtty/releases/download/v$(PKG_VERSION) |
|
|
|
|
|
PKG_HASH:=e323233e3c28d215f699c047d671a94f6e775ef358d66a310df20d8d942c1a89 |
|
|
CMAKE_INSTALL:=1 |
|
|
CMAKE_INSTALL:=1 |
|
|
|
|
|
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR) |
|
|
|
|
|
|
|
|
|
|
|
PKG_LICENSE:=LGPL-2.1 |
|
|
|
|
|
|
|
|
PKG_LICENSE:=MIT |
|
|
PKG_LICENSE_FILES:=LICENSE |
|
|
PKG_LICENSE_FILES:=LICENSE |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Jianhui Zhao <jianhuizhao329@gmail.com> |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Jianhui Zhao <zhaojh329@gmail.com> |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/cmake.mk |
|
|
include $(INCLUDE_DIR)/cmake.mk |
|
@ -33,15 +30,25 @@ define Package/rtty/Default |
|
|
CATEGORY:=Utilities |
|
|
CATEGORY:=Utilities |
|
|
SUBMENU:=Terminal |
|
|
SUBMENU:=Terminal |
|
|
URL:=https://github.com/zhaojh329/rtty |
|
|
URL:=https://github.com/zhaojh329/rtty |
|
|
DEPENDS:=$(2) |
|
|
|
|
|
|
|
|
DEPENDS:=+libev $(2) |
|
|
VARIANT:=$(1) |
|
|
VARIANT:=$(1) |
|
|
PROVIDES:=rtty |
|
|
PROVIDES:=rtty |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
Package/rtty-openssl=$(call Package/rtty/Default,openssl,+PACKAGE_rtty-openssl:libuwsc-openssl) |
|
|
|
|
|
Package/rtty-wolfssl=$(call Package/rtty/Default,wolfssl,+PACKAGE_rtty-wolfssl:libuwsc-wolfssl) |
|
|
|
|
|
Package/rtty-mbedtls=$(call Package/rtty/Default,mbedtls,+PACKAGE_rtty-mbedtls:libuwsc-mbedtls) |
|
|
|
|
|
Package/rtty-nossl=$(call Package/rtty/Default,nossl,+PACKAGE_rtty-nossl:libuwsc-nossl) |
|
|
|
|
|
|
|
|
Package/rtty-openssl=$(call Package/rtty/Default,openssl,+PACKAGE_rtty-openssl:libopenssl) |
|
|
|
|
|
Package/rtty-wolfssl=$(call Package/rtty/Default,wolfssl,+PACKAGE_rtty-wolfssl:libwolfssl) |
|
|
|
|
|
Package/rtty-mbedtls=$(call Package/rtty/Default,mbedtls,+PACKAGE_rtty-mbedtls:libmbedtls) |
|
|
|
|
|
Package/rtty-nossl=$(call Package/rtty/Default,nossl) |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),openssl) |
|
|
|
|
|
CMAKE_OPTIONS += -DRTTY_USE_OPENSSL=ON |
|
|
|
|
|
else ifeq ($(BUILD_VARIANT),wolfssl) |
|
|
|
|
|
CMAKE_OPTIONS += -DRTTY_USE_WOLFSSL=ON |
|
|
|
|
|
else ifeq ($(BUILD_VARIANT),mbedtls) |
|
|
|
|
|
CMAKE_OPTIONS += -DRTTY_USE_MBEDTLS=ON |
|
|
|
|
|
else |
|
|
|
|
|
CMAKE_OPTIONS += -DRTTY_SSL_SUPPORT=OFF |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
define Package/rtty-$(BUILD_VARIANT)/install |
|
|
define Package/rtty-$(BUILD_VARIANT)/install |
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config |
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config |
|
|