[Midnightbsd-cvs] mports: mports/graphics: add ilm base

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Mar 2 17:35:36 EST 2009


Log Message:
-----------
add ilm base

Modified Files:
--------------
    mports/graphics:
        Makefile (r1.86 -> r1.87)

Added Files:
-----------
    mports/graphics/ilmbase:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/graphics/ilmbase/files:
        patch-IlmThread-IlmThreadPool.cpp (r1.1)
        patch-Imath-ImathFun.cpp (r1.1)
        patch-ImathTest-testBoxAlgo.cpp (r1.1)
        patch-ImathTest-testLineAlgo.cpp (r1.1)
        patch-ImathTest-testShear.cpp (r1.1)
        patch-Makefile (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/graphics/Makefile,v
retrieving revision 1.86
retrieving revision 1.87
diff -L graphics/Makefile -L graphics/Makefile -u -r1.86 -r1.87
--- graphics/Makefile
+++ graphics/Makefile
@@ -32,6 +32,7 @@
     SUBDIR += graphviz
     SUBDIR += gstreamer-plugins-jpeg
     SUBDIR += gstreamer-plugins-libpng
+    SUBDIR += ilmbase
     SUBDIR += imlib
     SUBDIR += imlib2
     SUBDIR += jasper
--- /dev/null
+++ graphics/ilmbase/pkg-descr
@@ -0,0 +1,13 @@
+ILM Base libraries have following four libraries.
+
+*Half is a class that encapsulates ILM's 16-bit floating-point format.
+
+*IlmThread is a thread abstraction library for use with OpenEXR
+ and other software packages.
+
+*Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions
+ and other useful 2D and 3D math functions.
+
+*Iex is an exception-handling library.
+
+WWW:	http://www.openexr.com/
--- /dev/null
+++ graphics/ilmbase/pkg-plist
@@ -0,0 +1,61 @@
+lib/libHalf.a
+lib/libHalf.la
+lib/libHalf.so
+lib/libHalf.so.6
+lib/libIex.a
+lib/libIex.la
+lib/libIex.so
+lib/libIex.so.6
+lib/libIlmThread.a
+lib/libIlmThread.la
+lib/libIlmThread.so
+lib/libIlmThread.so.6
+lib/libImath.a
+lib/libImath.la
+lib/libImath.so
+lib/libImath.so.6
+libdata/pkgconfig/IlmBase.pc
+include/OpenEXR/Iex.h
+include/OpenEXR/IexBaseExc.h
+include/OpenEXR/IexErrnoExc.h
+include/OpenEXR/IexMacros.h
+include/OpenEXR/IexMathExc.h
+include/OpenEXR/IexThrowErrnoExc.h
+include/OpenEXR/IlmBaseConfig.h
+include/OpenEXR/IlmThread.h
+include/OpenEXR/IlmThreadMutex.h
+include/OpenEXR/IlmThreadPool.h
+include/OpenEXR/IlmThreadSemaphore.h
+include/OpenEXR/ImathBox.h
+include/OpenEXR/ImathBoxAlgo.h
+include/OpenEXR/ImathColor.h
+include/OpenEXR/ImathColorAlgo.h
+include/OpenEXR/ImathEuler.h
+include/OpenEXR/ImathExc.h
+include/OpenEXR/ImathFrame.h
+include/OpenEXR/ImathFrustum.h
+include/OpenEXR/ImathFun.h
+include/OpenEXR/ImathGL.h
+include/OpenEXR/ImathGLU.h
+include/OpenEXR/ImathHalfLimits.h
+include/OpenEXR/ImathInt64.h
+include/OpenEXR/ImathInterval.h
+include/OpenEXR/ImathLimits.h
+include/OpenEXR/ImathLine.h
+include/OpenEXR/ImathLineAlgo.h
+include/OpenEXR/ImathMath.h
+include/OpenEXR/ImathMatrix.h
+include/OpenEXR/ImathMatrixAlgo.h
+include/OpenEXR/ImathPlane.h
+include/OpenEXR/ImathPlatform.h
+include/OpenEXR/ImathQuat.h
+include/OpenEXR/ImathRandom.h
+include/OpenEXR/ImathRoots.h
+include/OpenEXR/ImathShear.h
+include/OpenEXR/ImathSphere.h
+include/OpenEXR/ImathVec.h
+include/OpenEXR/ImathVecAlgo.h
+include/OpenEXR/half.h
+include/OpenEXR/halfFunction.h
+include/OpenEXR/halfLimits.h
+ at dirrm include/OpenEXR
--- /dev/null
+++ graphics/ilmbase/Makefile
@@ -0,0 +1,34 @@
+# $MidnightBSD: mports/graphics/ilmbase/Makefile,v 1.1 2009/03/02 22:35:33 laffer1 Exp $
+
+PORTNAME=	ilmbase
+PORTVERSION=	1.0.1
+CATEGORIES=	graphics devel
+MASTER_SITES=	${MASTER_SITE_SAVANNAH}
+MASTER_SITE_SUBDIR=	openexr
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	ILM Base libraries a.k.a. Half, IlmThread, Imath and Iex
+LICENSE=	bsd3
+
+CONFLICTS=	OpenEXR-1.[0-4].*
+
+OPTIONS=	THREAD	"Enable multithreaded file I/O support"	on
+
+USE_GNOME=	pkgconfig
+USE_LDCONFIG=	yes
+GNU_CONFIGURE=	yes
+USE_AUTOTOOLS=	libtool:15
+
+regression test check:	build
+	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_THREAD)
+CONFIGURE_ENV+=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+		PTHREAD_LIBS="${PTHREAD_LIBS}"
+.else
+CONFIGURE_ARGS+=--disable-threading
+.endif
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ graphics/ilmbase/distinfo
@@ -0,0 +1,3 @@
+MD5 (ilmbase-1.0.1.tar.gz) = f76f094e69a6079b0beb93d97e2a217e
+SHA256 (ilmbase-1.0.1.tar.gz) = 4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
+SIZE (ilmbase-1.0.1.tar.gz) = 463275
--- /dev/null
+++ graphics/ilmbase/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2007-08-04 02:28:25.000000000 +0900
++++ Makefile.in	2007-10-07 03:17:50.000000000 +0900
+@@ -205,7 +205,7 @@
+         README README.CVS README.OSX README.win32 bootstrap \
+ 	config.windows/IlmBaseConfig.h
+ 
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(prefix)/libdata/pkgconfig
+ pkgconfig_DATA = IlmBase.pc
+ all: all-recursive
+ 
--- /dev/null
+++ graphics/ilmbase/files/patch-ImathTest-testBoxAlgo.cpp
@@ -0,0 +1,11 @@
+--- ImathTest/testBoxAlgo.cpp.orig	2007-07-13 13:48:45.000000000 +0900
++++ ImathTest/testBoxAlgo.cpp	2007-10-07 23:26:22.000000000 +0900
+@@ -336,7 +336,7 @@
+ 	Box3f ()
+     };
+ 
+-    for (int i = 0; i < sizeof (boxes) / sizeof (boxes[0]); ++i)
++    for (unsigned int i = 0; i < sizeof (boxes) / sizeof (boxes[0]); ++i)
+ 	testRayBoxIntersection (boxes[i]);
+ }
+ 
--- /dev/null
+++ graphics/ilmbase/files/patch-Imath-ImathFun.cpp
@@ -0,0 +1,44 @@
+--- Imath/ImathFun.cpp.orig	2006-12-09 06:59:37.000000000 +0900
++++ Imath/ImathFun.cpp	2007-10-07 23:23:38.000000000 +0900
+@@ -33,6 +33,7 @@
+ ///////////////////////////////////////////////////////////////////////////
+ 
+ 
++#include <inttypes.h>
+ #include "ImathFun.h"
+ 
+ namespace Imath {
+@@ -41,14 +42,14 @@
+ float
+ succf (float f)
+ {
+-    union {float f; int i;} u;
++    union {float f; int32_t i;} u;
+     u.f = f;
+ 
+     if ((u.i & 0x7f800000) == 0x7f800000)
+     {
+         // Nan or infinity; don't change value.
+     }
+-    else if (u.i == 0x00000000 || u.i == 0x80000000)
++    else if (u.i == (int32_t)0x00000000 || u.i == (int32_t)0x80000000)
+     {
+         // Plus or minus zero.
+ 
+@@ -76,14 +77,14 @@
+ float
+ predf (float f)
+ {
+-    union {float f; int i;} u;
++    union {float f; int32_t i;} u;
+     u.f = f;
+ 
+     if ((u.i & 0x7f800000) == 0x7f800000)
+     {
+         // Nan or infinity; don't change value.
+     }
+-    else if (u.i == 0x00000000 || u.i == 0x80000000)
++    else if (u.i == (int32_t)0x00000000 || u.i == (int32_t)0x80000000)
+     {
+         // Plus or minus zero.
+ 
--- /dev/null
+++ graphics/ilmbase/files/patch-IlmThread-IlmThreadPool.cpp
@@ -0,0 +1,43 @@
+--- IlmThread/IlmThreadPool.cpp.orig	2006-12-09 06:59:36.000000000 +0900
++++ IlmThread/IlmThreadPool.cpp	2007-10-07 23:29:07.000000000 +0900
+@@ -247,7 +247,7 @@
+     // an error like: "pure virtual method called"
+     //
+ 
+-    for (int i = 0; i < numThreads; i++)
++    for (unsigned int i = 0; i < numThreads; i++)
+     {
+ 	taskSemaphore.post();
+ 	threadSemaphore.wait();
+@@ -364,19 +364,19 @@
+ 
+     Lock lock (_data->threadMutex);
+ 
+-    if (count > _data->numThreads)
++    if ((unsigned int)count > _data->numThreads)
+     {
+ 	//
+         // Add more threads
+ 	//
+ 
+-        while (_data->numThreads < count)
++        while (_data->numThreads < (unsigned int)count)
+         {
+             _data->threads.push_back (new WorkerThread (_data));
+             _data->numThreads++;
+         }
+     }
+-    else if (count < _data->numThreads)
++    else if ((unsigned int)count < _data->numThreads)
+     {
+ 	//
+ 	// Wait until all existing threads are finished processing,
+@@ -389,7 +389,7 @@
+         // Add in new threads
+ 	//
+ 
+-        while (_data->numThreads < count)
++        while (_data->numThreads < (unsigned int)count)
+         {
+             _data->threads.push_back (new WorkerThread (_data));
+             _data->numThreads++;
--- /dev/null
+++ graphics/ilmbase/files/patch-ImathTest-testShear.cpp
@@ -0,0 +1,10 @@
+--- ImathTest/testShear.cpp.orig	2006-12-09 06:59:38.000000000 +0900
++++ ImathTest/testShear.cpp	2007-10-07 23:24:27.000000000 +0900
+@@ -54,7 +54,6 @@
+ 
+     const float         epsilon = Imath::limits< float >::epsilon();
+ 
+-    float    	        array[6] = { 1.0F, 2.0F, 3.0F, 4.0F, 5.0F, 6.0F };
+     Imath::Shear6f    	testConstructor1;
+     Imath::Shear6f    	testConstructor2( testConstructor1 );
+ 
--- /dev/null
+++ graphics/ilmbase/files/patch-ImathTest-testLineAlgo.cpp
@@ -0,0 +1,10 @@
+--- ImathTest/testLineAlgo.cpp.orig	2006-12-09 06:59:38.000000000 +0900
++++ ImathTest/testLineAlgo.cpp	2007-10-07 23:24:58.000000000 +0900
+@@ -399,7 +399,6 @@
+ 	    V3f p1 = v0 * b.x + v1 * b.y + v2 * b.z;
+ 
+ 	    V3f p0;
+-	    int j = 0;
+ 
+ 	    do
+ 	    {


More information about the Midnightbsd-cvs mailing list