aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRui Pereira2011-09-05 09:09:23 +0200
committerJack Nagel2011-09-15 12:49:03 -0500
commit35611806241e3d1597e2cf86e140720371ba6fa5 (patch)
treeef7a2655eee4f9120e34604c33e26175f5c7ac79 /Library/Formula
parent14fb593d913ef0dd39d2170b384c9f259495f7c1 (diff)
downloadhomebrew-35611806241e3d1597e2cf86e140720371ba6fa5.tar.bz2
New formula: imake 1.0.4
The X Window System used imake extensively up through the X11R6.9 release, for both full builds within the source tree and external software. X has since moved to GNU autoconf and automake for its build system in X11R7.0 and later releases, but still maintains imake for building existing external software programs that have not yet converted. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/imake.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/imake.rb b/Library/Formula/imake.rb
new file mode 100644
index 000000000..6dfa47f86
--- /dev/null
+++ b/Library/Formula/imake.rb
@@ -0,0 +1,25 @@
+require 'formula'
+
+class ImakeXorgCfFiles < Formula
+ url 'http://xorg.freedesktop.org/releases/individual/util/xorg-cf-files-1.0.4.tar.bz2'
+ md5 '700c6d040d36a569e657a3ba5e1d8b24'
+end
+
+class Imake < Formula
+ url 'http://xorg.freedesktop.org/releases/individual/util/imake-1.0.4.tar.bz2'
+ homepage 'http://xorg.freedesktop.org'
+ md5 '48133c75bd77c127c7eff122e08ebbf6'
+
+ depends_on 'pkg-config' => :build
+
+ def install
+ ENV.deparallelize
+ system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
+ system "make install"
+ # install X config files
+ ImakeXorgCfFiles.new.brew do
+ system "./configure", "--with-config-dir=#{lib}/X11/config"
+ system "make install"
+ end
+ end
+end