From 482bc7273cd41f087a7d8c8e48ee2c1f45eb28ad Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Wed, 1 Mar 2023 14:59:55 +0100 Subject: [PATCH] ispc: update to 1.19.0 Closes: #40821 [via git-merge-pr] --- srcpkgs/ispc/patches/cmake-build-type-none.patch | 13 +++++++++++++ srcpkgs/ispc/template | 12 ++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/ispc/patches/cmake-build-type-none.patch diff --git a/srcpkgs/ispc/patches/cmake-build-type-none.patch b/srcpkgs/ispc/patches/cmake-build-type-none.patch new file mode 100644 index 00000000000000..a962619d9335c2 --- /dev/null +++ b/srcpkgs/ispc/patches/cmake-build-type-none.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c694166..405dc90 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -199,7 +199,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin ) + + if(CMAKE_BUILD_TYPE) + # Validate build type +- set(CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo") ++ set(CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;None") + + string(FIND "${CONFIGURATION_TYPES}" "${CMAKE_BUILD_TYPE}" MATCHED_CONFIG) + if (${MATCHED_CONFIG} EQUAL -1) diff --git a/srcpkgs/ispc/template b/srcpkgs/ispc/template index 2b06217d0aab47..574a75bab7e60a 100644 --- a/srcpkgs/ispc/template +++ b/srcpkgs/ispc/template @@ -1,18 +1,18 @@ # Template file for 'ispc' pkgname=ispc -version=1.18.1 +version=1.19.0 revision=1 archs="x86_64*" build_style=cmake -configure_args="-DISPC_NO_DUMPS=ON -DARM_ENABLED=OFF -DCMAKE_BUILD_TYPE=Release" +configure_args="-DARM_ENABLED=OFF -DISPC_INCLUDE_EXAMPLES=OFF -DISPC_INCLUDE_RT=OFF" hostmakedepends="clang clang-tools-extra python3 m4 bison flex llvm" -makedepends="ncurses-devel ncurses-libtinfo-devel zlib-devel libomp-devel" +makedepends="ncurses-devel ncurses-libtinfo-devel zlib-devel" short_desc="Compiler for high-performance SIMD programming on the CPU" maintainer="Andrea Brancaleoni " license="BSD-3-Clause" homepage="https://ispc.github.io" distfiles="https://github.com/ispc/ispc/archive/v${version}.tar.gz" -checksum=5b004c121e7a39c8654bb61930a240e4bd3e432a80d851c6281fae49f9aca7b7 +checksum=da1eccb8ead495b22d642340f3bab11fb64dd2223cd9cc92f0492f70b30f34b5 nocross=yes nopie=yes @@ -21,10 +21,6 @@ case "$XBPS_TARGET_MACHINE" in x86_64) hostmakedepends+=" gcc-multilib";; esac -pre_build() { - sed -i '/tinfo/d' CMakeLists.txt -} - post_install() { vlicense LICENSE.txt }