guichan: fix test

This commit is contained in:
FX Coudert 2018-11-09 09:57:21 +01:00
parent 0f0a8342a6
commit cc25f9a82f

View file

@ -14,7 +14,6 @@ class Guichan < Formula
end end
depends_on "sdl_image" depends_on "sdl_image"
# "with-allegro" requires allegero-config. But that is no longer supplied from ver. 4.9.
resource "fixedfont.bmp" do resource "fixedfont.bmp" do
url "https://guichan.sourceforge.io/oldsite/images/fixedfont.bmp" url "https://guichan.sourceforge.io/oldsite/images/fixedfont.bmp"
@ -158,9 +157,16 @@ class Guichan < Formula
return 0; return 0;
} }
EOS EOS
system ENV.cc, "helloworld.cpp", ENV.cppflags, "-I#{HOMEBREW_PREFIX}/include/SDL", system ENV.cc, "helloworld.cpp", ENV.cppflags,
"-L#{Formula["SDL"].opt_lib}", "-framework", "Foundation", "-framework", "CoreGraphics", "-framework", "Cocoa", "-I#{HOMEBREW_PREFIX}/include/SDL",
"-lSDL", "-lSDLmain", "-lSDL_image", "-L#{lib}", "-lguichan", "-lguichan_sdl", "-lobjc", "-lc++", "-o", "helloworld" "-L#{Formula["sdl"].opt_lib}",
"-L#{Formula["sdl_image"].opt_lib}",
"-framework", "Foundation",
"-framework", "CoreGraphics",
"-framework", "Cocoa",
"-lSDL", "-lSDLmain", "-lSDL_image",
"-L#{lib}", "-lguichan", "-lguichan_sdl",
"-lobjc", "-lc++", "-o", "helloworld"
helloworld = fork do helloworld = fork do
system testpath/"helloworld" system testpath/"helloworld"
end end