1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=2014-03-17
5 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
8 PKG_SOURCE_URL
:=git
://nbd.name
/ustream-ssl.git
9 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE_VERSION
:=14fa00e3fe1ca61fcc546ee18976ec23fbe62d74
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@openwrt.org
>
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
24 define Package
/libustream
/default
27 TITLE
:=ustream SSL Library
31 define Package
/libustream-openssl
32 $(Package
/libustream
/default
)
34 DEPENDS
+= +libopenssl
38 define Package
/libustream-cyassl
39 $(Package
/libustream
/default
)
45 define Package
/libustream-polarssl
46 $(Package
/libustream
/default
)
48 DEPENDS
+= +libpolarssl
52 ifeq ($(BUILD_VARIANT
),cyassl
)
53 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/cyassl
54 CMAKE_OPTIONS
+= -DCYASSL
=on
56 ifeq ($(BUILD_VARIANT
),polarssl
)
57 CMAKE_OPTIONS
+= -DPOLARSSL
=on
60 define Package
/libustream
/default
/install
61 $(INSTALL_DIR
) $(1)/lib
/
62 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libustream-ssl.so
$(1)/lib
/
65 Package
/libustream-openssl
/install = $(Package
/libustream
/default
/install)
66 Package
/libustream-cyassl
/install = $(Package
/libustream
/default
/install)
67 Package
/libustream-polarssl
/install = $(Package
/libustream
/default
/install)
69 $(eval
$(call BuildPackage
,libustream-polarssl
))
70 $(eval
$(call BuildPackage
,libustream-cyassl
))
71 $(eval
$(call BuildPackage
,libustream-openssl
))