haproxy: update to v2.6.10
[feed/packages.git] / libs / libcbor / Makefile
1 #
2 # Copyright (C) 2020 Linos Giannopoulos
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:=libcbor
11 PKG_VERSION:=0.8.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/PJK/libcbor/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=618097166ea4a54499646998ccaa949a5816e6a665cf1d6df383690895217c8b
17
18 PKG_LICENSE:=GPL-3.0-or-later
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Linos Giannopoulos <linosgian00+openwrt@gmail.com>
21
22 CMAKE_OPTIONS += \
23 -DBUILD_SHARED_LIBS=ON
24 CMAKE_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/cmake.mk
28
29 define Package/libcbor
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=libcbor
33 URL:=https://github.com/PJK/libcbor
34 ABI_VERSION:=0
35 endef
36
37 define Package/libcbor/description
38 libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
39 endef
40
41
42 define Package/libcbor/install
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcbor.so.* $(1)/usr/lib/
45 endef
46
47 $(eval $(call BuildPackage,libcbor))