Created
May 28, 2016 11:42
-
-
Save Congee/eb5f3bd71b9a5bfb50c084226117c03b to your computer and use it in GitHub Desktop.
Homebrew formula for libcpuid
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
class Libcpuid < Formula | |
desc "A small C library for x86 CPU detection and feature extraction " | |
homepage "https://github.com/anrieff/libcpuid" | |
head "https://github.com/anrieff/libcpuid.git" | |
depends_on "automake" => :build | |
depends_on "libtool" => :build | |
depends_on "autoconf" => :build | |
def install | |
system "autoreconf", "--install" | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--disable-silent-rules", | |
"--prefix=#{prefix}" | |
system "make", "install" # if this fails, try separate make/make install steps | |
end | |
test do | |
system "#{bin}/cpuid_tool", "--version" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment