package/libsolv: new package

Required by micromamba.

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
[Thomas:
 - rework shared/static lib handling
 - don't pass ENABLE_CONDA=ON based on BR2_PACKAGE_MICROMAMBA=y as
   it's weird that a dependency does something different depending on
   which of its reverse dependencies is enabled]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
TIAN Yuanhao 2022-11-28 12:34:16 +00:00 committed by Thomas Petazzoni
parent 1ffbc3a9cb
commit 93ce3c1be0
5 changed files with 41 additions and 0 deletions

View File

@ -2788,6 +2788,7 @@ F: package/most/
N: TIAN Yuanhao <tianyuanhao3@163.com>
F: package/cli11/
F: package/libsolv/
F: package/open-isns/
F: package/termcolor/
F: package/tl-expected/

View File

@ -2085,6 +2085,7 @@ menu "Other"
source "package/libshdata/Config.in"
source "package/libsigc/Config.in"
source "package/libsigsegv/Config.in"
source "package/libsolv/Config.in"
source "package/libspatialindex/Config.in"
source "package/libtalloc/Config.in"
source "package/libtasn1/Config.in"

View File

@ -0,0 +1,9 @@
config BR2_PACKAGE_LIBSOLV
bool "libsolv"
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_ZLIB
help
A free package dependency solver using a satisfiability
algorithm.
https://github.com/openSUSE/libsolv

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 968aef452b5493751fa0168cd58745a77c755e202a43fe8d549d791eb16034d5 libsolv-0.7.22.tar.gz
sha256 57f15acfb29fbef7749779e096a5885c60b716633e34484a21bb717554c0198f LICENSE.BSD

View File

@ -0,0 +1,27 @@
################################################################################
#
# libsolv
#
################################################################################
LIBSOLV_VERSION = 0.7.22
LIBSOLV_SITE = $(call github,openSUSE,libsolv,$(LIBSOLV_VERSION))
LIBSOLV_LICENSE = BSD-3-Clause
LIBSOLV_LICENSE_FILES = LICENSE.BSD
LIBSOLV_INSTALL_STAGING = YES
LIBSOLV_DEPENDENCIES = zlib
LIBSOLV_CONF_OPTS = -DCMAKE_CXX_COMPILER_FORCED=ON
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
LIBSOLV_CONF_OPTS += -DENABLE_STATIC=ON
else
LIBSOLV_CONF_OPTS += -DDISABLE_STATIC=ON
endif
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
LIBSOLV_CONF_OPTS += -DENABLE_SHARED=ON
else
LIBSOLV_CONF_OPTS += -DDISABLE_SHARED=ON
endif
$(eval $(cmake-package))