Skip to content

Instantly share code, notes, and snippets.

@dwalters-zz
Created November 29, 2011 02:23
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 dwalters-zz/1403082 to your computer and use it in GitHub Desktop.
Save dwalters-zz/1403082 to your computer and use it in GitHub Desktop.
freeimage formula for 3.15.1
require 'formula'
class Freeimage < Formula
url 'http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/3.15.1/FreeImage3151.zip'
version '3.15.1'
md5 '450d2ff278690b0d1d7d7d58fad083cc'
homepage 'http://sf.net/projects/freeimage'
def install
inreplace "Makefile.gnu" do |s|
s.gsub! "-s -shared -Wl,-soname,$(VERLIBNAME)", "-dynamiclib"
s.gsub! "-o root -g root", ""
s.gsub! "ldconfig", ""
end
system "gnumake -f Makefile.gnu"
system "gnumake -f Makefile.gnu install INCDIR=#{prefix}/include INSTALLDIR=#{prefix}/lib"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment