summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/apngdis/files')
-rw-r--r--media-gfx/apngdis/files/apngdis-2.9-makefile.patch18
-rw-r--r--media-gfx/apngdis/files/apngdis-2.9-zlib.patch12
2 files changed, 30 insertions, 0 deletions
diff --git a/media-gfx/apngdis/files/apngdis-2.9-makefile.patch b/media-gfx/apngdis/files/apngdis-2.9-makefile.patch
new file mode 100644
index 000000000000..08e6b02e4fde
--- /dev/null
+++ b/media-gfx/apngdis/files/apngdis-2.9-makefile.patch
@@ -0,0 +1,18 @@
+--- apngdis-2.9-src/Makefile
++++ apngdis-2.9-src/Makefile
+@@ -1,11 +1,10 @@
+ PACKAGE = apngdis
+-CC = gcc
+-CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
+-LIBS = -lstdc++ -lm -lpng -lz
++CC ?= gcc
++CFLAGS += -Wall -pedantic
++LIBS = -lstdc++ -lm -lpng
+
+ all :
+- $(CC) $(CFLAGS) $(CFLAGS_OPT) -o $(PACKAGE) $(PACKAGE).cpp -s $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PACKAGE) $(PACKAGE).cpp $(LIBS)
+
+ .PHONY : clean
+
diff --git a/media-gfx/apngdis/files/apngdis-2.9-zlib.patch b/media-gfx/apngdis/files/apngdis-2.9-zlib.patch
new file mode 100644
index 000000000000..d9ce01007cfb
--- /dev/null
+++ b/media-gfx/apngdis/files/apngdis-2.9-zlib.patch
@@ -0,0 +1,12 @@
+Drop unused zlib header.
+
+--- apngdis-2.9-src/apngdis.cpp
++++ apngdis-2.9-src/apngdis.cpp
+@@ -32,7 +32,6 @@
+ #include <string.h>
+ #include <vector>
+ #include "png.h" /* original (unpatched) libpng is ok */
+-#include "zlib.h"
+
+ #define notabc(c) ((c) < 65 || (c) > 122 || ((c) > 90 && (c) < 97))
+