Skip to content

Commit

Permalink
math/Imath: new port (replaces graphics/ilmbase)
Browse files Browse the repository at this point in the history
Patch series to update OpenEXR and ports that depend on ilmbase/OpenEXR
coming up.
---------------

Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D
vectors and matrices and other simple but useful mathematical objects,
functions, and data types common in computer graphics applications, including
the "half" 16-bit floating-point type.

Imath also includes optional python bindings for all types and functions,
including optimized implementations of vector and matrix arrays.

Imath was originally developed at Industrial Light & Magic in the early 2000's
and was originally distributed as open source as a part of the OpenEXR project.

Imath continues to be maintained as a sub-project of OpenEXR, which is now a
project of the Academy Software Foundation. See the OpenEXR project's
GOVERNANCE.md for more information about how the project operates.

WWW: https://github.com/AcademySoftwareFoundation/Imath/
  • Loading branch information
mandree committed Apr 12, 2021
1 parent 0ee9911 commit 05044ea
Show file tree
Hide file tree
Showing 12 changed files with 164 additions and 170 deletions.
1 change: 1 addition & 0 deletions MOVED
Expand Up @@ -16277,3 +16277,4 @@ dns/dnsmasq-devel|dns/dnsmasq|2021-04-08|Has expired: use dns/dnsmasq instead, w
net/coturn|net/turnserver|2021-04-09|Remove duplicate port: coturn is another name for turnserver
databases/percona55-server||2021-04-11|EOL upstream
databases/percona55-client||2021-04-11|EOL upstream
graphics/ilmbase|math/Imath|2021-04-10|Ilmbase was split out into Imath and OpenEXR.
1 change: 0 additions & 1 deletion graphics/Makefile
Expand Up @@ -344,7 +344,6 @@
SUBDIR += iec16022
SUBDIR += iiview
SUBDIR += ikona
SUBDIR += ilmbase
SUBDIR += imageindex
SUBDIR += imageviewer
SUBDIR += imageworsener
Expand Down
53 changes: 0 additions & 53 deletions graphics/ilmbase/Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions graphics/ilmbase/distinfo

This file was deleted.

13 changes: 0 additions & 13 deletions graphics/ilmbase/files/patch-config_IlmBaseSetup.cmake

This file was deleted.

18 changes: 0 additions & 18 deletions graphics/ilmbase/pkg-descr

This file was deleted.

82 changes: 0 additions & 82 deletions graphics/ilmbase/pkg-plist

This file was deleted.

53 changes: 53 additions & 0 deletions math/Imath/Makefile
@@ -0,0 +1,53 @@
# Based on the graphics/ilmbase port that was done by: nork@FreeBSD.org

PORTNAME= Imath
PORTVERSION= 3.0.1
CATEGORIES= math devel graphics

MAINTAINER= mandree@FreeBSD.org
COMMENT= C++/Python lib of 2D/3D vector, matrix, math ops for computer graphics

LICENSE= BSD3CLAUSE

USES= cmake compiler:c++14-lang pkgconfig

USE_GITHUB= yes
GH_TUPLE= AcademySoftwareFoundation:Imath:v${PORTVERSION}
USE_LDCONFIG= yes

CMAKE_ARGS+= -DCMAKE_DEBUG_POSTFIX= \
-DCMAKE_INSTALL_PREFIX=${PREFIX}

PLIST_SUB= MAJORVER=${_MAJORVER} \
MINVER=${_MINVER} \
PLVER=${_PLVER} \
VER=${_VER}
PORTDOCS= README.md

OPTIONS_DEFINE= DOCS LARGE_STACK PYTHON
OPTIONS_SUB= yes

LARGE_STACK_DESC= Enable sys-dependent large stack optimizations
LARGE_STACK_CMAKE_BOOL= IMATH_ENABLE_LARGE_STACK

PYTHON_LIB_DEPENDS= ${PY_BOOST}
PYTHON_USES= python
PYTHON_CMAKE_BOOL= PYTHON

_MAJORVER= 3_0
_VER= 27
_MINVER= 0
_PLVER= 0

post-install:
.for l in libImath
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${_MAJORVER}.so
.endfor

@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

do-test:
cd ${BUILD_WRKSRC} && ctest

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions math/Imath/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1618044321
SHA256 (AcademySoftwareFoundation-Imath-3.0.1-v3.0.1_GH0.tar.gz) = 9cd984bb6b0a9572dd4a373b1fab60bc4c992a52ec5c68328fe0f48f194ba3c0
SIZE (AcademySoftwareFoundation-Imath-3.0.1-v3.0.1_GH0.tar.gz) = 527715
16 changes: 16 additions & 0 deletions math/Imath/pkg-descr
@@ -0,0 +1,16 @@
Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D
vectors and matrices and other simple but useful mathematical objects,
functions, and data types common in computer graphics applications, including
the "half" 16-bit floating-point type.

Imath also includes optional python bindings for all types and functions,
including optimized implementations of vector and matrix arrays.

Imath was originally developed at Industrial Light & Magic in the early 2000's
and was originally distributed as open source as a part of the OpenEXR project.

Imath continues to be maintained as a sub-project of OpenEXR, which is now a
project of the Academy Software Foundation. See the OpenEXR project's
GOVERNANCE.md for more information about how the project operates.

WWW: https://github.com/AcademySoftwareFoundation/Imath/
90 changes: 90 additions & 0 deletions math/Imath/pkg-plist
@@ -0,0 +1,90 @@
include/Imath/ImathBox.h
include/Imath/ImathBoxAlgo.h
include/Imath/ImathColor.h
include/Imath/ImathColorAlgo.h
include/Imath/ImathConfig.h
include/Imath/ImathEuler.h
include/Imath/ImathExport.h
include/Imath/ImathForward.h
include/Imath/ImathFrame.h
include/Imath/ImathFrustum.h
include/Imath/ImathFrustumTest.h
include/Imath/ImathFun.h
include/Imath/ImathGL.h
include/Imath/ImathGLU.h
include/Imath/ImathInt64.h
include/Imath/ImathInterval.h
include/Imath/ImathLine.h
include/Imath/ImathLineAlgo.h
include/Imath/ImathMath.h
include/Imath/ImathMatrix.h
include/Imath/ImathMatrixAlgo.h
include/Imath/ImathNamespace.h
include/Imath/ImathPlane.h
include/Imath/ImathPlatform.h
include/Imath/ImathQuat.h
include/Imath/ImathRandom.h
include/Imath/ImathRoots.h
include/Imath/ImathShear.h
include/Imath/ImathSphere.h
include/Imath/ImathTypeTraits.h
include/Imath/ImathVec.h
include/Imath/ImathVecAlgo.h
include/Imath/half.h
include/Imath/halfFunction.h
include/Imath/halfLimits.h
lib/cmake/Imath/ImathConfig.cmake
lib/cmake/Imath/ImathConfigVersion.cmake
lib/cmake/Imath/ImathTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/Imath/ImathTargets.cmake
lib/libImath-%%MAJORVER%%.so
lib/libImath-%%MAJORVER%%.so.27
lib/libImath-%%MAJORVER%%.so.27.0.0
lib/libImath.so
libdata/pkgconfig/Imath.pc
%%PYTHON%%include/Imath/PyImath.h
%%PYTHON%%include/Imath/PyImathAutovectorize.h
%%PYTHON%%include/Imath/PyImathBasicTypes.h
%%PYTHON%%include/Imath/PyImathBox.h
%%PYTHON%%include/Imath/PyImathBoxArrayImpl.h
%%PYTHON%%include/Imath/PyImathColor.h
%%PYTHON%%include/Imath/PyImathColor3ArrayImpl.h
%%PYTHON%%include/Imath/PyImathColor4Array2DImpl.h
%%PYTHON%%include/Imath/PyImathColor4ArrayImpl.h
%%PYTHON%%include/Imath/PyImathDecorators.h
%%PYTHON%%include/Imath/PyImathEuler.h
%%PYTHON%%include/Imath/PyImathExport.h
%%PYTHON%%include/Imath/PyImathFixedArray.h
%%PYTHON%%include/Imath/PyImathFixedArray2D.h
%%PYTHON%%include/Imath/PyImathFixedMatrix.h
%%PYTHON%%include/Imath/PyImathFixedVArray.h
%%PYTHON%%include/Imath/PyImathFrustum.h
%%PYTHON%%include/Imath/PyImathFun.h
%%PYTHON%%include/Imath/PyImathLine.h
%%PYTHON%%include/Imath/PyImathM44Array.h
%%PYTHON%%include/Imath/PyImathMathExc.h
%%PYTHON%%include/Imath/PyImathMatrix.h
%%PYTHON%%include/Imath/PyImathOperators.h
%%PYTHON%%include/Imath/PyImathPlane.h
%%PYTHON%%include/Imath/PyImathQuat.h
%%PYTHON%%include/Imath/PyImathRandom.h
%%PYTHON%%include/Imath/PyImathShear.h
%%PYTHON%%include/Imath/PyImathStringArray.h
%%PYTHON%%include/Imath/PyImathStringArrayRegister.h
%%PYTHON%%include/Imath/PyImathStringTable.h
%%PYTHON%%include/Imath/PyImathTask.h
%%PYTHON%%include/Imath/PyImathUtil.h
%%PYTHON%%include/Imath/PyImathVec.h
%%PYTHON%%include/Imath/PyImathVec2Impl.h
%%PYTHON%%include/Imath/PyImathVec3ArrayImpl.h
%%PYTHON%%include/Imath/PyImathVec3Impl.h
%%PYTHON%%include/Imath/PyImathVec4ArrayImpl.h
%%PYTHON%%include/Imath/PyImathVec4Impl.h
%%PYTHON%%include/Imath/PyImathVecOperators.h
%%PYTHON%%lib/cmake/Imath/ImathConfig-%%CMAKE_BUILD_TYPE%%.cmake
%%PYTHON%%lib/libPyImath_Python3_7-%%MAJORVER%%.so
%%PYTHON%%lib/libPyImath_Python3_7-%%MAJORVER%%.so.27
%%PYTHON%%lib/libPyImath_Python3_7-%%MAJORVER%%.so.27.0.0
%%PYTHON%%%%PYTHON_SITELIBDIR%%/imath.so
%%PYTHON%%%%PYTHON_SITELIBDIR%%/imathnumpy.so
%%PYTHON%%libdata/pkgconfig/PyImath.pc
1 change: 1 addition & 0 deletions math/Makefile
Expand Up @@ -2,6 +2,7 @@

SUBDIR += 4ti2
SUBDIR += GiNaC
SUBDIR += Imath
SUBDIR += PDL
SUBDIR += R
SUBDIR += R-cran-ADGofTest
Expand Down

0 comments on commit 05044ea

Please sign in to comment.