28b9a99e79dfe892ab827c3754de04dd38887e55
[openwrt/svn-archive/archive.git] / package / libs / ustream-ssl / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ustream-ssl
4 PKG_VERSION:=2013-01-22
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/ustream-ssl.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=da607e6272d789ed5dae3b0efff90912fda6f81f
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 CMAKE_INSTALL:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
15
16 PKG_LICENSE:=ISC
17 PKG_LICENSE_FILES:=
18
19 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/libustream/default
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=ustream SSL Library
28 DEPENDS:=+libubox
29 endef
30
31 define Package/libustream-openssl
32 $(Package/libustream/default)
33 TITLE += (openssl)
34 DEPENDS += +libopenssl
35 VARIANT:=openssl
36 endef
37
38 define Package/libustream-cyassl
39 $(Package/libustream/default)
40 TITLE += (cyassl)
41 DEPENDS += +libcyassl
42 VARIANT:=cyassl
43 endef
44
45 ifeq ($(BUILD_VARIANT),cyassl)
46 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/cyassl
47 CMAKE_OPTIONS += -DCYASSL=on
48 endif
49
50 define Package/libustream/default/install
51 $(INSTALL_DIR) $(1)/lib/
52 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libustream-ssl.so $(1)/lib/
53 endef
54
55 Package/libustream-openssl/install = $(Package/libustream/default/install)
56 Package/libustream-cyassl/install = $(Package/libustream/default/install)
57
58 $(eval $(call BuildPackage,libustream-cyassl))
59 $(eval $(call BuildPackage,libustream-openssl))