2011-09-05 07:09:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class ImakeXorgCfFiles < Formula
|
|
|
|
url 'http://xorg.freedesktop.org/releases/individual/util/xorg-cf-files-1.0.4.tar.bz2'
|
2012-06-16 11:12:25 +00:00
|
|
|
sha1 'c58b7252df481572ec1ccd77b9f1ab561ed89e45'
|
2011-09-05 07:09:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Imake < Formula
|
|
|
|
homepage 'http://xorg.freedesktop.org'
|
2012-06-16 11:12:25 +00:00
|
|
|
url 'http://xorg.freedesktop.org/releases/individual/util/imake-1.0.5.tar.bz2'
|
|
|
|
sha1 '1fd3dca267d125ad86583d7f9663b6ff532cddd1'
|
2011-09-05 07:09:23 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
|
|
|
def install
|
2012-06-16 11:12:25 +00:00
|
|
|
# So it can find xorg-macros.pc. Using ENV.x11 didn't work.
|
|
|
|
ENV['PKG_CONFIG_PATH'] = '/usr/X11/share/pkgconfig'
|
2011-09-05 07:09:23 +00:00
|
|
|
ENV.deparallelize
|
2012-06-16 11:12:25 +00:00
|
|
|
system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
|
2011-09-05 07:09:23 +00:00
|
|
|
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
|