1
0

Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. PKG_SOURCE_URL:=@SF/mcrypt
  16. PKG_MD5SUM:=c4f491dd411a09e9de3b8702ea6f73eb
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. TARGET_CFLAGS += $(FPIC)
  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. define Build/Configure
  32. $(call Build/Configure/Default, \
  33. --enable-shared \
  34. --enable-static \
  35. )
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.{a,so*} $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libmcrypt-config $(1)/usr/bin/
  44. $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libmcrypt-config
  45. $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libmcrypt-config
  46. endef
  47. define Package/libmcrypt/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.so.* $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libmcrypt))