2011-12-28 01:30:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pcb < Formula
|
2012-08-21 02:40:53 +00:00
|
|
|
homepage 'http://pcb.geda-project.org/'
|
2014-03-17 22:24:46 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/pcb/pcb/pcb-20140316/pcb-20140316.tar.gz'
|
|
|
|
sha1 'ec714ff136d1817e500e1a9e654e786883b9501e'
|
2011-12-28 01:30:52 +00:00
|
|
|
|
2012-08-21 02:40:53 +00:00
|
|
|
head 'git://git.geda-project.org/pcb.git'
|
2011-12-28 01:30:52 +00:00
|
|
|
|
2014-01-11 04:56:23 +00:00
|
|
|
option 'with-doc', "Build the documentation (requires LaTeX)."
|
|
|
|
|
2013-11-13 17:01:29 +00:00
|
|
|
depends_on :autoconf
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
2011-12-28 01:30:52 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-03 20:40:16 +00:00
|
|
|
depends_on 'intltool' => :build
|
2011-12-28 01:30:52 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'd-bus'
|
2012-09-02 08:09:30 +00:00
|
|
|
depends_on 'gtk+'
|
2011-12-28 01:30:52 +00:00
|
|
|
depends_on 'gd'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gtkglext'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2014-01-11 04:56:23 +00:00
|
|
|
depends_on :tex if build.with? 'doc'
|
2011-12-28 01:30:52 +00:00
|
|
|
|
|
|
|
# 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`'
|
|
|
|
|
2014-03-20 01:21:17 +00:00
|
|
|
patch :DATA
|
2011-12-28 01:30:52 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-21 02:40:53 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2014-01-11 04:56:23 +00:00
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-update-desktop-database",
|
|
|
|
"--disable-update-mime-database"]
|
2014-03-06 20:40:26 +00:00
|
|
|
args << "--disable-doc" if build.without? 'doc'
|
2011-12-28 01:30:52 +00:00
|
|
|
|
2014-01-11 04:56:23 +00:00
|
|
|
system "./configure", *args
|
2011-12-28 01:30:52 +00:00
|
|
|
|
|
|
|
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
|
2014-03-06 20:40:26 +00:00
|
|
|
|
2011-12-28 01:30:52 +00:00
|
|
|
+typedef GLvoid (*_GLUfuncptr)(GLvoid);
|
2014-03-06 20:40:26 +00:00
|
|
|
|
2011-12-28 01:30:52 +00:00
|
|
|
triangle_buffer buffer;
|
|
|
|
float global_depth = 0;
|
|
|
|
|