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