homebrew-core/Formula/pcb.rb

60 lines
1.4 KiB
Ruby
Raw Normal View History

require 'formula'
class Pcb < Formula
homepage 'http://pcb.geda-project.org/'
url 'http://downloads.sourceforge.net/project/pcb/pcb/pcb-20110918/pcb-20110918.tar.gz'
version '20110908'
sha1 '53ca27797d4db65a068b56f157e3ea6c5c29051f'
head 'git://git.geda-project.org/pcb.git'
2013-11-13 17:01:29 +00:00
depends_on :autoconf
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on 'pkg-config' => :build
2013-02-03 20:40:16 +00:00
depends_on 'intltool' => :build
depends_on 'gettext'
depends_on 'd-bus'
2012-09-02 08:09:30 +00:00
depends_on 'gtk+'
depends_on 'gd'
depends_on 'glib'
depends_on 'gtkglext'
depends_on :x11
# See comments in intltool formula
depends_on 'XML::Parser' => :perl
2013-11-15 07:41:38 +00:00
conflicts_with 'gts', :because => 'both install `include/gts.h`'
def patches
DATA
end
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-update-desktop-database",
"--disable-update-mime-database"
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;