Skip to content

Commit

Permalink
dvdauthor 0.7.1
Browse files Browse the repository at this point in the history
stripped patch (fixed upstream)

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
brettkoonce authored and adamv committed Nov 4, 2012
1 parent 6d4105b commit 66906d8
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions Library/Formula/dvdauthor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

class Dvdauthor < Formula
homepage 'https://dvdauthor.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/dvdauthor/dvdauthor/0.7.0/dvdauthor-0.7.0.tar.gz'
sha1 '39501f826ae9cc6b334160ebb9c01ce9c91b31d4'
url 'https://downloads.sourceforge.net/project/dvdauthor/dvdauthor/0.7.1/dvdauthor-0.7.1.tar.gz'
sha1 'a9636d165bf546e3e2b25b7397c33dbfa2895e6a'

# Dvdauthor will optionally detect ImageMagick or GraphicsMagick, too.
# But we don't add either as deps because they are big.
Expand All @@ -12,14 +12,6 @@ class Dvdauthor < Formula
depends_on 'libdvdread'
depends_on :freetype

# Fix build with png-1.5. Patch has been applied upstream, but no tagged
# release has been made since 2010. See:
# https://bugs.gentoo.org/355039
# https://github.com/ldo/dvdauthor/commit/c82aaa4eb1a1c36bf7e2b7ae3c9140d0bf8000b5
def patches
DATA
end

def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
Expand All @@ -29,24 +21,3 @@ def install
system "make install"
end
end

__END__
--- a/src/spuunmux.c 2010-05-10 11:27:55.000000000 +0400
+++ b/src/spuunmux.c 2011-03-17 11:20:25.000000000 +0300
@@ -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);

0 comments on commit 66906d8

Please sign in to comment.