[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29894] trunk/lib/darwin-9.x.universal: OSX 10.5 libs : add lcms lib (version 1.19)

Damien Plisson damien.plisson at yahoo.fr
Sat Jul 3 11:06:10 CEST 2010


Revision: 29894
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29894
Author:   damien78
Date:     2010-07-03 11:06:09 +0200 (Sat, 03 Jul 2010)

Log Message:
-----------
OSX 10.5 libs : add lcms lib (version 1.19)

Modified Paths:
--------------
    trunk/lib/darwin-9.x.universal/README

Added Paths:
-----------
    trunk/lib/darwin-9.x.universal/lcms/
    trunk/lib/darwin-9.x.universal/lcms/include/
    trunk/lib/darwin-9.x.universal/lcms/include/icc34.h
    trunk/lib/darwin-9.x.universal/lcms/include/lcms.h
    trunk/lib/darwin-9.x.universal/lcms/lib/
    trunk/lib/darwin-9.x.universal/lcms/lib/liblcms.a

Modified: trunk/lib/darwin-9.x.universal/README
===================================================================
--- trunk/lib/darwin-9.x.universal/README	2010-07-03 07:07:54 UTC (rev 29893)
+++ trunk/lib/darwin-9.x.universal/README	2010-07-03 09:06:09 UTC (rev 29894)
@@ -14,6 +14,7 @@
 tiff (version 3.9.2)
 
 ppc64 missing:
+lcms (version 1.19)
 openexr (version 1.4.0a)
 samplerate (version 0.1.7)
 fftw3 (version 3.2.2)
@@ -28,8 +29,16 @@
 x264 (version 20090331)
 opencollada (svn rev 721)
 
+
 The following configuration parameters were used to build the libs:
 
+lcms:
+./configure --disable-shared --build=x86_64-apple-darwin9.8.0 CC="gcc-4.2" CXX="g++-4.2" CFLAGS="-arch x86_64 -march=core2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CXXFLAGS="-arch x86_64 -march=core2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CPPFLAGS="-I/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/include -I/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/tiff/include" LDFLAGS="-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -L/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/lib -L/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/tiff/lib"
+
+./configure --disable-shared --build=i386-apple-darwin9.8.0 CC="gcc-4.2" CXX="g++-4.2" CFLAGS="-arch i386 -mfpmath=sse -march=prescott -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CXXFLAGS="-arch i386 -mfpmath=sse -march=prescott -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CPPFLAGS="-I/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/include -I/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/tiff/include" LDFLAGS="-arch i386 -mfpmath=sse -march=prescott  -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -L/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/lib -L/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/tiff/lib"
+
+./configure --disable-shared --build=powerpc-apple-darwin9.8.0 CC="gcc-4.2" CXX="g++-4.2" CFLAGS="-arch ppc -mcpu=powerpc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CXXFLAGS="-arch ppc -mcpu=powerpc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CPPFLAGS="-I/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/include -I/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/tiff/include" LDFLAGS="-arch ppc -mcpu=powerpc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -L/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/lib -L/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/tiff/lib"
+
 Tiff:
 ./configure --disable-shared --with-jpeg-include-dir=/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/include --with-jpeg-lib-dir=/Users/damien/Documents/Dev/blender2.5/svnroot/lib/darwin-9.x.universal/jpeg/lib --with-apple-opengl-framework --build=x86_64-apple-darwin9.8.0 CC="gcc-4.2" CXX="g++-4.2" CFLAGS="-arch x86_64 -march=core2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CXXFLAGS="-arch x86_64 -march=core2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5"
 

Added: trunk/lib/darwin-9.x.universal/lcms/include/icc34.h
===================================================================
--- trunk/lib/darwin-9.x.universal/lcms/include/icc34.h	                        (rev 0)
+++ trunk/lib/darwin-9.x.universal/lcms/include/icc34.h	2010-07-03 09:06:09 UTC (rev 29894)
@@ -0,0 +1,1029 @@
+/* Header file guard bands */
+#ifndef ICC_H
+#define ICC_H
+
+/***************************************************************** 
+ Copyright (c) 1994-1996 SunSoft, Inc.
+
+                    Rights Reserved
+
+Permission is hereby granted, free of charge, to any person 
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without restrict- 
+ion, including without limitation the rights to use, copy, modify, 
+merge, publish distribute, sublicense, and/or sell copies of the 
+Software, and to permit persons to whom the Software is furnished 
+to do so, subject to the following conditions: 
+ 
+The above copyright notice and this permission notice shall be 
+included in all copies or substantial portions of the Software. 
+ 
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-
+INFRINGEMENT.  IN NO EVENT SHALL SUNSOFT, INC. OR ITS PARENT 
+COMPANY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 
+OTHER DEALINGS IN THE SOFTWARE. 
+ 
+Except as contained in this notice, the name of SunSoft, Inc. 
+shall not be used in advertising or otherwise to promote the 
+sale, use or other dealings in this Software without written 
+authorization from SunSoft Inc. 
+******************************************************************/
+
+/*
+ * This version of the header file corresponds to the profile
+ * specification version 3.4.
+ *
+ * All header file entries are pre-fixed with "ic" to help 
+ * avoid name space collisions. Signatures are pre-fixed with
+ * icSig.
+ *
+ * The structures defined in this header file were created to
+ * represent a description of an ICC profile on disk. Rather
+ * than use pointers a technique is used where a single byte array 
+ * was placed at the end of each structure. This allows us in "C"
+ * to extend the structure by allocating more data than is needed
+ * to account for variable length structures.
+ *
+ * This also ensures that data following is allocated
+ * contiguously and makes it easier to write and read data from
+ * the file. 
+ *
+ * For example to allocate space for a 256 count length UCR
+ * and BG array, and fill the allocated data.  Note strlen + 1
+ * to remember NULL terminator.
+ *
+        icUcrBgCurve    *ucrCurve, *bgCurve;
+        int             ucr_nbytes, bg_nbytes, string_bytes;
+        icUcrBg         *ucrBgWrite;
+        char            ucr_string[100], *ucr_char;
+
+        strcpy(ucr_string, "Example ucrBG curves");
+        ucr_nbytes = sizeof(icUInt32Number) + 
+                 (UCR_CURVE_SIZE * sizeof(icUInt16Number));
+        bg_nbytes = sizeof(icUInt32Number) + 
+                 (BG_CURVE_SIZE * sizeof(icUInt16Number));
+        string_bytes = strlen(ucr_string) + 1;
+
+        ucrBgWrite = (icUcrBg *)malloc(
+                                (ucr_nbytes + bg_nbytes + string_bytes));
+ 
+        ucrCurve = (icUcrBgCurve *)ucrBgWrite->data;
+        ucrCurve->count = UCR_CURVE_SIZE;
+        for (i=0; i<ucrCurve->count; i++)
+                ucrCurve->curve[i] = (icUInt16Number)i;
+ 
+        bgCurve = (icUcrBgCurve *)((char *)ucrCurve + ucr_nbytes);
+        bgCurve->count = BG_CURVE_SIZE;
+        for (i=0; i<bgCurve->count; i++)
+                bgCurve->curve[i] = 255 - (icUInt16Number)i;
+
+        ucr_char = (char *)((char *)bgCurve + bg_nbytes);
+        memcpy(ucr_char, ucr_string, string_bytes);
+ *
+ */
+
+/*
+ * Many of the structures contain variable length arrays. This
+ * is represented by the use of the convention.
+ *
+ *      type    data[icAny];
+ */
+
+/*------------------------------------------------------------------------*/
+/*
+ * Defines used in the specification
+ */
+#define icMagicNumber                   0x61637370L     /* 'acsp' */
+#define icVersionNumber                 0x02100000L     /* 2.1.0, BCD */
+
+/* Screening Encodings */
+#define icPrtrDefaultScreensFalse       0x00000000L     /* Bit pos 0 */
+#define icPrtrDefaultScreensTrue        0x00000001L     /* Bit pos 0 */
+#define icLinesPerInch                  0x00000002L     /* Bit pos 1 */
+#define icLinesPerCm                    0x00000000L     /* Bit pos 1 */
+
+/* 
+ * Device attributes, currently defined values correspond
+ * to the low 4 bytes of the 8 byte attribute quantity, see
+ * the header for their location.
+ */
+#define icReflective                    0x00000000L     /* Bit pos 0 */
+#define icTransparency                  0x00000001L     /* Bit pos 0 */
+#define icGlossy                        0x00000000L     /* Bit pos 1 */
+#define icMatte                         0x00000002L     /* Bit pos 1 */
+
+/*
+ * Profile header flags, the low 16 bits are reserved for consortium
+ * use.
+ */
+#define icEmbeddedProfileFalse          0x00000000L     /* Bit pos 0 */
+#define icEmbeddedProfileTrue           0x00000001L     /* Bit pos 0 */
+#define icUseAnywhere                   0x00000000L     /* Bit pos 1 */
+#define icUseWithEmbeddedDataOnly       0x00000002L     /* Bit pos 1 */
+
+/* Ascii or Binary data */
+#define icAsciiData                     0x00000000L 
+#define icBinaryData                    0x00000001L
+
+/* 
+ * Define used to indicate that this is a variable length array
+ */
+#define icAny                           1
+
+
+/*------------------------------------------------------------------------*/
+/*
+ * Use this area to translate platform definitions of long
+ * etc into icXXX form. The rest of the header uses the icXXX
+ * typedefs. Signatures are 4 byte quantities.
+ *
+ */
+
+
+#ifdef PACKAGE_NAME
+/*
+  June 9, 2003, Adapted for use with configure by Bob Friesenhahn
+  Added the stupid check for autoconf by Marti Maria. 
+  PACKAGE_NAME is defined if autoconf is being used 
+*/
+
+typedef @UINT8_T@	icUInt8Number;
+typedef @UINT16_T@	icUInt16Number;
+typedef @UINT32_T@	icUInt32Number;
+typedef @UINT32_T@	icUInt64Number[2];
+
+typedef @INT8_T@	icInt8Number;
+typedef @INT16_T@	icInt16Number;
+typedef @INT32_T@	icInt32Number;
+typedef @INT32_T@	icInt64Number[2];
+
+#else
+
+/* 
+ *Apr-17-2002: Modified by Marti Maria in order to provide wider portability.
+ */
+
+#if defined (__digital__) && defined (__unix__)
+
+/* Tru64 */
+
+#include <inttypes.h>
+
+typedef uint8_t   icUInt8Number;
+typedef uint16_t  icUInt16Number;
+typedef uint32_t  icUInt32Number;
+typedef uint32_t  icUInt64Number[2];
+

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list