2 # Copyright (C) 2020 Linos Giannopoulos
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
18 PKG_LICENSE
:=GPL-3.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Linos Giannopoulos
<linosgian00
+openwrt@gmail.com
>
23 -DBUILD_SHARED_LIBS
=ON
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/cmake.mk
29 define Package
/libcbor
33 URL
:=https
://github.com
/PJK
/libcbor
37 define Package
/libcbor
/description
38 libcbor is a C library for parsing and generating CBOR
, the general-purpose schema-less binary data format.
42 define Package
/libcbor
/install
43 $(INSTALL_DIR
) $(1)/usr
/lib
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcbor.so.
* $(1)/usr
/lib
/
47 $(eval
$(call BuildPackage
,libcbor
))