Makefile (1265B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=avro-c 11 PKG_VERSION:=1.8.1 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=@APACHE/avro/avro-$(PKG_VERSION)/c 16 PKG_MD5SUM:=b268348536714541e10411823a1b59b0 17 18 PKG_MAINTAINER:=John Clark <inindev@gmail.com> 19 20 PKG_INSTALL:=1 21 PKG_BUILD_PARALLEL:=1 22 23 PKG_LICENSE:=Apache-2.0 24 PKG_LICENSE_FILES:=LICENSE 25 26 include $(INCLUDE_DIR)/package.mk 27 include $(INCLUDE_DIR)/cmake.mk 28 29 define Package/avro-c 30 SECTION:=libs 31 CATEGORY:=Libraries 32 DEPENDS:=+jansson +zlib +liblzma 33 TITLE:=Apache Avro C Library 34 URL:=https://avro.apache.org 35 endef 36 37 define Package/avro-c/description 38 This package contains the Apache Avro C library. 39 endef 40 41 CMAKE_OPTIONS += \ 42 -DCMAKE_BUILD_TYPE:STRING=MINSIZEREL 43 44 define Build/InstallDev 45 $(INSTALL_DIR) $(1)/usr/{lib,include} 46 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavro.{a,so*} $(1)/usr/lib/ 48 endef 49 50 define Package/avro-c/install 51 $(INSTALL_DIR) $(1)/usr/lib 52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavro.so* $(1)/usr/lib/ 53 endef 54 55 $(eval $(call BuildPackage,avro-c)) 56