Commit graph

970 commits

Author SHA1 Message Date
Bryan Drewery
de3a95f8ff - The 2nd section of blocks here is the .else to requiring SU. Change it
so it is not relating to USE_SUBMAKE.

  No functional change.

With hat:	portmgr
2014-04-01 14:09:38 +00:00
Antoine Brodin
0e39c85753 In the DEBUG case, do not assign INSTALL_TARGET if it is not defined
With hat:	portmgr
2014-03-29 15:14:16 +00:00
Baptiste Daroussin
ba9eb09b58 Automatically convert install-strip target into install target if the debug version is being built 2014-03-28 11:23:38 +00:00
Baptiste Daroussin
db0990d2f9 Make option DEBUG work like WITH_DEBUG 2014-03-28 11:04:54 +00:00
Bryan Drewery
2f86ccfa61 - Fix error running 'make stage' when NO_STAGE is set:
touch: /usr/ports/mail/qmail/work/.stage_done.qmail._var_qmail: No such file or directory

With hat:	portmgr
2014-03-28 04:47:53 +00:00
Antoine Brodin
578bdcd05d Make bsd.ocaml.mk more stage friendly
Reviewed by:	bapt
With hat:	portmgr
2014-03-26 20:07:11 +00:00
Bryan Drewery
cfefdd7bce - Fix USE_PACKAGE_DEPENDS to properly register packages as automatic with pkgng
With hat:	portmgr
2014-03-26 04:29:36 +00:00
Bryan Drewery
8d5717cae9 install-package: Support INSTALLS_DEPENDS to register package as automatic
With hat:	portmgr
2014-03-26 04:03:25 +00:00
Bryan Drewery
22dbc56c65 - Fix installing with pkg_install when running 'make install' due to the
exists() being evaluated before the package is created.

  Regression from r348859

 With hat:	portmgr
 Pointyhat to:	bdrewery
2014-03-23 19:31:36 +00:00
Bryan Drewery
e09ae1cae1 - Create package in WRKDIR/pkg/ instead of WORKDIR/ to avoid pkg-create bug
not creating the PKGNAME.PKG_SUFX if PKGNAME already exists.

  Fixes regression packaging some from r348861

With hat:	portmgr
2014-03-23 15:34:13 +00:00
Bryan Drewery
294bff9f94 install-package: Use WRKDIR/PKGNAME.PKG_SUFX if available
With hat:	portmgr
2014-03-23 15:09:50 +00:00
Bryan Drewery
f0672aab12 Using PKGREPOSITORY is more correct here since PKGFILE uses it
With hat:	portmgr
2014-03-19 11:58:53 +00:00
Baptiste Daroussin
5512e4aa7d USE_LHA is not used anymore in the ports tree 2014-03-12 10:24:51 +00:00
Baptiste Daroussin
42951b2446 Remove the now unused USE_ZIP=yes, everyone should now use USES=zip 2014-03-11 07:02:30 +00:00
Baptiste Daroussin
e2c6345d51 fix removed by accident .else 2014-03-07 14:41:37 +00:00
Baptiste Daroussin
2947c34754 extract USE_MAKESELF from bsd.port.mk 2014-03-07 14:37:18 +00:00
Max Brazhnikov
4cd1e8830e KDE/FreeBSD team is happy to present Qt 5 in ports!
Alberto Villa (avilla@) has done all the hard work to create Qt 5 ports.
Trivial update from 5.2.0-beta1 to 5.2.1 by me.

Special thanks for Adriaan de Groot <groot@kde.org> for his assistance for
Qt-5.2.0 update.

Approved by:	portmgr (bapt) (for Mk/bsd.port.mk)
2014-03-03 16:50:32 +00:00
Pietro Cerutti
bd6a0a40a6 - Get rid of bsd.tcl.mk. See my CHANGES entry from 20130919.
Approved by:	portmgr (antoine)
2014-02-27 15:00:24 +00:00
Rene Ladan
0e229de718 Add a new flag QUIET to make targets quiet, currently only 'checkpatch'
Approved by:	portmgr (bapt)
2014-02-24 17:36:15 +00:00
Tijl Coosemans
564a799c71 Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most cases
USE_GCC=yes has been omitted though.

Remove USE_FORTRAN handling from bsd.port.mk and bsd.gcc.mk.

Minor cleanups in some ports like USE_GMAKE, NOPORTDOCS,...

Exp-run:	bdrewery
Approved by:	portmgr (bdrewery)
2014-02-16 17:15:31 +00:00
Baptiste Daroussin
3ea3e4e09f Add a user warning so that everyone get a notice about the upcoming EoL of pkg_install
Add a end user NO_WARNING_PKG_INSTALL_EOL to allow users willing to stay a bit more with pkg_install
to not get bothered all the time with the warning

With hat:	portmgr
2014-02-04 14:23:08 +00:00
Max Brazhnikov
353f538b87 Mk/bsd.port.mk:
- Fix typo (apparently I'm the first who's trying to use new mesa ports :)

Approved by:	portmgr (bapt)
2014-02-03 07:39:39 +00:00
Tijl Coosemans
64a0347268 Introduce USES=libtool to replace USE_AUTOTOOLS=libtool.
Unlike USE_AUTOTOOLS=libtool which makes a port use libtool from
devel/libtool, this just patches the copy of libtool included in the
port.  This allows adding it to all ports that use libtool including
ports that build Fortran libraries and ports that use different
compilers or binutils than the ones used to build devel/libtool.

USES=libtool also changes the library naming specification similar
to what USE_GNOME=ltverhack does.  Given the libtool version info
$current:$revision:$age and $major=$current-$age the library will be
named libname.so.$major.$age.$revision instead of libname.so.$current
and libname.so.$major becomes a symlink.  Because $major increases
less frequently than $current this reduces the number of library
version bumps which means fewer rebuilds of dependent packages.

To ease the conversion from USE_AUTOTOOLS=libtool this naming spec
can be disabled with USES=libtool:oldver but the intention is that
all libtool ports eventually use the new naming.

Another change is that only libraries that are listed on the command
line will be linked into executables.  Normally libtool would link in
the entire tree of library dependencies.  This reduces the number of
direct dependencies on a given library which means fewer packages
need to be rebuilt on a library version bump.

Approved by:	portmgr (bapt)
2014-01-28 18:25:52 +00:00
Baptiste Daroussin
5bbc87c519 Do not overwrite MAKE_ENV when WITH_DEBUG is defined 2014-01-27 23:30:12 +00:00
Baptiste Daroussin
881d45a661 Add DONTSTRIP to MAKE_ENV to prevent install(1) from stripping the binaries when WITH_DEBUG is set 2014-01-27 23:23:50 +00:00
Baptiste Daroussin
7dad680ae3 Use again package-noinstall now that is works
Tested by:	smh
2014-01-27 21:54:50 +00:00
Baptiste Daroussin
9f2ea862b9 Fix make package-recursive
Keep the ugly way for non staged ports
and properly build the package for staged ports

Tested by:	smh
2014-01-27 21:23:49 +00:00
Baptiste Daroussin
23fd3eae2a Fix ports that passes MAKE_ARGS and are not staged yet 2014-01-27 20:05:59 +00:00
Baptiste Daroussin
7c89ef9773 Do not pass DESTDIR to build target (with a syntax compatible with both fmake and bmake)
That fixes a couple of STAGEDIR references in the install files
2014-01-27 08:14:30 +00:00
Baptiste Daroussin
5d68e6a30c Add USES=desthack
This allow to pass DESTDIR through configure --prefix to ports that are
not destdir aware

Obtained from:	OpenBSD ports tree (discussed in Malta with Marc Espie)
2014-01-27 07:29:32 +00:00
Baptiste Daroussin
e8e46de2d1 Add the forgotten test around the IGNORE
Pointyhat to:	bapt
2014-01-20 09:09:04 +00:00
Baptiste Daroussin
c26c9eb22b NO_STAGEd ports will fail if STAGEDIR is defined.
Undefined STAGEDIR if already set from make.conf
Raise an error if set from command line (which cannot be undefined)

PR:		ports/182972
Submitted by:	"Scot W. Hetzel" <swhetzel@gmail.com>
2014-01-20 07:42:00 +00:00
Baptiste Daroussin
c7617a10fb xz being included in all supported base system, remove code using version
from ports
while here properly define XSCAT is is used to allow xzed patches.

PR:		ports/185725
Submitted by:	naddy
2014-01-13 07:28:31 +00:00
Marcus von Appen
78b8b9e4ba New USES=uniquefiles to make files or directories unique
by adding a prefix or suffix to them.

Files listed in UNIQUE_PREFIX_FILES will receive the prefix
set via UNIQUE_PREFIX. The same applies to UNIQUE_SUFFIX_FILES,
but with the chosen UNIQUE_SUFFIX. UNIQUE_PREFIX and
UNIQUE_SUFFIX are set to PKGNAMEPREFIX and PKGNAMESUFFIX by
default.
The uniquefiles USES enables ports to name files in special
ways, e.g. by outlining that the port does not support X11
(-nox11). A binary named bin/foo thus can be easily renamed
to bin/foo-featureA via

USES=                 uniquefiles
UNIQUE_SUFFIX=        -featureA
UNIQUE_SUFFIX_FILES=  bin/foo

The uniquefiles USES automatically adjusts the plist at
installation time. There is no need to consider the prefix
or suffix in the pkg-plist file itself. If the original name
of the renamed file is bin/foo, this exact name should be put
into pkg-plist.

The dirs argument to USES=uniquefiles will cause certain
standard directories, such as DOCSDIR or EXAMPLESDIR to be
prepended with the UNIQUE_PREFIX. The change to the directories
will hapen prior to configuring or building the port, so that
the port Makefile as well as the port's build logic are aware
of the changed name.

Since the uniquefiles USES effectively manipulates the port's
installation and file layout, it will only be available for
stagedir-aware ports. Ports with NO_STAGE=yes will be unable
to use the uniquefiles USES.

Reviewed by:	portmgr@
Approved by:	portmgr@
2014-01-11 16:52:34 +00:00
Baptiste Daroussin
d5e886e911 Fix checkpatch with the new way target sequence are defined
Reported by:	rene
2014-01-07 23:34:54 +00:00
Antoine Brodin
3e57d15fbe - Remove USE_FAM, it has been replaced by USES=fam
- Add a developer error if it is set

Approved by:	portmgr (bapt)
2014-01-05 13:33:37 +00:00
Baptiste Daroussin
c2359aa2f6 Reinvokes portaudit a second time in case a problem has been reported. So if a refetch (or another temporary problem) caused the error it will succeed on a second attempt, while a correctly detected vulnerability will be detected a second time.
PR:		ports/168479
Submitted by:	Michael Gmelin <freebsd@grem.de>
2014-01-05 01:16:34 +00:00
Baptiste Daroussin
56bc288a07 Add the forgotten targets to _STAGE_SUSEQ 2014-01-04 00:28:42 +00:00
Baptiste Daroussin
b420248356 Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
Baptiste Daroussin
ba951253f8 Add the end-user targets to .PHONY 2014-01-04 00:05:01 +00:00
Baptiste Daroussin
11e8713e2b Mark all targets defines in _SEQ and .ORDER has .PHONY which they all should be
If one day we are no adding a target actually correspond to an actual file, simply adding
the name of the target to the NOTPHONY will make it work as expected
2014-01-04 00:02:08 +00:00
Baptiste Daroussin
6905529b63 Add charsetfix-post-patch to _PATCH_SEQ 2014-01-03 23:45:50 +00:00
Baptiste Daroussin
48682c41de Add pathfix-pre-path to the _PATCH_SEQ and do not anymore make it a dependency of pre-patch
That makes applying the pathfix target predictable
2014-01-03 23:43:34 +00:00
Baptiste Daroussin
1b4b1006f8 Mark the -message targets as PHONY 2014-01-03 23:22:48 +00:00
Baptiste Daroussin
44868c3189 extract-message target definition was moved by mistake 2014-01-03 23:21:23 +00:00
Baptiste Daroussin
cafecb3515 Fix typos
Reported by:	kwm
2014-01-03 23:18:53 +00:00
Baptiste Daroussin
599a920e4a Remove 2 more target fallback 2014-01-03 23:12:57 +00:00
Baptiste Daroussin
7b3bd1cc0d Rework ordering and definition of targets.
Move ordering of targets to the very end of bsd.port.post.mk and make it define dynamically
Now all targets should be defined prior to the end of bsd.port.post.mk to allow .ORDER to control
the sequence of the targets properly.
From now all structural targets should also be defined in one of the _SEQ variable.
Extra bonus only the really defined targets are set in the final order sequence meaning that we do
not need anymore to create a ${DO_NADA} fallback target anymore, which improves performance and
simplify debugging.

Exp-run:	bdrewery
With hat:	portmgr
2014-01-03 23:01:01 +00:00
Baptiste Daroussin
d63eadee34 Allow to follow 302 redirection when fetching from http.
The main reason for it to not be allowed was to avoid infinite redirection loop
it appears that fetch(1) anyway limit the number of redirections to 5 on 8.3 and 9.1
20 on 9.2 and 10+ meaning we have no good reasons anymore to continue forbidding
following redirections.

Thanks to Michael Gmelin for having investigation

Reported by:	many
2014-01-03 00:02:08 +00:00
David Naylor
e288e58754 Convert Mk/bsd.cran.mk to the Uses framework.
PR:		ports/184699
Reviewed by:	bapt
Approved by:	portmgr (bdrewery), wen (maintainer, timeout > 2 weeks)
2013-12-28 10:28:40 +00:00