1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# qhull 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunQHULL_VERSION = 8.0.2 8*4882a593SmuzhiyunQHULL_SITE = http://www.qhull.org/download 9*4882a593SmuzhiyunQHULL_SOURCE = qhull-2020-src-$(QHULL_VERSION).tgz 10*4882a593SmuzhiyunQHULL_INSTALL_STAGING = YES 11*4882a593SmuzhiyunQHULL_LICENSE = BSD-Style 12*4882a593SmuzhiyunQHULL_LICENSE_FILES = COPYING.txt 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun# Force Release mode to always build qhull_r instead of qhull_rd 15*4882a593SmuzhiyunQHULL_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable 18*4882a593Smuzhiyun# although BUILD_STATIC_LIBS=ON is default, make it explicit, 19*4882a593Smuzhiyun# cmake and static/shared libs is confusing enough already. 20*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y) 21*4882a593SmuzhiyunQHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=ON 22*4882a593Smuzhiyunelse ifeq ($(BR2_SHARED_STATIC_LIBS),y) 23*4882a593SmuzhiyunQHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=ON 24*4882a593Smuzhiyunelse ifeq ($(BR2_SHARED_LIBS),y) 25*4882a593SmuzhiyunQHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF 26*4882a593Smuzhiyunendif 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun$(eval $(cmake-package)) 29