aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pcb.rb
blob: fe346c47a610430f43f789f4f91144fa1c9c253b (plain)
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
require 'formula'

class Pcb < Formula
  homepage 'http://pcb.geda-project.org/'
  url 'https://downloads.sourceforge.net/project/pcb/pcb/pcb-20110918/pcb-20110918.tar.gz'
  version '20110908'
  sha1 '53ca27797d4db65a068b56f157e3ea6c5c29051f'

  head 'git://git.geda-project.org/pcb.git'

  option 'with-doc', "Build the documentation (requires LaTeX)."

  depends_on :autoconf
  depends_on :automake
  depends_on 'pkg-config' => :build
  depends_on 'intltool' => :build
  depends_on 'gettext'
  depends_on 'd-bus'
  depends_on 'gtk+'
  depends_on 'gd'
  depends_on 'glib'
  depends_on 'gtkglext'
  depends_on :x11
  depends_on :tex if build.with? 'doc'

  # See comments in intltool formula
  depends_on 'XML::Parser' => :perl

  conflicts_with 'gts', :because => 'both install `include/gts.h`'

  def patches
    DATA
  end

  def install
    system "./autogen.sh" if build.head?
    args = ["--disable-debug", "--disable-dependency-tracking",
            "--prefix=#{prefix}",
            "--disable-update-desktop-database",
            "--disable-update-mime-database"]
    args << "--disable-doc" if build.without? 'doc'

    system "./configure", *args

    system "make"
    system "make install"
  end
end

# There's a missing define from GLU. Defining this fixes everything up.
__END__
diff --git a/src/hid/common/hidgl.c b/src/hid/common/hidgl.c
index 15273a6..ff73ca7 100644
--- a/src/hid/common/hidgl.c
+++ b/src/hid/common/hidgl.c
@@ -66,6 +66,7 @@
 #include <dmalloc.h>
 #endif

+typedef GLvoid (*_GLUfuncptr)(GLvoid);

 triangle_buffer buffer;
 float global_depth = 0;