[95739] trunk/dports/editors/hexfiend/Portfile

cal at macports.org cal at macports.org
Fri Jul 20 11:53:28 PDT 2012


Revision: 95739
          https://trac.macports.org/changeset/95739
Author:   cal at macports.org
Date:     2012-07-20 11:53:27 -0700 (Fri, 20 Jul 2012)
Log Message:
-----------
HexFiend: Fix build on 32 bit systems, closes #35244

Modified Paths:
--------------
    trunk/dports/editors/hexfiend/Portfile

Modified: trunk/dports/editors/hexfiend/Portfile
===================================================================
--- trunk/dports/editors/hexfiend/Portfile	2012-07-20 17:43:21 UTC (rev 95738)
+++ trunk/dports/editors/hexfiend/Portfile	2012-07-20 18:53:27 UTC (rev 95739)
@@ -38,6 +38,17 @@
                 framework-sources-HFByteArrayEditScript.m.patch
 }
 
+post-patch {
+    # this is required for builds on 32 bit systems, because NSTag is a signed
+    # integer and these values (NSUTF16BigEndianStringEncoding and
+    # NSUTF16LittleEndianStringEncoding) both have the MSB set making them not
+    # representable in signed 32 bit integers.
+    # Applying these on 64 bit systems is safe, too, because the leading 4 bytes
+    # will be cut off by a cast.
+    reinplace "s/2415919360/-1879047936/g" ${worksrcpath}/English.lproj/MainMenu.xib
+    reinplace "s/2483028224/-1811939072/g" ${worksrcpath}/English.lproj/MainMenu.xib
+}
+
 xcode.target        HexFiend_2
 xcode.configuration Release
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120720/048f8af8/attachment.html>


More information about the macports-changes mailing list