Skip to content

Instantly share code, notes, and snippets.

@Congee
Created May 28, 2016 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Congee/eb5f3bd71b9a5bfb50c084226117c03b to your computer and use it in GitHub Desktop.
Save Congee/eb5f3bd71b9a5bfb50c084226117c03b to your computer and use it in GitHub Desktop.
Homebrew formula for libcpuid
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