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.

56 lines
1.2 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.8.2
  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_MD5SUM:=c2720c131307b84de71c8f147e73ecf6
  14. PKG_MAINTAINER:=John Clark <inindev@gmail.com>
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_LICENSE:=Apache-2.0
  18. PKG_LICENSE_FILES:=LICENSE
  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. CMAKE_OPTIONS += \
  32. -DCMAKE_BUILD_TYPE:STRING=MINSIZEREL
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/{lib,include}
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavro.{a,so*} $(1)/usr/lib/
  37. endef
  38. define Package/avro-c/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavro.so* $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,avro-c))