[backfire/packages] ntpd: merge r28572
[openwrt/svn-archive/archive.git] / libs / matrixssl / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=matrixssl
11 PKG_VERSION:=1.2.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
16 PKG_MD5SUM:=771c1489488e62668d673478311d63ca
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libmatrixssl
25 SECTION:=libs
26 SUBMENU:=SSL
27 CATEGORY:=Libraries
28 DEPENDS:=+libpthread
29 TITLE:=Embedded SSL implementation
30 URL:=http://www.matrixssl.org/
31 endef
32
33 define Build/Configure
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Compile
39 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src \
40 $(TARGET_CONFIGURE_OPTS) \
41 DFLAGS="$(TARGET_CFLAGS) -Wall"
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include/matrixSsl
46 $(CP) $(PKG_BUILD_DIR)/matrixSsl.h $(1)/usr/include/matrixSsl/
47 ln -sf matrixSsl/matrixSsl.h $(1)/usr/include/matrixSsl.h
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(1)/usr/lib/
50 endef
51
52 define Package/libmatrixssl/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libmatrixssl))