zeromq / erlzmq

Erlang bindings for ZeroMQ messaging
Erlang ZeroMQ Bindings
Other
49 stars 15 forks source link

Rebared version of erlzmq #13

Open benoitc opened 13 years ago

benoitc commented 13 years ago

rebar is more and more used in erlang world to manage erlang projects distribution and build. Here is a full rebared version of erlzmq replacing current build system.

This version also fix build on ox.

More info about rebar :

https://bitbucket.org/basho/rebar/wiki/Home

saleyn commented 13 years ago

Is there an option not to hard code the paths in the rebar.config file?

benoitc commented 13 years ago

no this is the only way you can do it. Exccept handling a rebar.config.template and edit path from the Makefile like I do in couch_zmq.

saleyn commented 13 years ago

The need to modify the config file manually doesn't seem very convenient because such local changes can easily get committed to the repository, and impact people who have ZMQ installed in an alternative location. With autotools that path is given to the configure script at build-time and doesn't involve changing any sources from the repository. Perhaps generating the rebar.config from a template is a better approach, but once you do that, the question becomes - is that reinventing the wheel behind the confgiure scipt?

benoitc commented 13 years ago

Well configure script is barely usable when you deploy an application using reltools. Also using rebar allows you to install it as a dependance of your erlang application and not pollute global space (so you can have different versions too).

Rebar config allows you to pass different path to link erlzmq against zeromq depending on your installation, that what do configure too somehow. If you want I can provide you a version of the makefile allowing you to customize CFLAGS and LDFLAGS if you need.

saleyn commented 13 years ago

I merged your OSX and push-pull commits.

saleyn commented 13 years ago

I'll be happy to pull your rebar changes if you can work out a solution that doesn't involve local modifications of the versioned repository files at build time.

benoitc commented 13 years ago

I will work on it later today. Thanks anyway :)

pusewicz commented 13 years ago

That would be great to have it merged in ;)

saleyn commented 13 years ago

Have those changes been completed?

benoitc commented 13 years ago

i'm not quite sure how to do it right now. I'm thinking to have a default rebar.config and eventually using autotools to build a new one. Would it be OK for your ?

saleyn commented 13 years ago

Either that or maybe modify the bootstrap to have the user pass the vital directories that would generate rebar.config from a template.