parent
ee92173d57
commit
4df83192fe
7 changed files with 7 additions and 7 deletions
|
@ -73,7 +73,7 @@ class Fftw < Formula
|
||||||
}
|
}
|
||||||
TEST_SCRIPT
|
TEST_SCRIPT
|
||||||
|
|
||||||
system ENV.cc, '-o', 'fftw', 'fftw.c', '-lfftw3', *ENV.cflags.split
|
system ENV.cc, '-o', 'fftw', 'fftw.c', '-lfftw3', *ENV.cflags.to_s.split
|
||||||
system './fftw'
|
system './fftw'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -114,7 +114,7 @@ class Glib < Formula
|
||||||
}
|
}
|
||||||
EOS
|
EOS
|
||||||
flags = ["-I#{include}/glib-2.0", "-I#{lib}/glib-2.0/include", "-lglib-2.0"]
|
flags = ["-I#{include}/glib-2.0", "-I#{lib}/glib-2.0/include", "-lglib-2.0"]
|
||||||
system ENV.cc, "-o", "test", "test.c", *(flags + ENV.cflags.split)
|
system ENV.cc, "-o", "test", "test.c", *(flags + ENV.cflags.to_s.split)
|
||||||
system "./test"
|
system "./test"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Hidapi < Formula
|
||||||
}
|
}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
flags = `pkg-config --cflags --libs hidapi`.split + ENV.cflags.split
|
flags = `pkg-config --cflags --libs hidapi`.split + ENV.cflags.to_s.split
|
||||||
system ENV.cc, "-o", "test", "test.c", *flags
|
system ENV.cc, "-o", "test", "test.c", *flags
|
||||||
system './test'
|
system './test'
|
||||||
end
|
end
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Libcapn < Formula
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
TEST_SCRIPT
|
TEST_SCRIPT
|
||||||
flags = `#{HOMEBREW_PREFIX}/bin/pkg-config --cflags --libs libcapn`.split + ENV.cflags.split
|
flags = `#{HOMEBREW_PREFIX}/bin/pkg-config --cflags --libs libcapn`.split + ENV.cflags.to_s.split
|
||||||
system ENV.cc, "-o", "test_install", "test_install.c", *flags
|
system ENV.cc, "-o", "test_install", "test_install.c", *flags
|
||||||
system "./test_install"
|
system "./test_install"
|
||||||
end
|
end
|
||||||
|
|
|
@ -74,7 +74,7 @@ class Libffi < Formula
|
||||||
TEST_SCRIPT
|
TEST_SCRIPT
|
||||||
|
|
||||||
flags = ["-L#{lib}", "-lffi", "-I#{lib}/libffi-#{version}/include"]
|
flags = ["-L#{lib}", "-lffi", "-I#{lib}/libffi-#{version}/include"]
|
||||||
system ENV.cc, "-o", "closure", "closure.c", *(flags + ENV.cflags.split)
|
system ENV.cc, "-o", "closure", "closure.c", *(flags + ENV.cflags.to_s.split)
|
||||||
system "./closure"
|
system "./closure"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Liboil < Formula
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EOS
|
EOS
|
||||||
flags = `#{HOMEBREW_PREFIX}/bin/pkg-config --cflags --libs liboil-0.3`.split + ENV.cflags.split
|
flags = `#{HOMEBREW_PREFIX}/bin/pkg-config --cflags --libs liboil-0.3`.split + ENV.cflags.to_s.split
|
||||||
system ENV.cc, "test.c", "-o", "test", *flags
|
system ENV.cc, "test.c", "-o", "test", *flags
|
||||||
system "./test"
|
system "./test"
|
||||||
end
|
end
|
||||||
|
|
|
@ -51,7 +51,7 @@ class Sqlite < Formula
|
||||||
"-dynamiclib",
|
"-dynamiclib",
|
||||||
"extension-functions.c",
|
"extension-functions.c",
|
||||||
"-o", "libsqlitefunctions.dylib",
|
"-o", "libsqlitefunctions.dylib",
|
||||||
*ENV.cflags.split
|
*ENV.cflags.to_s.split
|
||||||
lib.install "libsqlitefunctions.dylib"
|
lib.install "libsqlitefunctions.dylib"
|
||||||
end
|
end
|
||||||
doc.install resource('docs') if build.with? "docs"
|
doc.install resource('docs') if build.with? "docs"
|
||||||
|
|
Loading…
Reference in a new issue