Skip to content

Commit

Permalink
mosaic-ck: fix build with clang
Browse files Browse the repository at this point in the history
Closes #3.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
  • Loading branch information
jacknagel authored and mistydemeo committed Oct 15, 2014
1 parent 79d3261 commit 78baa2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mosaic-ck.rb
Expand Up @@ -10,9 +10,6 @@ class MosaicCk < Formula
depends_on "jpeg"
depends_on "lesstif"

# "non-void function 'hw_do_color' should return a value"
fails_with :clang

# Makes extensive use of direct struct access,
# which doesn't work with libpng 1.4+
resource "libpng" do
Expand All @@ -38,6 +35,7 @@ def install
s.change_make_var! "jpegdir", Formula["jpeg"].opt_prefix
s.gsub! "$(jpegdir)/lib/libjpeg.a", "-ljpeg"
s.gsub! "$(pnglibdir)/libz.a", "-lz"
s.change_make_var! "knrflag", "-Wno-return-type" if ENV.compiler == :clang
end

system "make", "osx"
Expand Down

0 comments on commit 78baa2e

Please sign in to comment.