Revision
89657
Author
cal@macports.org
Date
2012-02-05 15:08:28 -0800 (Sun, 05 Feb 2012)

Log Message

Hexfiend: patch to fix build on Snow Leopard (in specific, the buildbot)

Modified Paths

Added Paths

Diff

Modified: trunk/dports/editors/hexfiend/Portfile (89656 => 89657)


--- trunk/dports/editors/hexfiend/Portfile	2012-02-05 23:04:25 UTC (rev 89656)
+++ trunk/dports/editors/hexfiend/Portfile	2012-02-05 23:08:28 UTC (rev 89657)
@@ -9,7 +9,7 @@
 checksums       rmd160  abc7abbef3f2f4005537a13dbfcf723ee6b33c84 \
                 sha256  c98ac5a5b6cee58747980283dc8e94d91b466e1c797a4bb702e600944f308de3
 
-epoch       1
+epoch           1
 categories      editors aqua
 maintainers     dweber cal openmaintainer
 license         BSD
@@ -28,6 +28,13 @@
     * Data inspector. Interpret data as integer or floating point, signed or unsigned, big or little endian...\n\
     * Smooth scrolling. No separate pages - scroll like any text document.
 
+# required to build on < Lion
+patchfiles      framework-sources-HFByteArrayEditScript.m.patch
+platform darwin 11 {
+    patchfiles-delete \
+                framework-sources-HFByteArrayEditScript.m.patch
+}
+
 xcode.target        HexFiend_2
 xcode.configuration Release
 

Added: trunk/dports/editors/hexfiend/files/framework-sources-HFByteArrayEditScript.m.patch (0 => 89657)


--- trunk/dports/editors/hexfiend/files/framework-sources-HFByteArrayEditScript.m.patch	                        (rev 0)
+++ trunk/dports/editors/hexfiend/files/framework-sources-HFByteArrayEditScript.m.patch	2012-02-05 23:08:28 UTC (rev 89657)
@@ -0,0 +1,11 @@
+--- framework/sources/HFByteArrayEditScript.m.orig	2012-02-05 23:57:47.000000000 +0100
++++ framework/sources/HFByteArrayEditScript.m	2012-02-05 23:58:02.000000000 +0100
+@@ -19,7 +19,7 @@
+ #define MAX_RECURSION_DEPTH 64
+ 
+ #if NDEBUG
+-#define BYTEARRAY_RELEASE_INLINE __attribute__((always_inline)) static
++#define BYTEARRAY_RELEASE_INLINE inline static
+ #else
+ #define BYTEARRAY_RELEASE_INLINE __attribute__((noinline)) static
+ #endif