1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=2016-07-02
5 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
8 PKG_SOURCE_URL
=$(LEDE_GIT
)/project
/ustream-ssl.git
9 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE_VERSION
:=ec80adaa1b47f28d426fa19c692011ce60b992d6
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_SOURCE_SUBDIR
)
19 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
24 define Package
/libustream
/default
27 TITLE
:=ustream SSL Library
29 ABI_VERSION
:=$(PKG_VERSION
)
32 define Package
/libustream-openssl
33 $(Package
/libustream
/default
)
35 DEPENDS
+= +PACKAGE_libustream-openssl
:libopenssl
39 define Package
/libustream-cyassl
40 $(Package
/libustream
/default
)
42 DEPENDS
+= +PACKAGE_libustream-cyassl
:libcyassl
46 define Package
/libustream-polarssl
47 $(Package
/libustream
/default
)
49 DEPENDS
+= +libpolarssl
54 define Package
/libustream-mbedtls
55 $(Package
/libustream
/default
)
57 DEPENDS
+= +libmbedtls
62 ifeq ($(BUILD_VARIANT
),cyassl
)
63 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/cyassl
-DHAVE_SNI
64 CMAKE_OPTIONS
+= -DCYASSL
=on
66 ifeq ($(BUILD_VARIANT
),polarssl
)
67 CMAKE_OPTIONS
+= -DPOLARSSL
=on
69 ifeq ($(BUILD_VARIANT
),mbedtls
)
70 CMAKE_OPTIONS
+= -DMBEDTLS
=on
73 define Package
/libustream
/default
/install
74 $(INSTALL_DIR
) $(1)/lib
/
75 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libustream-ssl.so
$(1)/lib
/
78 Package
/libustream-openssl
/install = $(Package
/libustream
/default
/install)
79 Package
/libustream-cyassl
/install = $(Package
/libustream
/default
/install)
80 Package
/libustream-polarssl
/install = $(Package
/libustream
/default
/install)
81 Package
/libustream-mbedtls
/install = $(Package
/libustream
/default
/install)
83 $(eval
$(call BuildPackage
,libustream-polarssl
))
84 $(eval
$(call BuildPackage
,libustream-mbedtls
))
85 $(eval
$(call BuildPackage
,libustream-cyassl
))
86 $(eval
$(call BuildPackage
,libustream-openssl
))