diff options
| author | Adam Vandenberg | 2012-08-08 22:35:06 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:35:06 -0700 |
| commit | 80c8e7e746d9d248bb4c3e50b9a9d20ee64c710e (patch) | |
| tree | fbe196e3425eb101ab4268306f3a637fc113e276 /Library/Formula | |
| parent | 24fe2836ba03b490b4c78467775edcaf315969dc (diff) | |
| download | homebrew-80c8e7e746d9d248bb4c3e50b9a9d20ee64c710e.tar.bz2 | |
freeimage: use options dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/freeimage.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/freeimage.rb b/Library/Formula/freeimage.rb index aa61e7114..1e2f2de4c 100644 --- a/Library/Formula/freeimage.rb +++ b/Library/Formula/freeimage.rb @@ -9,22 +9,20 @@ class FreeimageHttpDownloadStrategy < CurlDownloadStrategy end class Freeimage < Formula + homepage 'http://sf.net/projects/freeimage' url 'http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/3.15.1/FreeImage3151.zip', :using => FreeimageHttpDownloadStrategy version '3.15.1' md5 '450d2ff278690b0d1d7d7d58fad083cc' - homepage 'http://sf.net/projects/freeimage' - def options - [[ '--universal', 'Build a universal binary' ]] - end + option :universal def patches DATA end def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? system "make", "-f", "Makefile.gnu" system "make", "-f", "Makefile.gnu", "install", "PREFIX=#{prefix}" system "make", "-f", "Makefile.fip" |
