ports/graphics/lcms/files/patch-config
Martin Wilke 18fc3eccb1 - Update to 1.15
- Pass maintainership to submitter

Short changelog:
- Black preservation on CMYK-> CMYK transforms
- Ability to set adaptation state of observer on absolute colorimetric
  transforms.
- A rather advanced feature. Actually it only allows No adaptation (d=0) and
  observer fully adapted (d=1)
- lcms can now "fix" some broken 8-bit profiles that have gray axes misplaced.
- icctrans can now read CGATS/IT8 files.
- improved tifficc with tiff Lab8 support

PR:		ports/101603
Submitted by:	Stanislav Sedov <ssedov(at)mbsd.msk.ru>
Approved by:	krion (mentor)
2006-08-10 20:59:53 +00:00

26 lines
864 B
Text

--- include/lcms.h.orig Sat Nov 26 17:23:47 2005
+++ include/lcms.h Mon Aug 7 21:28:13 2006
@@ -47,7 +47,13 @@
// Uncomment this one if you are using big endian machines (only meaningful
// when NON_WINDOWS is used)
-// #define USE_BIG_ENDIAN 1
+
+#include <sys/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+# define USE_BIG_ENDIAN 1
+#elif BYTE_ORDER != LITTLE_ENDIAN
+# error "Unexpected BYTE_ORDER on this architecture"
+#endif
// Uncomment this one if your compiler/machine does support the
// "long long" type This will speedup fixed point math. (USE_C only)
@@ -134,7 +140,7 @@
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
# include <sys/types.h>
# define USE_INT64 1
-# define LCMSSLONGLONG int_64_t
+# define LCMSSLONGLONG int64_t
# define LCMSULONGLONG u_int64_t
#endif