diff options
-rw-r--r-- | community/ispc/0001-cmake-fixes.patch | 41 | ||||
-rw-r--r-- | community/ispc/APKBUILD (renamed from testing/ispc/APKBUILD) | 6 | ||||
-rw-r--r-- | testing/ispc/0001-tinfo.patch | 25 |
3 files changed, 44 insertions, 28 deletions
diff --git a/community/ispc/0001-cmake-fixes.patch b/community/ispc/0001-cmake-fixes.patch new file mode 100644 index 0000000000..88c42ea174 --- /dev/null +++ b/community/ispc/0001-cmake-fixes.patch @@ -0,0 +1,41 @@ +From 6e75a3a671ae9f96372949af07df30db2d69a1dd Mon Sep 17 00:00:00 2001 +From: Leon Marz <main@lmarz.org> +Date: Thu, 1 Jul 2021 15:34:07 +0200 +Subject: [PATCH] cmake fixes + +--- + CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ef88317..1443620 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -196,6 +196,7 @@ set(OUTPUT_DEBUG Debug/bin) + set(OUTPUT_RELEASE Release/bin) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin ) + ++if(false) + if(CMAKE_BUILD_TYPE) + # Validate build type + set(CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo") +@@ -208,6 +209,7 @@ else(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") + message(STATUS "Build type not specified: Use Release by default.") + endif(CMAKE_BUILD_TYPE) ++endif() + + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ispcrt/cmake) + include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FixWindowsPath.cmake) +@@ -525,7 +527,7 @@ else() + else() + find_package(Curses REQUIRED) + find_package(ZLIB REQUIRED) +- find_library(NCURSES_TINFO_LIBRARY tinfo) ++ find_library(NCURSES_TINFO_LIBRARY ncursesw) + target_link_libraries(${PROJECT_NAME} pthread ${ZLIB_LIBRARIES} ${NCURSES_TINFO_LIBRARY} ${CURSES_LIBRARIES}) + endif() + endif() +-- +2.34.1 + diff --git a/testing/ispc/APKBUILD b/community/ispc/APKBUILD index 76c50f7ae0..a6a4497cc0 100644 --- a/testing/ispc/APKBUILD +++ b/community/ispc/APKBUILD @@ -19,9 +19,8 @@ makedepends="cmake m4 ncurses-dev zlib-dev" -# subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/ispc/ispc/archive/v$pkgver.tar.gz - 0001-tinfo.patch + 0001-cmake-fixes.patch " options="!check" # ctest does not find a testsuite @@ -34,6 +33,7 @@ build() { esac cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=True \ -DCLANG_EXECUTABLE="$(command -v clang)" \ @@ -52,5 +52,5 @@ package() { sha512sums=" 89b844a15a888ae7074c4baa47f46d1d7176501f215c9a8c3b4bf9ad1960dc77d53f1f448d5253ad0c6a91e5088af243c3dfd148e619f9abeb6a16f715e3b463 ispc-1.16.1.tar.gz -f22261c96b778228ff63db4273ec25e2081f870a01a56765ec64ebc5b72909c5be527bb065503afbdd24821df8776bcf9a9147f6d1bdaec3776339685097614d 0001-tinfo.patch +1773cd37dac6de75512bc1285be2c4870b7ce2dfcf16c42d4788ff0a17d8a71127ebcec1110210e775a355034d32cbe91ecdffbc6cf5155f456141b23953d8f5 0001-cmake-fixes.patch " diff --git a/testing/ispc/0001-tinfo.patch b/testing/ispc/0001-tinfo.patch deleted file mode 100644 index 49b50a70ea..0000000000 --- a/testing/ispc/0001-tinfo.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 24e932ce16d99d384be19d43626bca03a1f21459 Mon Sep 17 00:00:00 2001 -From: Leon Marz <main@lmarz.org> -Date: Thu, 1 Jul 2021 15:34:07 +0200 -Subject: [PATCH] tinfo - ---- - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index ef88317..e733978 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -525,7 +525,7 @@ else() - else() - find_package(Curses REQUIRED) - find_package(ZLIB REQUIRED) -- find_library(NCURSES_TINFO_LIBRARY tinfo) -+ find_library(NCURSES_TINFO_LIBRARY ncursesw) - target_link_libraries(${PROJECT_NAME} pthread ${ZLIB_LIBRARIES} ${NCURSES_TINFO_LIBRARY} ${CURSES_LIBRARIES}) - endif() - endif() --- -2.32.0 - |