1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_URL
=$(LEDE_GIT
)/project
/ustream-ssl.git
8 PKG_SOURCE_DATE
:=2016-07-02
9 PKG_SOURCE_VERSION
:=ec80adaa1b47f28d426fa19c692011ce60b992d6
10 PKG_MIRROR_HASH
:=bfbad6b4e8c1e933f0bfaab43cbdd44a536c08128c3a779e6f2395a6a886aab7
13 PKG_BUILD_DIR
=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_SOURCE_SUBDIR
)
18 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
20 include $(INCLUDE_DIR
)/package.mk
21 include $(INCLUDE_DIR
)/cmake.mk
23 define Package
/libustream
/default
26 TITLE
:=ustream SSL Library
28 ABI_VERSION
:=$(PKG_VERSION
)
31 define Package
/libustream-openssl
32 $(Package
/libustream
/default
)
34 DEPENDS
+= +PACKAGE_libustream-openssl
:libopenssl
38 define Package
/libustream-cyassl
39 $(Package
/libustream
/default
)
41 DEPENDS
+= +PACKAGE_libustream-cyassl
:libcyassl
45 define Package
/libustream-polarssl
46 $(Package
/libustream
/default
)
48 DEPENDS
+= +libpolarssl
53 define Package
/libustream-mbedtls
54 $(Package
/libustream
/default
)
56 DEPENDS
+= +libmbedtls
61 ifeq ($(BUILD_VARIANT
),cyassl
)
62 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/cyassl
-DHAVE_SNI
63 CMAKE_OPTIONS
+= -DCYASSL
=on
65 ifeq ($(BUILD_VARIANT
),polarssl
)
66 CMAKE_OPTIONS
+= -DPOLARSSL
=on
68 ifeq ($(BUILD_VARIANT
),mbedtls
)
69 CMAKE_OPTIONS
+= -DMBEDTLS
=on
72 define Package
/libustream
/default
/install
73 $(INSTALL_DIR
) $(1)/lib
/
74 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libustream-ssl.so
$(1)/lib
/
77 Package
/libustream-openssl
/install = $(Package
/libustream
/default
/install)
78 Package
/libustream-cyassl
/install = $(Package
/libustream
/default
/install)
79 Package
/libustream-polarssl
/install = $(Package
/libustream
/default
/install)
80 Package
/libustream-mbedtls
/install = $(Package
/libustream
/default
/install)
82 $(eval
$(call BuildPackage
,libustream-polarssl
))
83 $(eval
$(call BuildPackage
,libustream-mbedtls
))
84 $(eval
$(call BuildPackage
,libustream-cyassl
))
85 $(eval
$(call BuildPackage
,libustream-openssl
))