You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libmcrypt
  9. PKG_VERSION:=2.5.8
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPLv2.1
  13. PKG_LICENSE_FILES:=COPYING.LIB
  14. PKG_CPE_ID:=cpe:/a:mcrypt:libmcrypt
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_SOURCE_URL:=@SF/mcrypt
  17. PKG_HASH:=bf2f1671f44af88e66477db0982d5ecb5116a5c767b0a0d68acb34499d41b793
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. TARGET_CFLAGS += $(FPIC)
  22. define Package/libmcrypt
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Cryptographic library
  26. URL:=http://mcrypt.sourceforge.net/
  27. endef
  28. define Package/libmcrypt/description
  29. libmcrypt is a cryptographic library that conveniently brings
  30. together a variety of ciphers for convenient use.
  31. endef
  32. define Build/Configure
  33. $(call Build/Configure/Default, \
  34. --enable-shared \
  35. --enable-static \
  36. )
  37. endef
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.{a,so*} $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libmcrypt-config $(1)/usr/bin/
  45. $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libmcrypt-config
  46. $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libmcrypt-config
  47. endef
  48. define Package/libmcrypt/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.so.* $(1)/usr/lib/
  51. endef
  52. $(eval $(call BuildPackage,libmcrypt))