[csw-devel] SF.net SVN: gar:[3270] csw/mgar/pkg

hson at users.sourceforge.net hson at users.sourceforge.net
Thu Feb 19 05:45:41 CET 2009


Revision: 3270
          http://gar.svn.sourceforge.net/gar/?rev=3270&view=rev
Author:   hson
Date:     2009-02-19 04:45:41 +0000 (Thu, 19 Feb 2009)

Log Message:
-----------
ilmbase: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/ilmbase/
    csw/mgar/pkg/ilmbase/branches/
    csw/mgar/pkg/ilmbase/tags/
    csw/mgar/pkg/ilmbase/trunk/
    csw/mgar/pkg/ilmbase/trunk/Makefile
    csw/mgar/pkg/ilmbase/trunk/checksums
    csw/mgar/pkg/ilmbase/trunk/files/
    csw/mgar/pkg/ilmbase/trunk/files/CSWilmbase.gspec
    csw/mgar/pkg/ilmbase/trunk/files/ImathMath.patch


Property changes on: csw/mgar/pkg/ilmbase/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/ilmbase/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ilmbase/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/ilmbase/trunk/Makefile	2009-02-19 04:45:41 UTC (rev 3270)
@@ -0,0 +1,30 @@
+GARNAME = ilmbase
+GARVERSION = 1.0.1
+CATEGORIES = lib
+
+DESCRIPTION = Brief description
+define BLURB
+  Long description
+endef
+
+MASTER_SITES = http://download.savannah.nongnu.org/releases/openexr/ 
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += $(call admfiles,CSWilmbase,)
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
+
+# If the url used to check for software update is different of MASTER_SITES, then 
+# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
+# UPSTREAM_MASTER_SITES = 
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+PATCHFILES = ImathMath.patch
+
+LDFLAGS += -lCstd -lCrun -lc -lm
+export LDFLAGS
+
+TEST_TARGET = check
+
+include gar/category.mk

Added: csw/mgar/pkg/ilmbase/trunk/checksums
===================================================================
--- csw/mgar/pkg/ilmbase/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/ilmbase/trunk/checksums	2009-02-19 04:45:41 UTC (rev 3270)
@@ -0,0 +1,3 @@
+f76f094e69a6079b0beb93d97e2a217e  download/ilmbase-1.0.1.tar.gz
+4197e0e6fbbb788bce0276dd0fd3a565  download/CSWilmbase.gspec
+5147c10f8ee7064ed15cb93bd3b63f3f  download/ImathMath.patch

Added: csw/mgar/pkg/ilmbase/trunk/files/CSWilmbase.gspec
===================================================================
--- csw/mgar/pkg/ilmbase/trunk/files/CSWilmbase.gspec	                        (rev 0)
+++ csw/mgar/pkg/ilmbase/trunk/files/CSWilmbase.gspec	2009-02-19 04:45:41 UTC (rev 3270)
@@ -0,0 +1,4 @@
+%var            bitname ilmbase
+%var            pkgname CSWilmbase
+%include        url file://%{PKGLIB}/csw_dyndepend.gspec
+%copyright      url file://%{WORKSRC}/LICENSE

Added: csw/mgar/pkg/ilmbase/trunk/files/ImathMath.patch
===================================================================
--- csw/mgar/pkg/ilmbase/trunk/files/ImathMath.patch	                        (rev 0)
+++ csw/mgar/pkg/ilmbase/trunk/files/ImathMath.patch	2009-02-19 04:45:41 UTC (rev 3270)
@@ -0,0 +1,70 @@
+--- ilmbase-1.0.1.orig/Imath/ImathMath.h	2006-12-08 22:59:37.000000000 +0100
++++ ilmbase-1.0.1/Imath/ImathMath.h	2009-02-17 07:35:07.878884110 +0100
+@@ -103,6 +103,9 @@
+    static T	exp   (T x)		{return ::exp (double(x));}
+    static T	log   (T x)		{return ::log (double(x));}
+    static T	log10 (T x)		{return ::log10 (double(x));}
++#if defined(__SunOS_5_8) || defined(__SunOS_5_9) // have floating point funcs !!
++//   static T	modf  (T x, T *y)	{return ::modf (double(x), double(y));}
++#else
+    static T	modf  (T x, T *iptr)
+    {
+         double ival;
+@@ -110,16 +113,49 @@
+ 	*iptr = ival;
+ 	return rval;
+    }
++#endif
+    static T	pow   (T x, T y)	{return ::pow (double(x), double(y));}
+    static T	sqrt  (T x)		{return ::sqrt (double(x));}
+    static T	ceil  (T x)		{return ::ceil (double(x));}
+    static T	fabs  (T x)		{return ::fabs (double(x));}
+    static T	floor (T x)		{return ::floor (double(x));}
++#if defined(__SunOS_5_8) || defined(__SunOS_5_9) // have floating point funcs !!
++//   static T	fmod  (T x, T y)	{return ::fmod (double(x), double(y));}
++#else
+    static T	fmod  (T x, T y)	{return ::fmod (double(x), double(y));}
++#endif
+    static T	hypot (T x, T y)	{return ::hypot (double(x), double(y));}
+ };
+ 
+ 
++// Sun, Apple, and Microsoft don't have floating point funcs
++#if defined ( __SunOS_5_8 ) || defined ( __SunOS_5_9 )
++template <>
++struct Math<float>
++{
++   static float	acos  (float x)			{return ::acos (x);}	
++   static float	asin  (float x)			{return ::asin (x);}
++   static float	atan  (float x)			{return ::atan (x);}
++   static float	atan2 (float x, float y)	{return ::atan2 (x, y);}
++   static float	cos   (float x)			{return ::cos (x);}
++   static float	sin   (float x)			{return ::sin (x);}
++   static float	tan   (float x)			{return ::tan (x);}
++   static float	cosh  (float x)			{return ::cosh (x);}
++   static float	sinh  (float x)			{return ::sinh (x);}
++   static float	tanh  (float x)			{return ::tanh (x);}
++   static float	exp   (float x)			{return ::exp (x);}
++   static float	log   (float x)			{return ::log (x);}
++   static float	log10 (float x)			{return ::log10 (x);}
++   static float	modf  (float x, float *y)	{return ::modf (x, y);}
++   static float	pow   (float x, float y)	{return ::pow (x, y);}
++   static float	sqrt  (float x)			{return ::sqrt (x);}
++   static float	ceil  (float x)			{return ::ceil (x);}
++   static float	fabs  (float x)			{return ::fabs (x);}
++   static float	floor (float x)			{return ::floor (x);}
++   static float	fmod  (float x, float y)	{return ::fmod (x, y);}
++   static float	hypot (float x, float y)	{return ::hypot (x, y);}
++};
++#else
+ template <>
+ struct Math<float>
+ {
+@@ -150,6 +186,7 @@
+ #endif
+ };
+ 
++#endif
+ 
+ //--------------------------------------------------------------------------
+ // Don Hatch's version of sin(x)/x, which is accurate for very small x.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list