Created
November 29, 2011 02:23
-
-
Save dwalters-zz/1403082 to your computer and use it in GitHub Desktop.
freeimage formula for 3.15.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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