homebrew-core/Formula/imake.rb
nibbles 2bits d77fb27127 imake 1.0.5
Upgrade imake to version 1.0.5.
Add `ENV[PKG_CONFIG_PATH]` to pick up `xorg-macros.pc` because
using ENV.x11 did not work.
Add `--disable-dependency-tracking`.
Remove the `--mandir` that's not needed anymore.
Tested on Lion with clang and llvm from XCode-4.3.3.

Closes Homebrew/homebrew#12872.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-16 11:03:58 -05:00

27 lines
865 B
Ruby

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