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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://nbd.vd-s.ath.cx
/openwrt
16 PKG_MD5SUM
:=771c1489488e62668d673478311d63ca
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libmatrixssl
29 TITLE
:=Embedded SSL implementation
30 URL
:=http
://www.matrixssl.org
/
33 define Build
/Configure
36 TARGET_CFLAGS
+= $(FPIC
)
39 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/src \
40 $(TARGET_CONFIGURE_OPTS
) \
41 DFLAGS
="$(TARGET_CFLAGS) -Wall"
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
/
52 define Package
/libmatrixssl
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_BUILD_DIR
)/src
/libmatrixssl.so.
* $(1)/usr
/lib
/
57 $(eval
$(call BuildPackage
,libmatrixssl
))