aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Rocklin2011-12-27 20:30:52 -0500
committerAdam Vandenberg2012-02-18 15:55:58 -0800
commit02c6b58e76d87e1345f32c5801b5979b9eb301fb (patch)
tree8308674184c5e0a1568b5a28a6659e6c24cf44f3
parenta24d0738e6b703f36ea9896a79b826d7f0e54ed3 (diff)
downloadhomebrew-02c6b58e76d87e1345f32c5801b5979b9eb301fb.tar.bz2
pcb 20110918
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/pcb.rb56
1 files changed, 56 insertions, 0 deletions
diff --git a/Library/Formula/pcb.rb b/Library/Formula/pcb.rb
new file mode 100644
index 000000000..ee8ad66f0
--- /dev/null
+++ b/Library/Formula/pcb.rb
@@ -0,0 +1,56 @@
+require 'formula'
+
+class Pcb < Formula
+ homepage 'http://pcb.gpleda.org/'
+ url 'http://downloads.sourceforge.net/project/pcb/pcb/pcb-20110918/pcb-20110918.tar.gz'
+ version '20110908'
+ md5 '54bbc997eeb22b85cf21fed54cb8e181'
+
+ head 'git://git.gpleda.org/pcb.git'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'intltool'
+ depends_on 'gettext'
+ depends_on 'd-bus'
+ depends_on 'gd'
+ depends_on 'glib'
+ depends_on 'gtkglext'
+
+ # See comments in intltool formula
+ depends_on 'XML::Parser' => :perl
+
+ def patches
+ DATA
+ end
+
+ def install
+ ENV.x11
+ ENV.append 'ACLOCAL_FLAGS', "-I#{HOMEBREW_PREFIX}/share/aclocal"
+
+ system "./autogen.sh" if ARGV.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;
+