Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graphics/cxxplot: New port: C++ 2D plotting library
- Loading branch information
Showing
6 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PORTNAME= cxxplot | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 0.3.0-2 | ||
DISTVERSIONSUFFIX= -g750b54b | ||
CATEGORIES= graphics | ||
|
||
MAINTAINER= yuri@FreeBSD.org | ||
COMMENT= C++ 2D plotting library | ||
WWW= https://github.com/USNavalResearchLaboratory/cxxplot | ||
|
||
LICENSE= BSD3CLAUSE | ||
LICENSE_FILE= ${WRKSRC}/license.txt | ||
|
||
USES= cmake:testing compiler:c++20-lang gl qt:5 | ||
USE_QT= core gui opengl printsupport widgets buildtools:build qmake:build | ||
USE_GL= gl opengl | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= USNavalResearchLaboratory | ||
|
||
CMAKE_ON= BUILD_SHARED_LIBS | ||
|
||
do-test: # 'make test' opens a lot of windows | ||
.for name in 01_test 02_test 03_test 04_test 05_test 06_test_csv 07_test_image | ||
@${ECHO} "==> Running the test ${name}" | ||
@${TEST_WRKSRC}/tests/${name}/libcxxplot_${name:C/test_.*/test/} | ||
.endfor | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1667983462 | ||
SHA256 (USNavalResearchLaboratory-cxxplot-v0.3.0-2-g750b54b_GH0.tar.gz) = 4d4d3aa5e9076589b29a578a0fa10af14ce71b5ba690c1361b696f33e1cad53c | ||
SIZE (USNavalResearchLaboratory-cxxplot-v0.3.0-2-g750b54b_GH0.tar.gz) = 4385268 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- CMakeLists.txt.orig 2022-04-04 11:38:46 UTC | ||
+++ CMakeLists.txt | ||
@@ -164,7 +164,7 @@ target_link_libraries( cxxplot | ||
|
||
target_compile_options( cxxplot PRIVATE | ||
$<$<CXX_COMPILER_ID:MSVC>:> # TODO ADD /W4 /WX here by fixing cxxplot_WARNOFF / ON | ||
- $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -pedantic -Werror> | ||
+ $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -pedantic> | ||
) | ||
|
||
# Install, export targets, cmake config and version | ||
@@ -224,9 +224,10 @@ install( | ||
) | ||
|
||
# tests/examples | ||
-if ( CXXPLOT_NOT_SUBPROJECT ) | ||
- | ||
+if (BUILD_TESTING) | ||
add_subdirectory( tests ) | ||
-add_subdirectory( examples ) | ||
+endif() | ||
|
||
-endif( CXXPLOT_NOT_SUBPROJECT ) | ||
+if (BUILD_EXAMPLES) | ||
+add_subdirectory( examples ) | ||
+endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cxxplot is a C++ plotting library meant to be used in science, engineering and | ||
data analysis. The main objectives of the project are: | ||
* Provide syntax that is familiar to scientists and engineers. | ||
* Enable low setup times. | ||
* Be more performant than typical plotting libraries. | ||
* Operate in asynchronous mode. Therefore plot calls and user code can be | ||
combined and still retain GUI interactivity. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
include/cxxplot-0.3.0/cxxplot/align.hpp | ||
include/cxxplot-0.3.0/cxxplot/color.hpp | ||
include/cxxplot-0.3.0/cxxplot/concepts.hpp | ||
include/cxxplot-0.3.0/cxxplot/cxxplot | ||
include/cxxplot-0.3.0/cxxplot/execution.hpp | ||
include/cxxplot-0.3.0/cxxplot/figure.hpp | ||
include/cxxplot-0.3.0/cxxplot/gettersetter.hpp | ||
include/cxxplot-0.3.0/cxxplot/graph.hpp | ||
include/cxxplot-0.3.0/cxxplot/image.hpp | ||
include/cxxplot-0.3.0/cxxplot/named_parameter.hpp | ||
include/cxxplot-0.3.0/cxxplot/point2d.hpp | ||
include/cxxplot-0.3.0/cxxplot/range.hpp | ||
include/cxxplot-0.3.0/cxxplot/styles.hpp | ||
include/cxxplot-0.3.0/cxxplot/typetraits.hpp | ||
include/cxxplot-0.3.0/cxxplot/utils.hpp | ||
include/cxxplot-0.3.0/cxxplot/window.hpp | ||
lib/cmake/cxxplot-0.3.0/cxxplotConfig.cmake | ||
lib/cmake/cxxplot-0.3.0/cxxplotConfigVersion.cmake | ||
lib/cmake/cxxplot-0.3.0/cxxplotTargets-%%CMAKE_BUILD_TYPE%%.cmake | ||
lib/cmake/cxxplot-0.3.0/cxxplotTargets.cmake | ||
lib/cxxplot-0.3.0/libcxxplot.so |