summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/subtitleripper/files/subtitleripper-0.3.4-libpng.patch')
-rw-r--r--media-video/subtitleripper/files/subtitleripper-0.3.4-libpng.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/media-video/subtitleripper/files/subtitleripper-0.3.4-libpng.patch b/media-video/subtitleripper/files/subtitleripper-0.3.4-libpng.patch
new file mode 100644
index 000000000000..e9869b3bd5dd
--- /dev/null
+++ b/media-video/subtitleripper/files/subtitleripper-0.3.4-libpng.patch
@@ -0,0 +1,25 @@
+diff -NrU5 subtitleripper.orig/spudec.c subtitleripper/spudec.c
+--- subtitleripper.orig/spudec.c 2009-05-20 03:06:23.000000000 -0600
++++ subtitleripper/spudec.c 2009-05-20 03:07:47.000000000 -0600
+@@ -34,17 +34,18 @@
+
+ #ifdef _HAVE_ZLIB_
+ #include <zlib.h>
+ #endif
+
++#ifdef _HAVE_PNG_
++#include <png.h>
++#endif
++
+ #ifdef _HAVE_LIB_PPM_
+ #include <netpbm/ppm.h>
+ #endif
+
+-#ifdef _HAVE_PNG_
+-#include "png.h"
+-#endif
+
+ static void spudec_handle_rest(spudec_handle_t *this);
+
+ // read a big endian 16 bit value
+ static inline unsigned int get_be16(const unsigned char *p)