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.

47 lines
1.2 KiB

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