summaryrefslogtreecommitdiff
path: root/graphics/scale2x
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/scale2x')
-rw-r--r--graphics/scale2x/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/graphics/scale2x/Makefile b/graphics/scale2x/Makefile
index 70dcf03d68f6..c18aa25ca957 100644
--- a/graphics/scale2x/Makefile
+++ b/graphics/scale2x/Makefile
@@ -22,7 +22,11 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= scalex.1 scalerx.1
PLIST_FILES= bin/scalex bin/scalerx
-CPPFLAGS= `libpng12-config --I_opts`
-LDFLAGS= `libpng12-config --L_opts`
+CPPFLAGS= `libpng14-config --I_opts`
+LDFLAGS= `libpng14-config --L_opts`
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
+ ${WRKSRC}/file.c
.include <bsd.port.mk>