Initial Commit
- initial default booting image
This commit is contained in:
37
package/qhull/0001-Cmake-improvements.patch
Normal file
37
package/qhull/0001-Cmake-improvements.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
From 62ccc56af071eaa478bef6ed41fd7a55d3bb2d80 Mon Sep 17 00:00:00 2001
|
||||
From: Cristian Le <github@lecris.me>
|
||||
Date: Wed, 2 Jul 2025 15:07:37 +0200
|
||||
Subject: [PATCH] Cmake improvements (#158)
|
||||
|
||||
* Bump CMake policies -- Add higher policy bound (it is not the maximum version of CMake that can build, it's an indication that the lower bound can be bumped up to that version without degradation)
|
||||
|
||||
* Use GNUInstallDirs -- This has been the standard install interface since CMake 3.0
|
||||
|
||||
* Use more common design for the Config.cmake
|
||||
|
||||
* Use `target_include_directories` -- Use target_include_directories to propagate the include directory. Note: I don't know how the user consumes the package as #include <file.h> or #include <dir/file.h>, it is the latter in this implementation.
|
||||
|
||||
[cbbarber] user_eg_r.c uses
|
||||
#include "libqhull_r/qhull_ra.h"
|
||||
|
||||
Upstream: https://github.com/qhull/qhull/commit/62ccc56af071eaa478bef6ed41fd7a55d3bb2d80
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[removed other parts of the patch, kept cmake bump, rebased for 8.0.2]
|
||||
---
|
||||
CMakeLists.txt | 105 ++++++++++++++++++++++++------------------
|
||||
3 files changed, 63 insertions(+), 48 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b2060f49..28714b15 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -68,7 +68,7 @@
|
||||
# $DateTime: 2020/09/03 21:26:22 $$Author: bbarber $
|
||||
|
||||
project(qhull)
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.5...4.0)
|
||||
|
||||
# Define qhull_VERSION in README.txt, Announce.txt, qh-get.htm, CMakeLists.txt
|
||||
# qhull-zip.sh (twice), qhull-wiki.md, qhull-news.htm, File_id.diz, index.htm
|
||||
19
package/qhull/Config.in
Normal file
19
package/qhull/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_QHULL
|
||||
bool "qhull"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 # needs gcc >= 4.4
|
||||
help
|
||||
Qhull computes the convex hull, Delaunay triangulation,
|
||||
Voronoi diagram, halfspace intersection about a point,
|
||||
furthest-site Delaunay triangulation, and furthest-site
|
||||
Voronoi diagram. The source code runs in 2-d, 3-d, 4-d, and
|
||||
higher dimensions. Qhull implements the Quickhull algorithm
|
||||
for computing the convex hull. It handles roundoff errors
|
||||
from floating point arithmetic. It computes volumes, surface
|
||||
areas, and approximations to the convex hull.
|
||||
|
||||
http://www.qhull.org
|
||||
|
||||
comment "qhull needs a toolchain w/ C++, gcc >= 4.4"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
|
||||
5
package/qhull/qhull.hash
Normal file
5
package/qhull/qhull.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From http://www.qhull.org/download/qhull-2020-src-8.0.2-tgz.md5sum
|
||||
md5 ed767244864488d5e9a22dfa788663a9 qhull-2020-src-8.0.2-tgz
|
||||
# Locally computed
|
||||
sha256 b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e qhull-2020-src-8.0.2.tgz
|
||||
sha256 106d55c931fd6a84822e5345d900273d059f1c27310d02567ccb313c5d18c55d COPYING.txt
|
||||
28
package/qhull/qhull.mk
Normal file
28
package/qhull/qhull.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# qhull
|
||||
#
|
||||
################################################################################
|
||||
|
||||
QHULL_VERSION = 8.0.2
|
||||
QHULL_SITE = http://www.qhull.org/download
|
||||
QHULL_SOURCE = qhull-2020-src-$(QHULL_VERSION).tgz
|
||||
QHULL_INSTALL_STAGING = YES
|
||||
QHULL_LICENSE = BSD-Style
|
||||
QHULL_LICENSE_FILES = COPYING.txt
|
||||
|
||||
# Force Release mode to always build qhull_r instead of qhull_rd
|
||||
QHULL_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
|
||||
# although BUILD_STATIC_LIBS=ON is default, make it explicit,
|
||||
# cmake and static/shared libs is confusing enough already.
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
QHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
QHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
QHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user