From ec02fb40b69b64e61ad4e47846052f2f4406eabc Mon Sep 17 00:00:00 2001 From: John Clark Date: Sat, 8 Oct 2016 21:48:28 -0400 Subject: [PATCH] avro: Apache Avro C Library 1.8.1 Signed-off-by: John Clark Tested-by: John Clark --- libs/avro/Makefile | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 libs/avro/Makefile diff --git a/libs/avro/Makefile b/libs/avro/Makefile new file mode 100644 index 0000000000..2a3ed5ed9c --- /dev/null +++ b/libs/avro/Makefile @@ -0,0 +1,56 @@ +# +# avro - Makefile for Apache Avro library +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=avro-c +PKG_VERSION:=1.8.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@APACHE/avro/avro-$(PKG_VERSION)/c +PKG_MD5SUM:=b268348536714541e10411823a1b59b0 + +PKG_MAINTAINER:=John Clark + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/avro-c + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+jansson +zlib +liblzma + TITLE:=Apache Avro C Library + URL:=https://avro.apache.org +endef + +define Package/avro-c/description + This package contains the Apache Avro C library. +endef + +CMAKE_OPTIONS += \ + -DCMAKE_BUILD_TYPE:STRING=MINSIZEREL + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/{lib,include} + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavro.{a,so*} $(1)/usr/lib/ +endef + +define Package/avro-c/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavro.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,avro-c)) + -- 2.30.2