Subject: | Problems on mac os x 10.9 with libpng1.5(.14) |
I had issues getting Image::Scale to work. The first one is probably mostly cosmetic, it just emits some warnings about non-existing paths.
The second (libpng 1.5) results in compilation failures. png_memcpy no longer exists in libpng 1.5. I couldn't find out if there was another proper replacement, but changing to just memcpy made it compile and the tests pass at least :P
Subject: | patch01-osx9-libpng15.patch |
diff --git a/hints/darwin.pl b/hints/darwin.pl
index ff9eabd..44cf8eb 100644
--- a/hints/darwin.pl
+++ b/hints/darwin.pl
@@ -17,8 +17,12 @@ if ( $Config{myarchname} =~ /i386/ ) {
# Read OS version
my $sys = `/usr/sbin/system_profiler SPSoftwareDataType`;
- my ($osx_ver) = $sys =~ /Mac OS X.*(10\.[^ ]+)/;
- if ( $osx_ver gt '10.5' ) {
+ my ($osx_ver) = $sys =~ /(?:Mac |)OS X.*(10\.[^ ]+)/;
+ warn $osx_ver;
+ if ( $osx_ver ge '10.9' ) {
+
+ }
+ elsif ( $osx_ver gt '10.5' ) {
# Running 10.6+, build as 10.5+
$arch .= "-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5";
}
diff --git a/src/png.c b/src/png.c
index bb4574c..293661e 100644
--- a/src/png.c
+++ b/src/png.c
@@ -40,7 +40,7 @@ image_png_read_buf(png_structp png_ptr, png_bytep data, png_size_t len)
}
}
- png_memcpy(data, buffer_ptr(im->buf), len);
+ memcpy(data, buffer_ptr(im->buf), len);
buffer_consume(im->buf, len);
goto ok;