83 lines
1.8 KiB
Makefile
83 lines
1.8 KiB
Makefile
|
#
|
||
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
|
# $Id$
|
||
|
|
||
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
|
PKG_NAME:=xyssl
|
||
|
PKG_VERSION:=0.7
|
||
|
PKG_RELEASE:=1
|
||
|
|
||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
||
|
PKG_SOURCE_URL:=http://xyssl.org/code/download/
|
||
|
PKG_MD5SUM:=f6422c393a4ca72577331f373c6c4248
|
||
|
|
||
|
include $(INCLUDE_DIR)/package.mk
|
||
|
|
||
|
define Package/xyssl/Default
|
||
|
TITLE:=Embedded SSL
|
||
|
URL:=http://xyssl.org/
|
||
|
endef
|
||
|
|
||
|
define Package/libxyssl/Default/description
|
||
|
The aim of the XySSL project is to provide a quality, open-source
|
||
|
cryptographic library written in C and targeted at embedded systems.
|
||
|
endef
|
||
|
|
||
|
define Package/libxyssl
|
||
|
$(call Package/xyssl/Default)
|
||
|
SECTION:=libs
|
||
|
CATEGORY:=Libraries
|
||
|
TITLE+= (library)
|
||
|
endef
|
||
|
|
||
|
define Package/xyssl-progs
|
||
|
$(call Package/xyssl/Default)
|
||
|
SECTION:=utils
|
||
|
CATEGORY:=Utilities
|
||
|
DEPENDS:=+libxyssl
|
||
|
TITLE+= (programs)
|
||
|
endef
|
||
|
|
||
|
define Build/Configure
|
||
|
endef
|
||
|
|
||
|
define Build/Compile
|
||
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||
|
$(TARGET_CONFIGURE_OPTS) \
|
||
|
OFLAGS="$(TARGET_CFLAGS)" \
|
||
|
all
|
||
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||
|
DESTDIR="$(PKG_INSTALL_DIR)/usr" \
|
||
|
install
|
||
|
endef
|
||
|
|
||
|
define Build/InstallDev
|
||
|
mkdir -p $(STAGING_DIR)/usr/include
|
||
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/xyssl $(STAGING_DIR)/usr/include/
|
||
|
mkdir -p $(STAGING_DIR)/usr/lib
|
||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libxyssl.{a,so} $(STAGING_DIR)/usr/lib/
|
||
|
endef
|
||
|
|
||
|
define Build/UninstallDev
|
||
|
rm -rf $(STAGING_DIR)/usr/include/xyssl \
|
||
|
$(STAGING_DIR)/usr/lib/libxyssl.{a,so}
|
||
|
endef
|
||
|
|
||
|
define Package/libxyssl/install
|
||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libxyssl.so $(1)/usr/lib/
|
||
|
endef
|
||
|
|
||
|
define Package/xyssl-progs/install
|
||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xyssl_* $(1)/usr/bin/
|
||
|
endef
|
||
|
|
||
|
$(eval $(call BuildPackage,libxyssl))
|
||
|
$(eval $(call BuildPackage,xyssl-progs))
|