Skip to content
Permalink
Browse files

physfs: Fix build with OS X 10.7's old clang

  • Loading branch information
ryandesign committed Mar 24, 2018
1 parent c90ad42 commit 80bef54d9bbc16a23f178f3977f271ba6020a34c
Showing with 15 additions and 0 deletions.
  1. +2 −0 devel/physfs/Portfile
  2. +13 −0 devel/physfs/files/objectAtIndex.patch
@@ -27,6 +27,8 @@ checksums rmd160 3d5e1f224b510444fe88247db10976e45d5302e8 \

depends_lib-append port:zlib port:readline port:ncurses

patchfiles objectAtIndex.patch

livecheck.type regex
livecheck.url [lindex ${master_sites} 0]LATEST_VERSION.html
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
@@ -0,0 +1,13 @@
Fix build on OS X 10.7
http://icculus.org/pipermail/physfs/2018-March/001255.html
--- src/physfs_platform_apple.m.old 2018-03-20 11:30:49.000000000 -0600
+++ src/physfs_platform_apple.m 2018-03-20 11:31:12.000000000 -0600
@@ -50,7 +50,7 @@
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE);
BAIL_IF(!paths, PHYSFS_ERR_OS_ERROR, NULL);
- NSString *path = (NSString *) paths[0];
+ NSString *path = (NSString *) [paths objectAtIndex:0];
BAIL_IF(!path, PHYSFS_ERR_OS_ERROR, NULL);
size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
const size_t applen = strlen(app);

0 comments on commit 80bef54

Please sign in to comment.
You can’t perform that action at this time.