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.

63 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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/mcrypt
  13. PKG_HASH:=bf2f1671f44af88e66477db0982d5ecb5116a5c767b0a0d68acb34499d41b793
  14. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING.LIB
  17. PKG_CPE_ID:=cpe:/a:mcrypt:libmcrypt
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libmcrypt
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Cryptographic library
  25. URL:=http://mcrypt.sourceforge.net/
  26. endef
  27. define Package/libmcrypt/description
  28. libmcrypt is a cryptographic library that conveniently brings
  29. together a variety of ciphers for convenient use.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --enable-shared \
  33. --enable-static
  34. TARGET_CFLAGS += $(FPIC)
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.{a,so*} $(1)/usr/lib/
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libmcrypt-config $(1)/usr/bin/
  42. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libmcrypt-config
  43. $(INSTALL_DIR) $(2)/bin
  44. $(LN) ../../usr/bin/libmcrypt-config $(2)/bin/libmcrypt-config
  45. endef
  46. define Package/libmcrypt/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.so.* $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,libmcrypt))