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.

49 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libgabe
  3. PKG_VERSION:=0.99
  4. PKG_RELEASE:=1
  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:=f72c594eaed35d5a506e8f6c091200a73e17e702
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.xz
  13. PKG_MIRROR_HASH:=cc5527f7976d904d6c50f40612c5b3d0617342cfc8cf856434a305cfb42e27ff
  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/* $(1)/usr/lib/
  34. endef
  35. define Package/libgabe/install
  36. # static library only
  37. endef
  38. $(eval $(call BuildPackage,libgabe))