diff options
author | John Marino <marino@FreeBSD.org> | 2014-11-04 18:36:41 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-11-04 18:36:41 +0000 |
commit | 0c5e7c4e2091c5d712cdd45804d91b9ada58dd3d (patch) | |
tree | 97b9b4a3126d1e71624bd12ab4ef787d5f712948 /graphics/code-eli | |
parent | d2a94f242434a73d512f929cd24d46baf24173e4 (diff) |
Add new port graphics/code-eli
PR: 194406
Submitted by: Fernando Apesteguia
This is a collection of C++ libraries that provides a variety of
functionalities. Eigen3 is needed for most of the components to work
since all of the vector and matrix math is done using Eigen3. CPPTest
is used to perform unit testing on the components.
Notes
Notes:
svn path=/head/; revision=372161
Diffstat (limited to 'graphics/code-eli')
-rw-r--r-- | graphics/code-eli/Makefile | 74 | ||||
-rw-r--r-- | graphics/code-eli/distinfo | 2 | ||||
-rw-r--r-- | graphics/code-eli/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/code-eli/pkg-plist | 91 |
4 files changed, 173 insertions, 0 deletions
diff --git a/graphics/code-eli/Makefile b/graphics/code-eli/Makefile new file mode 100644 index 000000000000..9a0f8caa9b2f --- /dev/null +++ b/graphics/code-eli/Makefile @@ -0,0 +1,74 @@ +# Created by: Fernando Apesteguia <fernando.apesteguia@gmail.com> +# $FreeBSD$ + +PORTNAME= code-eli +PORTVERSION= 0.3.6 +CATEGORIES= graphics +MASTER_SITES= GH + +MAINTAINER= fernando.apesteguia@gmail.com +COMMENT= Library with functionalities for geometries + +LICENSE= EPL +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= eigen>3:${PORTSDIR}/math/eigen3 + +USE_GITHUB= yes +GH_PROJECT= Code-Eli +GH_ACCOUNT= ddmarshall +GH_TAGNAME= ${PORTVERSION} +GH_COMMIT= 2196ee5 + +USES= cmake:outsource compiler:c++11-lib +PORTEXAMPLES= AirfoilFitExample VSPPodExample test +PORTDOCS= html latex +ALL_TARGET= all + +# Some useful variables +AIRFOIL_DIR= airfoil_fit +VSPPOD_DIR= vsp_pod + +# Build options +OPTIONS_DEFINE= DOCS EXAMPLES +EXAMPLES_LIB_DEPENDS= libcpptest.so:${PORTSDIR}/devel/cpptest +DOCS_BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen +DOCS_ALL_TARGET= doc + +.include <bsd.port.options.mk> + +post-patch: +.if ! ${PORT_OPTIONS:MEXAMPLES} + ${REINPLACE_CMD} \ + -e 's/add_subdirectory(example)//g' \ + -e 's/find_package(CPPTest)//g' \ + ${WRKSRC}/CMakeLists.txt +.endif + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/include/eli \ + ${STAGEDIR}${EXAMPLESDIR}${TEST_SUBDIR} \ + ${STAGEDIR}${EXAMPLESDIR} \ + ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${BUILD_WRKSRC}/include/eli/code_eli.hpp \ + ${STAGEDIR}${PREFIX}/include/eli + (cd ${WRKSRC}/include/eli && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/eli "*") +.if ${PORT_OPTIONS:MEXAMPLES} + ${INSTALL_DATA} \ + ${BUILD_WRKSRC}/example/${VSPPOD_DIR}/VSPPodExample \ + ${BUILD_WRKSRC}/example/${AIRFOIL_DIR}/AirfoilFitExample \ + ${STAGEDIR}${EXAMPLESDIR} + ${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/VSPPodExample \ + ${STAGEDIR}${EXAMPLESDIR}/AirfoilFitExample + (cd ${BUILD_WRKSRC}/${TEST_SUBDIR} && \ + ${COPYTREE_BIN} . ${STAGEDIR}${EXAMPLESDIR}${TEST_SUBDIR} \ + "-name *Test -type f") + ${FIND} ${STAGEDIR}${EXAMPLESDIR}${TEST_SUBDIR} -name *Test | \ + ${XARGS} ${STRIP_CMD} +.endif +.if ${PORT_OPTIONS:MDOCS} + (cd ${BUILD_WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) +.endif + +.include <bsd.port.mk> diff --git a/graphics/code-eli/distinfo b/graphics/code-eli/distinfo new file mode 100644 index 000000000000..75e2b1133c9b --- /dev/null +++ b/graphics/code-eli/distinfo @@ -0,0 +1,2 @@ +SHA256 (code-eli-0.3.6.tar.gz) = f8cd25c612a9debfd56e01fe3821fb34bf6bfd8d37d3557f9c91c307b7772df6 +SIZE (code-eli-0.3.6.tar.gz) = 262384 diff --git a/graphics/code-eli/pkg-descr b/graphics/code-eli/pkg-descr new file mode 100644 index 000000000000..46231c0a0106 --- /dev/null +++ b/graphics/code-eli/pkg-descr @@ -0,0 +1,6 @@ +This is a collection of C++ libraries that provides a variety of +functionalities. Eigen3 is needed for most of the components to work +since all of the vector and matrix math is done using Eigen3. CPPTest +is used to perform unit testing on the components. + +WWW: https://github.com/ddmarshall/Code-Eli diff --git a/graphics/code-eli/pkg-plist b/graphics/code-eli/pkg-plist new file mode 100644 index 000000000000..4a2112c5a372 --- /dev/null +++ b/graphics/code-eli/pkg-plist @@ -0,0 +1,91 @@ +include/eli/code_eli.hpp +include/eli/constants.hpp +include/eli/constants/math.hpp +include/eli/geom.hpp +include/eli/geom/curve.hpp +include/eli/geom/curve/bezier.hpp +include/eli/geom/curve/curvature.hpp +include/eli/geom/curve/equivalent_curves.hpp +include/eli/geom/curve/explicit_bezier.hpp +include/eli/geom/curve/fit_container.hpp +include/eli/geom/curve/length.hpp +include/eli/geom/curve/piecewise.hpp +include/eli/geom/curve/piecewise_circle_creator.hpp +include/eli/geom/curve/piecewise_creator.hpp +include/eli/geom/curve/piecewise_creator_base.hpp +include/eli/geom/curve/piecewise_cubic_spline_creator.hpp +include/eli/geom/curve/piecewise_four_digit_creator.hpp +include/eli/geom/curve/piecewise_general_creator.hpp +include/eli/geom/curve/piecewise_linear_creator.hpp +include/eli/geom/curve/piecewise_point_creator.hpp +include/eli/geom/curve/piecewise_polygon_creator.hpp +include/eli/geom/curve/piecewise_superellipse_creator.hpp +include/eli/geom/curve/pseudo.hpp +include/eli/geom/curve/pseudo/four_digit.hpp +include/eli/geom/curve/torsion.hpp +include/eli/geom/general.hpp +include/eli/geom/general/bounding_box.hpp +include/eli/geom/general/continuity.hpp +include/eli/geom/intersect.hpp +include/eli/geom/intersect/minimum_distance.hpp +include/eli/geom/intersect/minimum_distance_bounding_box.hpp +include/eli/geom/intersect/minimum_distance_curve.hpp +include/eli/geom/intersect/minimum_distance_line.hpp +include/eli/geom/intersect/minimum_distance_plane.hpp +include/eli/geom/intersect/minimum_distance_point.hpp +include/eli/geom/intersect/minimum_distance_surface.hpp +include/eli/geom/point.hpp +include/eli/geom/point/distance.hpp +include/eli/geom/surface.hpp +include/eli/geom/surface/bezier.hpp +include/eli/geom/surface/curvature.hpp +include/eli/geom/surface/piecewise.hpp +include/eli/geom/surface/piecewise_body_of_revolution_creator.hpp +include/eli/geom/surface/piecewise_capped_surface_creator.hpp +include/eli/geom/surface/piecewise_connection_data.hpp +include/eli/geom/surface/piecewise_creator_base.hpp +include/eli/geom/surface/piecewise_general_skinning_surface_creator.hpp +include/eli/geom/utility/bezier.hpp +include/eli/mutil.hpp +include/eli/mutil/ad.hpp +include/eli/mutil/ad/dual.hpp +include/eli/mutil/ad/dual_functions.hpp +include/eli/mutil/ad/dual_math.hpp +include/eli/mutil/ad/dual_number.hpp +include/eli/mutil/ad/dual_operators.hpp +include/eli/mutil/ad/dual_traits.hpp +include/eli/mutil/dm.hpp +include/eli/mutil/dm/binomial_coefficient.hpp +include/eli/mutil/dm/combination.hpp +include/eli/mutil/dm/factorial.hpp +include/eli/mutil/fd.hpp +include/eli/mutil/fd/d1o1.hpp +include/eli/mutil/fd/d1o2.hpp +include/eli/mutil/fd/d1o3.hpp +include/eli/mutil/fd/d2o1.hpp +include/eli/mutil/fd/d2o2.hpp +include/eli/mutil/nls.hpp +include/eli/mutil/nls/bisection_method.hpp +include/eli/mutil/nls/iterative_root_base.hpp +include/eli/mutil/nls/iterative_system_root_base.hpp +include/eli/mutil/nls/newton_raphson_constrained_method.hpp +include/eli/mutil/nls/newton_raphson_constrained_system_method.hpp +include/eli/mutil/nls/newton_raphson_method.hpp +include/eli/mutil/nls/newton_raphson_system_method.hpp +include/eli/mutil/nls/secant_method.hpp +include/eli/mutil/opt.hpp +include/eli/mutil/opt/least_squares.hpp +include/eli/mutil/poly.hpp +include/eli/mutil/poly/polynomial.hpp +include/eli/mutil/poly/root/closed_form.hpp +include/eli/mutil/poly/root/descartes_rule.hpp +include/eli/mutil/poly/root/radius.hpp +include/eli/mutil/poly/root/sign_changes.hpp +include/eli/mutil/poly/root/sturm_count.hpp +include/eli/mutil/quad.hpp +include/eli/mutil/quad/simpson.hpp +include/eli/mutil/quad/trapezoid.hpp +include/eli/util.hpp +include/eli/util/floating_point.hpp +include/eli/util/tolerance.hpp +include/eli/util/traits.hpp |