port matrixssl to buildroot-ng
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=matrixssl
12 PKG_VERSION:=1.2.4
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
18 PKG_MD5SUM:=771c1489488e62668d673478311d63ca
19 PKG_CAT:=zcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libmatrixssl
26 SECTION:=libs
27 CATEGORY:=Libraries
28 DEPENDS:=+libpthread
29 TITLE:=Embedded SSL implementation
30 DESCRIPTION:=An embedded SSL implementation.
31 URL:=http://www.matrixssl.org/
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR)/src \
39 $(TARGET_CONFIGURE_OPTS) \
40 DFLAGS="$(TARGET_CFLAGS) -Wall"
41 endef
42
43 define Package/libmatrixssl/install
44 install -d -m0755 $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(1)/usr/lib/
46 endef
47
48 define Build/InstallDev
49 mkdir -p $(STAGING_DIR)/usr/include/matrixSsl
50 $(CP) $(PKG_BUILD_DIR)/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl
51 ln -sf matrixSsl/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl.h
52 mkdir -p $(STAGING_DIR)/usr/lib
53 $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(STAGING_DIR)/usr/lib
54 endef
55
56 define Build/UninstallDev
57 rm -rf \
58 $(STAGING_DIR)/usr/include/matrixSsl* \
59 $(STAGING_DIR)/usr/lib/libmatrixssl.so*
60 endef
61
62 $(eval $(call BuildPackage,libmatrixssl))