-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
/
Copy pathlibdv.rb
82 lines (72 loc) · 3.79 KB
/
libdv.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
class Libdv < Formula
desc "Codec for DV video encoding format"
homepage "https://libdv.sourceforge.net/"
url "https://downloads.sourceforge.net/project/libdv/libdv/1.0.0/libdv-1.0.0.tar.gz"
sha256 "a305734033a9c25541a59e8dd1c254409953269ea7c710c39e540bd8853389ba"
license "LGPL-2.1-or-later"
bottle do
rebuild 1
sha256 cellar: :any, arm64_sequoia: "d9ec199c7cbb78a2e15ba681e90f94cb34e7c4e4d4856ebe85553661847a4f3b"
sha256 cellar: :any, arm64_sonoma: "b3e7be7a0887586ce1373382cdd83d7537b273fc622cf606ea3e1d425461b594"
sha256 cellar: :any, arm64_ventura: "e7c73ec9982ec05267073663395ff00a2a5eb7927a0df172441890d402e11077"
sha256 cellar: :any, arm64_monterey: "58a4f24c622c38ba33f3c2972dff249e77b891d68e06553a99a71dc42801f08e"
sha256 cellar: :any, arm64_big_sur: "a72d9919c11d6950fcd115e6fa0e6cbac86ec6f06d8ade46b642006f652bf53f"
sha256 cellar: :any, sonoma: "d67945be1d2aba728715b9f67f68bd91fab88599bb351a179bfa89829bb5ac19"
sha256 cellar: :any, ventura: "e9109a663d65ae5085c53d011421cc9cb09821fd42b8002c0d2d241db7ebc180"
sha256 cellar: :any, monterey: "95529c6172e3054e8cf7057d6a0da13d20a8f368a4828a4103f5b1f37136b340"
sha256 cellar: :any, big_sur: "81db616fc05c65d944af1a500e9d647764e361419040b0007d9efc85ebfe3d31"
sha256 cellar: :any, catalina: "ee4a56e9a1462b87632dca0048808d4918b5a72fd943cce8ee600d138c9f67f6"
sha256 cellar: :any, mojave: "ec2564e27b321ebb35a3278d6e7411d17d1b1acad5dbcd40106cbcaf24205b53"
sha256 cellar: :any, high_sierra: "0f7c7db1baa95682ad66b9d628d51978f162558f6d8296715a38150f83a7c72f"
sha256 cellar: :any, sierra: "9ea1a006d7aa954c5a1d61497f9f7f43e0b1bd5bce911b6d334a693d8af58671"
sha256 cellar: :any, el_capitan: "0624e82748111d0a8a050a802ec4251c443127c39c93b3b2469a00816a602040"
sha256 cellar: :any_skip_relocation, arm64_linux: "a7be333d02ace53395d0dcaad23163a9bf3a159aa05cc71a7202ee8eb917adf3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b4e579189286f35409557243fe450e7509536f831777f37ae2f7519913bddcf8"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkgconf" => :build
depends_on "popt"
# remove SDL1 dependency by force
patch :DATA
def install
# This fixes an undefined symbol error on compile.
# See the port file for libdv:
# https://trac.macports.org/browser/trunk/dports/multimedia/libdv/Portfile
# This flag is the preferred method over what macports uses.
# See the apple docs: https://cl.ly/2HeF bottom of the "Finding Imported Symbols" section
ENV.append "LDFLAGS", "-undefined dynamic_lookup" if OS.mac?
system "autoreconf", "--force", "--install", "--verbose"
# Fix compile with newer Clang
ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403
system "./configure", "--disable-asm",
"--disable-gtktest",
"--disable-gtk",
"--disable-sdltest",
*std_configure_args
system "make", "install"
end
test do
system bin/"dubdv", "--version"
system bin/"dvconnect", "--version"
end
end
__END__
diff --git a/configure.ac b/configure.ac
index 2b95735..1ba9370 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,13 +173,6 @@ dnl used in Makefile.am
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
-if $use_sdl; then
- AM_PATH_SDL(1.1.6,
- [
- AC_DEFINE(HAVE_SDL)
- ])
-fi
-
if [ $use_gtk && $use_xv ]; then
AC_CHECK_LIB(Xv, XvQueryAdaptors,
[AC_DEFINE(HAVE_LIBXV)