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.

66 lines
1.5 KiB

  1. #
  2. # avro - Makefile for Apache Avro library
  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:=avro-c
  9. PKG_VERSION:=1.9.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@APACHE/avro/avro-$(PKG_VERSION)/c
  13. PKG_HASH:=7df7bc1e13ce7180f0438ed05ab6642b5b2b6df91f30b927b470e25a78e04642
  14. PKG_MAINTAINER:=John Clark <inindev@gmail.com>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. CMAKE_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/avro-c
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+jansson +zlib +liblzma
  25. TITLE:=Apache Avro C Library
  26. URL:=https://avro.apache.org
  27. endef
  28. define Package/avro-c/description
  29. This package contains the Apache Avro C library.
  30. endef
  31. define Package/avro-c-utils
  32. SECTIONS:=utils
  33. CATEGORY:=Utilities
  34. DEPENDS:=+avro-c
  35. TITLE:=Apache Avro C utilities
  36. URL:=https://avro.apache.org
  37. endef
  38. define Package/avro-c-utils/description
  39. This package contains the Apache Avro C utilities.
  40. endef
  41. TARGET_LDFLAGS += -Wl,--gc-sections
  42. define Package/avro-c/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavro.so* $(1)/usr/lib/
  45. endef
  46. define Package/avro-c-utils/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/avro* $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,avro-c))
  51. $(eval $(call BuildPackage,avro-c-utils))