Where are the build settings in Homebrew?

2

I'm looking for a a settings file in Homebrew for OS X that controls the build settings, similar to make.conf in Gentoo.

I want to tweak the make -j parameter to use more cores of my machine. The problem is, I can't find anything useful related to brew in /usr/local/etc. Is there a simple answer to this?

Koffiman

Posted 2012-10-26T17:13:08.550

Reputation: 123

1Each brew has its own recipe for making. These are usually ruby files, IIRC. You can certainly customize them, but there are no system wide homewbrew settings that I know of. – jakev – 2012-10-26T17:17:42.693

Answers

2

As @jakev said, each Homebrew formula is a separate Ruby script. You can find them at

https://github.com/mxcl/homebrew/tree/master/Library/Formula

If you want to edit the way a specific formula builds, you can do that locally. The following will open your default editor with the locally cached formula.

brew edit name-of-formula

The reason for the absence of global build settings is simply that each formula might build in different ways, and editing yourself ("homebrewing") is explicitly encouraged.

slhck

Posted 2012-10-26T17:13:08.550

Reputation: 182 472

That's an interesting design decision, since it would make sense to store some parameters, such as the "-j" build option globally. MacPorts seems more structured (if less flexible) in this sense. – Koffiman – 2012-10-29T16:00:26.817