2006-07-23 13:05:53 +00:00
|
|
|
#
|
|
|
|
# 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:=libmcrypt
|
|
|
|
PKG_VERSION:=2.5.7
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/mcrypt
|
|
|
|
PKG_MD5SUM:=b1be163143f8e8ed0474beeb642b3bad
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2006-10-22 21:31:00 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-07-23 13:05:53 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libmcrypt
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Cryptographic library
|
2006-10-22 21:31:00 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
libmcrypt is a cryptographic library that conveniently brings \\\
|
|
|
|
together a variety of ciphers for convenient use.
|
2006-07-23 13:05:53 +00:00
|
|
|
URL:=http://mcrypt.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/mcrypt.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.{a,so*} $(STAGING_DIR)/usr/lib/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libmcrypt-config $(STAGING_DIR)/usr/bin/
|
2006-10-22 21:31:00 +00:00
|
|
|
$(SED) 's,-I$$$${prefix}/include,,g' $(STAGING_DIR)/usr/bin/libmcrypt-config
|
|
|
|
$(SED) 's,-L$$$${exec_prefix}/lib,,g' $(STAGING_DIR)/usr/bin/libmcrypt-config
|
2006-07-23 13:05:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/include/mcrypt.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libmcrypt.{a,so*} \
|
2007-03-26 02:59:48 +00:00
|
|
|
$(STAGING_DIR)/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))
|