2006-07-23 13:05:53 +00:00
|
|
|
#
|
2009-07-12 17:46:27 +00:00
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2006-07-23 13:05:53 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libmcrypt
|
2009-07-12 17:46:27 +00:00
|
|
|
PKG_VERSION:=2.5.8
|
2006-07-23 13:05:53 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2009-07-12 17:46:27 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2006-07-23 13:05:53 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/mcrypt
|
2009-07-12 17:46:27 +00:00
|
|
|
PKG_MD5SUM:=c4f491dd411a09e9de3b8702ea6f73eb
|
2006-07-23 13:05:53 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libmcrypt
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Cryptographic library
|
|
|
|
URL:=http://mcrypt.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libmcrypt/description
|
2009-07-12 17:46:27 +00:00
|
|
|
libmcrypt is a cryptographic library that conveniently brings
|
2007-10-14 04:32:56 +00:00
|
|
|
together a variety of ciphers for convenient use.
|
|
|
|
endef
|
|
|
|
|
2006-07-23 13:05:53 +00:00
|
|
|
define Build/Configure
|
2006-10-22 21:31:00 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
)
|
2006-07-23 13:05:53 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-07-23 13:05:53 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
2009-07-12 17:46:27 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.{a,so*} $(1)/usr/lib/
|
|
|
|
mkdir -p $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libmcrypt-config $(1)/usr/bin/
|
2007-10-07 03:20:26 +00:00
|
|
|
$(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libmcrypt-config
|
|
|
|
$(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libmcrypt-config
|
2006-07-23 13:05:53 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-22 21:31:00 +00:00
|
|
|
define Package/libmcrypt/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-11-21 22:01:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.so.* $(1)/usr/lib/
|
2006-10-22 21:31:00 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-23 13:05:53 +00:00
|
|
|
$(eval $(call BuildPackage,libmcrypt))
|