Commit graph

13 commits

Author SHA1 Message Date
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Jimmy Olgeni
4d82f4dd69 Pass MAKE_ENV to the ERLANG_COMPILE command, so that CFLAGS and
LDFLAGS actually reach the C compiler when invoked by rebar.
2016-08-23 11:00:57 +00:00
Baptiste Daroussin
421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00
Baptiste Daroussin
8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00
Baptiste Daroussin
869e1f27d0 Drop the necessity to add ${PORTSDIR} to dependency line
Modify make describe to automatically prepend ${PORTSDIR} if the path for the
port is not absolute

Checked with poudriere, portmaster, portupgrade

PR:		203685
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3866
2015-10-14 16:49:35 +00:00
Jimmy Olgeni
173d8150db Fix build_fs_violation for rebar3 builds.
rebar3 has the uncontrollable urge to write some stuff into the user's
HOME, even if just an empty directory. Redirect HOME to WRKDIR so that it
at least shoots a blank and does not bump into build_fs_violation checks.

This fixes devel/erlang-bbmustache and www/erlang-hackney.
2015-09-08 22:12:22 +00:00
Mathieu Arnold
e8796ef612 Rewrite the target ordering code.
The targets now have priority assigned to them, and, when the dependency
ordering magic is done at the end of bsd.port.mk, they are sorted
according to their priority.

This allows USES to add targets easily and have them run whenever they
want without touching bsd.port.mk.

To add a target that runs just before post-configure run, do:

_USES_configure+=  695:my-post-configure
my-post-configure:
	do something

To fine tune when the target is ran, look at the values in the *_SEQ
variables at the end of bsd.port.mk, and the other USES.

Allow ports Makefiles to override the priority of targets with the
TARGET_ORDER_OVERRIDE variable.  For example, to get post-install
running earlier, (its default is 700) do:

TARGET_ORDER_OVERRIDE=	  650:post-install

While there, add options target helpers for the do-* targets when they
exist.

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3099
2015-08-17 13:31:25 +00:00
Jimmy Olgeni
6783a25858 Fix regular expressions for "./rebar" and "./rebar3". 2015-07-21 15:56:34 +00:00
Jimmy Olgeni
dcbd0c3fe9 Improvements in erlang.mk:
- Replace %%PORTVERSION%% in all source files
- Fix vsn tag in app files, whatever its format
2015-07-14 10:44:50 +00:00
Jimmy Olgeni
144995b4cf Fix installation of ERL_DOCS directories. 2015-07-10 11:31:40 +00:00
Jimmy Olgeni
25ed36a940 Fix typo in variable name. 2015-07-10 10:10:09 +00:00
Jimmy Olgeni
6c1fc4bf68 Improve working of comment.
In erlang.mk, replace "none" with "no argument" in the "Valid ARGS"
example; "none" looks an actual argument.
2015-07-07 23:06:33 +00:00
Jimmy Olgeni
6ab6493f6b Add Uses/erlang.mk.
It can handle simple Erlang libraries and applications that install
in LOCALBASE/lib/erlang/lib.
2015-07-06 21:40:11 +00:00