0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-31 12:40:24 +00:00
Files
packages/libs/libcbor/Makefile
Tianling Shen 1fc56e79d5 libcbor: disable sanitize by default
musl libc does not support this feature, and for glibc, additional
library libasan is required. Disable it explicitly to avoid build issue
when CONFIG_DEBUG is selected.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-04-14 14:41:18 +03:00

49 lines
1.1 KiB
Makefile

#
# Copyright (C) 2020 Linos Giannopoulos
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libcbor
PKG_VERSION:=0.11.0
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/PJK/libcbor/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=89e0a83d16993ce50651a7501355453f5250e8729dfc8d4a251a78ea23bb26d7
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Linos Giannopoulos <linosgian00+openwrt@gmail.com>
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libcbor
SECTION:=libs
CATEGORY:=Libraries
TITLE:=libcbor
URL:=https://github.com/PJK/libcbor
ABI_VERSION:=0
endef
define Package/libcbor/description
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
endef
CMAKE_OPTIONS += \
-DBUILD_SHARED_LIBS=ON \
-DSANITIZE=OFF
define Package/libcbor/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcbor.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcbor))