Skip to content

Instantly share code, notes, and snippets.

@jvalduvieco
Created December 25, 2012 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jvalduvieco/4376555 to your computer and use it in GitHub Desktop.
Save jvalduvieco/4376555 to your computer and use it in GitHub Desktop.
wxgtk Homebrew formula
require 'formula'
class Wxgtk < Formula
homepage 'http://www.wxwidgets.org'
#url 'http://sourceforge.net/projects/wxwindows/files/2.8.12/wxWidgets-2.8.12.tar.bz2'
#version '2.8.12'
url "http://downloads.sourceforge.net/project/wxwindows/2.8.12/wxGTK-2.8.12.tar.gz"
sha1 '56cc7f6622dd6f2fecd43fc210dc1c6cb155b37f'
depends_on :x11 # if your formula requires any X11/XQuartz components
depends_on 'gtk+'
def install
args=[
"--with-libpng",
"--with-opengl",
"--with-libjpeg",
"--with-libtiff",
"--with-freetype",
"--with-zlib",
"--enable-unicode",
"--disable-debug",
"--prefix=#{prefix}",
"--with-gtk"
]
#ENV.append_to_cflags '-arch x86_64' if MacOS.prefer_64_bit?
ENV.append 'LDFLAGS', '-lX11 -lGL -lGLU'
system "./configure", *args
system "make install"
cd "contrib" do
system "make"
system "make install"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment