2010-03-07 12:39:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dvdauthor < Formula
|
2010-03-07 12:39:42 +00:00
|
|
|
homepage 'http://dvdauthor.sourceforge.net/'
|
2012-03-17 18:34:33 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/dvdauthor/dvdauthor/0.7.0/dvdauthor-0.7.0.tar.gz'
|
2012-08-23 05:53:50 +00:00
|
|
|
sha1 '39501f826ae9cc6b334160ebb9c01ce9c91b31d4'
|
|
|
|
|
|
|
|
# Dvdauthor will optionally detect ImageMagick or GraphicsMagick, too.
|
|
|
|
# But we don't add either as deps because they are big.
|
2010-03-07 12:39:42 +00:00
|
|
|
|
2011-03-14 20:12:36 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-03-07 12:39:42 +00:00
|
|
|
depends_on 'libdvdread'
|
2012-08-23 05:53:50 +00:00
|
|
|
depends_on :freetype
|
2010-03-07 12:39:42 +00:00
|
|
|
|
2012-03-17 18:34:33 +00:00
|
|
|
# Fix build with png-1.5. Patch has been applied upstream, but no tagged
|
|
|
|
# release has been made since 2010. See:
|
|
|
|
# http://bugs.gentoo.org/355039
|
|
|
|
# https://github.com/ldo/dvdauthor/commit/c82aaa4eb1a1c36bf7e2b7ae3c9140d0bf8000b5
|
2011-08-09 18:09:41 +00:00
|
|
|
def patches
|
2012-03-18 03:23:25 +00:00
|
|
|
DATA
|
2011-08-09 18:09:41 +00:00
|
|
|
end
|
|
|
|
|
2010-03-07 12:39:42 +00:00
|
|
|
def install
|
2011-03-14 20:12:36 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2010-03-07 12:39:42 +00:00
|
|
|
system "make"
|
2011-03-14 20:12:36 +00:00
|
|
|
ENV.j1 # Install isn't parallel-safe
|
2010-03-07 12:39:42 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2011-08-09 18:09:41 +00:00
|
|
|
|
|
|
|
__END__
|
2012-03-18 03:23:25 +00:00
|
|
|
--- a/src/spuunmux.c 2010-05-10 11:27:55.000000000 +0400
|
|
|
|
+++ b/src/spuunmux.c 2011-03-17 11:20:25.000000000 +0300
|
2011-08-09 18:09:41 +00:00
|
|
|
@@ -39,6 +39,7 @@
|
|
|
|
#include <netinet/in.h>
|
|
|
|
|
|
|
|
#include <png.h>
|
|
|
|
+#include <zlib.h>
|
|
|
|
|
|
|
|
#include "rgb.h"
|
|
|
|
#include "common.h"
|
|
|
|
@@ -610,7 +611,7 @@
|
|
|
|
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
|
|
|
|
return -1;
|
|
|
|
} /*if*/
|
|
|
|
- if (setjmp(png_ptr->jmpbuf))
|
|
|
|
+ if (setjmp(png_jmpbuf(png_ptr)))
|
|
|
|
{
|
|
|
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
|
|
|
fclose(fp);
|