Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include $(TOPDIR)/rules.mk
- PKG_NAME:=bearssl
- PKG_VERSION:=0.6
- PKG_RELEASE:=1
- PKG_BUILD_DIR:=$(BUILD_DIR)/bearssl-$(PKG_VERSION)
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- PKG_SOURCE_URL:=https://bearssl.org/
- PKG_HASH:=6705bba1714961b41a728dfc5debbe348d2966c117649392f8c8139efc83ff14
- PKG_LICENSE:=MIT
- include $(INCLUDE_DIR)/package.mk
- define Package/bearssl
- TITLE:=Bear SSL (library)
- URL:=https://bearssl.org
- SECTION:=libs
- CATEGORY:=Libraries
- SUBMENU:=SSL
- endef
- define Package/bearssl/description
- BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written in C.
- endef
- define Build/Configure
- $(CP) ./files/openwrt.mk $(PKG_BUILD_DIR)/conf
- endef
- define Build/Compile
- $(call Build/Compile/Default,CONF="openwrt")
- endef
- TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
- TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib
- define Build/InstallDev
- $(INSTALL_DIR) $(1)/usr/include
- $(CP) $(PKG_BUILD_DIR)/inc/*.h $(1)/usr/include/
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_BUILD_DIR)/build/libbearssl.a $(1)/usr/lib/
- endef
- $(eval $(call BuildPackage,bearssl))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement