2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://nbd.vd-s.ath.cx
/openwrt
17 PKG_MD5SUM
:=771c1489488e62668d673478311d63ca
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libmatrixssl
28 TITLE
:=Embedded SSL implementation
29 URL
:=http
://www.matrixssl.org
/
32 define Build
/Configure
36 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
37 $(TARGET_CONFIGURE_OPTS
) \
38 DFLAGS
="$(TARGET_CFLAGS) -Wall"
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
49 define Build
/UninstallDev
51 $(STAGING_DIR
)/usr
/include/matrixSsl
* \
52 $(STAGING_DIR
)/usr
/lib
/libmatrixssl.so
*
55 define Package
/libmatrixssl
/install
56 install -d
-m0755
$(1)/usr
/lib
57 $(CP
) $(PKG_BUILD_DIR
)/src
/libmatrixssl.so.
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,libmatrixssl
))