summaryrefslogtreecommitdiff
path: root/package/p5-image-scale
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-07 06:24:31 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-07 06:24:31 +0200
commita5393320f05f681006915fcffe5631da874daee8 (patch)
tree0bc9563da6929ec872bad3263a23519426ec91d4 /package/p5-image-scale
parentc9712ddbbaf32cbf5bcdfd8154a733f2c2c84f6a (diff)
parentc59a468aae2eb6522e97d877992f3b059b4e6242 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/p5-image-scale')
-rw-r--r--package/p5-image-scale/Makefile5
-rw-r--r--package/p5-image-scale/patches/patch-src_png_c11
2 files changed, 15 insertions, 1 deletions
diff --git a/package/p5-image-scale/Makefile b/package/p5-image-scale/Makefile
index c21edb1a3..a894e0182 100644
--- a/package/p5-image-scale/Makefile
+++ b/package/p5-image-scale/Makefile
@@ -25,8 +25,11 @@ include $(ADK_TOPDIR)/mk/perl.mk
CONFIG_STYLE:= perl
XAKE_FLAGS+= $(PERL_ENV)
CONFIGURE_ARGS+= --with-jpeg-includes=${STAGING_TARGET_DIR}/usr/include \
+ --with-jpeg-libs=${STAGING_TARGET_DIR}/usr/lib \
--with-png-includes=${STAGING_TARGET_DIR}/usr/include \
- --with-gif-includes=${STAGING_TARGET_DIR}/usr/include
+ --with-png-libs=${STAGING_TARGET_DIR}/usr/lib \
+ --with-gif-includes=${STAGING_TARGET_DIR}/usr/include \
+ --with-gif-libs=${STAGING_TARGET_DIR}/usr/lib \
p5-image-scale-install:
$(INSTALL_DIR) $(IDIR_P5_IMAGE_SCALE)$(PERL_SITEDIR)
diff --git a/package/p5-image-scale/patches/patch-src_png_c b/package/p5-image-scale/patches/patch-src_png_c
new file mode 100644
index 000000000..a17a509c1
--- /dev/null
+++ b/package/p5-image-scale/patches/patch-src_png_c
@@ -0,0 +1,11 @@
+--- Image-Scale-0.08.orig/src/png.c 2011-07-11 10:03:28.000000000 -0500
++++ Image-Scale-0.08/src/png.c 2014-10-06 15:07:14.824434687 -0500
+@@ -40,7 +40,7 @@ image_png_read_buf(png_structp png_ptr,
+ }
+ }
+
+- png_memcpy(data, buffer_ptr(im->buf), len);
++ memcpy(data, buffer_ptr(im->buf), len);
+ buffer_consume(im->buf, len);
+
+ goto ok;