Commit graph

12 commits

Author SHA1 Message Date
Tijl Coosemans
9f9234cb20 Let USES=autoreconf define AUTORECONF and use it throughout the tree.
PR:		204534
Approved by:	portmgr (antoine)
2015-11-15 15:34:51 +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
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
Tijl Coosemans
172ca8600b Run intltoolize before running autoreconf when a port uses intltool and
configure.ac (or configure.in) contains '^(AC|IT)_PROG_INTLTOOL'.

Intltoolize updates intltool related build scripts and m4 files that are
used by autoreconf to generate configure.  This change guarantees that
the build scripts, configure and LOCALBASE/bin/intltool-* are all in sync.

PR:		194393
Differential Revision:	https://reviews.freebsd.org/D976
Submitted by:	olivierd, kwm (modified)
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-02-17 10:30:55 +00:00
Tijl Coosemans
86c6fc4c0d - Update devel/automake to 1.15
- Update devel/gettext to 0.19.4
- Update devel/libtool and devel/libltdl to 2.4.5
- This version of libtool has been fixed to pass -fstack-protector to the
  compiler during linking.  Add the same fix to USES=libtool.  This should
  improve SSP support on FreeBSD/i386 8 and 9.
- databases/libmemcached, security/sssd: patch configure.ac so
  AC_CONFIG_AUX_DIR appears earlier.
  For databases/libmemcached changing configure.ac causes manpages to be
  regenerated which requires extra dependencies so patch a makefile to
  prevent that.
- devel/xfce4-dev-tools: only depend on recent versions of autoconf and
  automake

PR:		196938
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-01-23 18:54:01 +00:00
Antoine Brodin
5d9cb6d50d Fix "USES=autoreconf libtool:keepla" not pulling libtoolize as a build
dependency
This should fix x11-toolkits/open-motif

Submitted by:	tijl
With hat:	portmgr
2014-12-19 14:05:24 +00:00
Tijl Coosemans
edb7229dd4 Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The
first contains runtime libraries such as libintl and the latter contains
developer tools such as msgfmt.  Ports that use gettext will usually need
a LIB_DEPENDS on gettext-runtime and a BUILD_DEPENDS on gettext-tools.

USES=gettext-runtime can be used to set a LIB/BUILD/RUN_DEPENDS on
devel/gettext-runtime and USES=gettext-tools can be used to set a
BUILD/RUN_DEPENDS on devel/gettext-tools.  USES=gettext is now the same
as "USES=gettext-runtime gettext-tools" meaning a LIB_DEPENDS on
devel/gettext-runtime and a BUILD_DEPENDS on devel/gettext-tools.

Update gettext to 0.19.3.

Remove :oldver from converters/libiconv and devel/gettext-runtime.  Leave
symlinks with the old library versions to avoid the need to bump
PORTREVISION on a large number of dependent ports.  When most of the
dependent ports have had normal version updates, PORTREVISION can be
bumped on the remaining ones (low number) and the links can be removed.

Fix some ports that installed files in lib/locale instead of share/locale.

PR:		194038
Reviewed by:	bapt
Exp-run:	antoine
Approved by:	portmgr (antoine)
2014-11-29 18:22:32 +00:00
Tijl Coosemans
048a74771d Autoreconf runs automake in GNU mode which requires files like AUTHORS,
NEWS and ChangeLog to exist.  Let USES=autoreconf deal with that so ports
don't have to.
2014-10-03 15:33:39 +00:00
Tijl Coosemans
fe837ee6c6 Change the way USES is handled:
- Loop over USES twice, once to define all *_ARGS variables and once to
  include Uses/*.mk.  This allows all Uses/*.mk to examine arguments given
  to other USES entries.
- Always define *_ARGS (possibly empty) and replace commas with spaces.

Similar for _USES_POST.

Adjust all Uses/*.mk:
- defined(u_ARGS) becomes !empty(u_ARGS)
- Eliminate helper variables like _*_ARGS=${*_ARGS:C/,/ /g}
- Some Uses/*.mk used ":" as argument separator instead of ",", but no port
  used this form
- Uses/cran.mk: remove unused variable VALID_ARGS and USES+=fortran which
  has no effect
- Uses/twisted.mk: simplify handling of the case where neither "build" nor
  "run" arguments have been specified

PR:		193931
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-09-28 16:36:31 +00:00
Tijl Coosemans
ac209cd4f6 Improve the autoreconf documentation:
- Mention configure.in as the old name for configure.ac
- M4 macros provided by autoconf are not copied into aclocal.m4
- Autoheader does not regenerate configure (only config.h.in)
2014-09-19 12:37:48 +00:00
Tijl Coosemans
036fca0b54 Initial version of USES=autoreconf that can replace USE_AUTOTOOLS. It
runs autoreconf in CONFIGURE_WRKSRC to update configure, Makefile.in and
other build scripts.

Approved by:	portmgr (bapt)
2014-09-17 10:06:08 +00:00