diff options
Diffstat (limited to 'devel/lace14')
-rw-r--r-- | devel/lace14/Makefile | 28 | ||||
-rw-r--r-- | devel/lace14/distinfo | 3 | ||||
-rw-r--r-- | devel/lace14/files/patch-CMakeLists.txt | 34 | ||||
-rw-r--r-- | devel/lace14/files/patch-benchmarks_CMakeLists.txt | 11 | ||||
-rw-r--r-- | devel/lace14/pkg-descr | 2 | ||||
-rw-r--r-- | devel/lace14/pkg-plist | 11 |
6 files changed, 89 insertions, 0 deletions
diff --git a/devel/lace14/Makefile b/devel/lace14/Makefile new file mode 100644 index 000000000000..9df298a3d090 --- /dev/null +++ b/devel/lace14/Makefile @@ -0,0 +1,28 @@ +PORTNAME= lace +DISTVERSIONPREFIX= v +DISTVERSION= 1.5.1 +PORTREVISION= 1 +CATEGORIES= devel +PKGNAMESUFFIX= 14-work-stealing + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Implementation of work-stealing in C +WWW= https://github.com/trolando/lace + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:testing + +USE_GITHUB= yes +GH_ACCOUNT= trolando + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= LACE_BUILD_TESTS +CMAKE_TESTING_ON= LACE_BUILD_TESTS + +PORTSCOUT= limit:^.*[0-9]+\.[0-9]+\.[0-9]+$$ # prevent tags like mucocos_2014_ri + +# tests as of 1.4.2: 100% tests passed, 0 tests failed out of 2 + +.include <bsd.port.mk> diff --git a/devel/lace14/distinfo b/devel/lace14/distinfo new file mode 100644 index 000000000000..e43dcc9039a8 --- /dev/null +++ b/devel/lace14/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1754657253 +SHA256 (trolando-lace-v1.5.1_GH0.tar.gz) = 9aea38c98a059e0ddfb36df09683ea39cf55a66b4da16000532684c28d5fd6d8 +SIZE (trolando-lace-v1.5.1_GH0.tar.gz) = 155792 diff --git a/devel/lace14/files/patch-CMakeLists.txt b/devel/lace14/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..0df89b0ef40c --- /dev/null +++ b/devel/lace14/files/patch-CMakeLists.txt @@ -0,0 +1,34 @@ +--- CMakeLists.txt.orig 2023-11-18 14:52:47 UTC ++++ CMakeLists.txt +@@ -25,11 +25,11 @@ endif() + endif() + endif() + +-add_library(lace STATIC ++add_library(lace + ${CMAKE_CURRENT_SOURCE_DIR}/src/lace.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/lace.h + ) +-add_library(lace14 STATIC ++add_library(lace14 + ${CMAKE_CURRENT_SOURCE_DIR}/src/lace14.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/lace14.h + ) +@@ -56,7 +56,7 @@ target_compile_options(lace PRIVATE + + target_compile_options(lace PRIVATE + $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>: +- -pipe -march=native ++ -pipe + $<$<CONFIG:Debug>:-O0 -Wall -Wextra -Wpedantic>> + $<$<CXX_COMPILER_ID:MSVC>: + $<$<CONFIG:Debug>:/Od /Wall /Zi>> +@@ -64,7 +64,7 @@ target_compile_options(lace14 PRIVATE + + target_compile_options(lace14 PRIVATE + $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>: +- -pipe -march=native ++ -pipe + $<$<CONFIG:Debug>:-O0 -Wall -Wextra -Wpedantic>> + $<$<CXX_COMPILER_ID:MSVC>: + $<$<CONFIG:Debug>:/Od /Wall /Zi>> diff --git a/devel/lace14/files/patch-benchmarks_CMakeLists.txt b/devel/lace14/files/patch-benchmarks_CMakeLists.txt new file mode 100644 index 000000000000..89d193cca126 --- /dev/null +++ b/devel/lace14/files/patch-benchmarks_CMakeLists.txt @@ -0,0 +1,11 @@ +--- benchmarks/CMakeLists.txt.orig 2025-08-19 10:37:46 UTC ++++ benchmarks/CMakeLists.txt +@@ -4,7 +4,7 @@ macro(set_compilation_settings NAME) + target_compile_features(${NAME} PRIVATE c_std_11 cxx_std_11) + target_compile_options(${NAME} PRIVATE + $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>: +- -pipe -march=native -Wall -Wextra -Wpedantic -Wno-deprecated> ++ -pipe -Wall -Wextra -Wpedantic -Wno-deprecated> + $<$<CXX_COMPILER_ID:MSVC>: /W4> + ) + if (CMAKE_BUILD_TYPE STREQUAL "Release") diff --git a/devel/lace14/pkg-descr b/devel/lace14/pkg-descr new file mode 100644 index 000000000000..b0efdd64bc2b --- /dev/null +++ b/devel/lace14/pkg-descr @@ -0,0 +1,2 @@ +Lace is a C framework for fine-grained fork-join parallelism intended for +scientific computations on multi-core computers. diff --git a/devel/lace14/pkg-plist b/devel/lace14/pkg-plist new file mode 100644 index 000000000000..6b1ab64e5d57 --- /dev/null +++ b/devel/lace14/pkg-plist @@ -0,0 +1,11 @@ +include/lace.h +include/lace14.h +include/lace_config.h +lib/cmake/lace/lace-config-version.cmake +lib/cmake/lace/lace-config.cmake +lib/cmake/lace/lace-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/lace/lace-targets.cmake +lib/liblace.so +lib/liblace14.so +libdata/pkgconfig/lace.pc +libdata/pkgconfig/lace14.pc |