ustream-ssl: update to 19.07 Git HEAD
[openwrt/openwrt.git] / package / libs / ustream-ssl / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ustream-ssl
4 PKG_RELEASE:=1
5
6 PKG_SOURCE_PROTO:=git
7 PKG_SOURCE_URL=$(PROJECT_GIT)/project/ustream-ssl.git
8 PKG_SOURCE_DATE:=2020-03-13
9 PKG_SOURCE_VERSION:=40b563b1ea89dabb2b6cd90644908134a0c8eff2
10 PKG_MIRROR_HASH:=db562c9919b4045c7b735c935b0a93983686b827ec4d537e8aa875c7e6df21a1
11 CMAKE_INSTALL:=1
12
13 PKG_LICENSE:=ISC
14 PKG_LICENSE_FILES:=
15
16 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/cmake.mk
20
21 define Package/libustream/default
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=ustream SSL Library
25 DEPENDS:=+libubox
26 ABI_VERSION:=20150806
27 endef
28
29 define Package/libustream-openssl
30 $(Package/libustream/default)
31 TITLE += (openssl)
32 DEPENDS += +PACKAGE_libustream-openssl:libopenssl
33 VARIANT:=openssl
34 endef
35
36 define Package/libustream-wolfssl
37 $(Package/libustream/default)
38 TITLE += (wolfssl)
39 DEPENDS += +PACKAGE_libustream-wolfssl:libwolfssl
40 VARIANT:=wolfssl
41 endef
42
43 define Package/libustream-mbedtls
44 $(Package/libustream/default)
45 TITLE += (mbedtls)
46 DEPENDS += +libmbedtls
47 VARIANT:=mbedtls
48 DEFAULT_VARIANT:=1
49 endef
50
51 ifeq ($(BUILD_VARIANT),wolfssl)
52 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/wolfssl
53 CMAKE_OPTIONS += -DWOLFSSL=on
54 endif
55 ifeq ($(BUILD_VARIANT),mbedtls)
56 CMAKE_OPTIONS += -DMBEDTLS=on
57 endif
58
59 define Package/libustream/default/install
60 $(INSTALL_DIR) $(1)/lib/
61 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libustream-ssl.so $(1)/lib/
62 endef
63
64 Package/libustream-openssl/install = $(Package/libustream/default/install)
65 Package/libustream-wolfssl/install = $(Package/libustream/default/install)
66 Package/libustream-mbedtls/install = $(Package/libustream/default/install)
67
68 $(eval $(call BuildPackage,libustream-mbedtls))
69 $(eval $(call BuildPackage,libustream-wolfssl))
70 $(eval $(call BuildPackage,libustream-openssl))