Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
1  
Each 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 Oct 26 '12 at 17:17
add comment

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
    
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 Oct 29 '12 at 16:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.