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.

50 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libgabe
  3. PKG_VERSION:=0.99
  4. PKG_RELEASE:=2
  5. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  6. PKG_LICENSE:=GPLv2
  7. PKG_LICENSE_FILES:=COPYING
  8. PKG_SOURCE_PROTO:=git
  9. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  10. PKG_SOURCE_URL:=https://github.com/schanzen/libgabe.git
  11. PKG_SOURCE_VERSION:=a082729326155207312a5fc280d17844b69450f2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.xz
  13. PKG_MIRROR_HASH:=74046e8c5657d2e5bcdc0e806983ad4e205a0ed0945f8ab802d7fe564c32e9bd
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libgabe
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. DEPENDS:=+glib2 +libgcrypt +libgmp +libpbc
  21. TITLE:=Ciphertext-Policy Attribute-Based Encryption
  22. URL:=https://github.com/schanzen/libgabe
  23. endef
  24. define Package/libgabe/description
  25. This is a fork of the libbswabe library by John Bethencourt
  26. (http://hms.isi.jhu.edu/acsc/cpabe/) replacing openssl with libgcrypt
  27. and fixing some bugs.
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include/
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  32. $(INSTALL_DIR) $(1)/usr/lib/
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  34. endef
  35. define Package/libgabe/install
  36. $(INSTALL_DIR) $(1)/usr/lib/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,libgabe))