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
:=89e0a83d16993ce50651a7501355453f5250e8729dfc8d4a251a78ea23bb26d7
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
))