Skip to content

Instantly share code, notes, and snippets.

@agathe
Created July 7, 2012 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agathe/3063821 to your computer and use it in GitHub Desktop.
Save agathe/3063821 to your computer and use it in GitHub Desktop.
Homebrew cairomm Formula
require 'formula'
class Cairomm < Formula
homepage 'http://cairographics.org/cairomm/'
url 'http://cairographics.org/releases/cairomm-1.10.0.tar.gz'
sha256 '068d96c43eae7b0a3d98648cbfc6fbd16acc385858e9ba6d37b5a47e4dba398f'
depends_on 'pkg-config' => :build
depends_on 'libsigc++'
depends_on 'cairo'
def install
ENV.append "PKG_CONFIG_PATH", "/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig"
ENV.append "LDFLAGS", "-L/usr/local/Cellar/cairo/1.12.2/lib -lcairo"
ENV.append "CPPFLAGS", "-I/usr/local/Cellar/libsigc++/2.2.10/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++/2.2.10/lib/sigc++-2.0/include -I/usr/local/Cellar/cairo/1.12.2/include/cairo -I/usr/local/Cellar/pixman/0.26.2/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.8.0/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng15 "
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment