public
Created

wxgtk Homebrew formula

  • Download Gist
wxgtk.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.