Discussion:
Help new formula
Filippo Fontanelli
2014-07-19 15:02:50 UTC
Permalink
Hi all,

I’m a new user of homebrew and i’m trying to creare a new Formula for my app but i have some problems:

1) My application has some third-party library to compile, and i do these step inside my Makefile:

cd $(JSON_HOME); ./autogen.sh; ./configure; @GMAKE@
$(SOME_LIB): Lib
cd Lib; if test ! -f Makefile; then ./configure; fi; make

If i manual compile my application everything work well, but when i run brew install -v myapp
seems (looking the trace log) that these third-party library will be compile in the same time ( the logs overlap).

2) When i try to compile my app some dependence is missing (ex. json-c).

Can someone point me in the right direction?

Thanks,
Filippo
Mike McQuaid
2014-07-20 18:44:53 UTC
Permalink
Post by Filippo Fontanelli
If i manual compile my application everything work well, but when i run brew install -v myapp
seems (looking the trace log) that these third-party library will be compile in the same time ( the logs overlap).
Homebrew will run e.g. `make -j4` which builds in parallel. You should specify dependencies correctly in your Makefile so that this works OK.
Post by Filippo Fontanelli
2) When i try to compile my app some dependence is missing (ex. json-c).
Use `depends_on “json_c”` in your formula.

Mike McQuaid
http://mikemcquaid.com

Loading...