[113008] trunk/dports/graphics/makeicns
mk at macports.org
mk at macports.org
Wed Nov 6 14:07:17 PST 2013
Revision: 113008
https://trac.macports.org/changeset/113008
Author: mk at macports.org
Date: 2013-11-06 14:07:17 -0800 (Wed, 06 Nov 2013)
Log Message:
-----------
makeicns: apply patch for Mavericks (see issue #40869)
Modified Paths:
--------------
trunk/dports/graphics/makeicns/Portfile
Added Paths:
-----------
trunk/dports/graphics/makeicns/files/
trunk/dports/graphics/makeicns/files/patch-IconFamily.m.diff
Modified: trunk/dports/graphics/makeicns/Portfile
===================================================================
--- trunk/dports/graphics/makeicns/Portfile 2013-11-06 21:52:38 UTC (rev 113007)
+++ trunk/dports/graphics/makeicns/Portfile 2013-11-06 22:07:17 UTC (rev 113008)
@@ -5,6 +5,7 @@
name makeicns
version 1.4.10a
+revision 1
categories graphics
maintainers mk pixilla
platforms darwin
@@ -29,6 +30,10 @@
variant universal {
}
+platform darwin 13 {
+ patchfiles patch-IconFamily.m.diff
+}
+
build.env-append CC=${configure.cc} \
CXX=${configure.cxx} \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
Added: trunk/dports/graphics/makeicns/files/patch-IconFamily.m.diff
===================================================================
--- trunk/dports/graphics/makeicns/files/patch-IconFamily.m.diff (rev 0)
+++ trunk/dports/graphics/makeicns/files/patch-IconFamily.m.diff 2013-11-06 22:07:17 UTC (rev 113008)
@@ -0,0 +1,57 @@
+--- makeicns/IconFamily.m 2012-01-19 22:16:19.000000000 +0100
++++ IconFamily.m 2013-10-29 15:51:30.000000000 +0100
+@@ -85,7 +85,9 @@
+
+ + (Handle) get32BitDataFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requiredPixelSize:(int)requiredPixelSize;
+
++#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
+ + (Handle) get8BitDataFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requiredPixelSize:(int)requiredPixelSize;
++#endif
+
+ + (Handle) get8BitMaskFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requiredPixelSize:(int)requiredPixelSize;
+
+@@ -675,10 +677,12 @@
+ hRawData = [IconFamily get1BitMaskFromBitmapImageRep:bitmapImageRep requiredPixelSize:32];
+ break;
+
++#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
+ // 'icl8' 32x32 8-bit indexed image data
+ case kLarge8BitData:
+ hRawData = [IconFamily get8BitDataFromBitmapImageRep:bitmapImageRep requiredPixelSize:32];
+ break;
++#endif
+
+ // 'is32' 16x16 32-bit RGB image
+ case kSmall32BitData:
+@@ -695,10 +699,12 @@
+ hRawData = [IconFamily get1BitMaskFromBitmapImageRep:bitmapImageRep requiredPixelSize:16];
+ break;
+
++#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
+ // 'ics8' 16x16 8-bit indexed image data
+ case kSmall8BitData:
+ hRawData = [IconFamily get8BitDataFromBitmapImageRep:bitmapImageRep requiredPixelSize:16];
+ break;
++#endif
+
+ default:
+ return NO;
+@@ -1323,6 +1329,10 @@
+ return hRawData;
+ }
+
++#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
++// This method is based on CGPaletteCreateDefaultColorPalette which is no longer
++// supported on 10.9, and provided a data structure to access old MacOS's 8 bits
++// palette.
+ + (Handle) get8BitDataFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requiredPixelSize:(int)requiredPixelSize
+ {
+ Handle hRawData;
+@@ -1411,6 +1421,7 @@
+
+ return hRawData;
+ }
++#endif
+
+ + (Handle) get8BitMaskFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requiredPixelSize:(int)requiredPixelSize
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131106/a53d37c0/attachment.html>
More information about the macports-changes
mailing list