Commit graph

125 commits

Author SHA1 Message Date
Niclas Zeising
5b67b34c82 Retire XORG_CAT
Retire XORG_CAT, it is not needed since all ports has moved to use
USES=xorg-cat.
Add a check to bsd.sanity.mk causing an error if any port happens to set it
in the future.

PR:		241694
Approved by:	portmgr (mat)
2019-11-04 18:08:20 +00:00
Bryan Drewery
a42cc3fdd0 LICENSE check: Respect DISABLE_LICENSES. 2019-10-17 21:11:58 +00:00
Tobias Kortkamp
771c6dff19 Mk/bsd.sanity.mk: Properly escape USE_QT4_ALT
% make
/!\ qtractor-0.9.9: Makefile errors /!\

/bin/sh: Syntax error: "(" unexpected
*** Error code 2

PR:		239814
Reported by:	Radim Kolar <hsn@sendmail.cz>
Approved by:	portmgr (rene)
Differential Revision:	https://reviews.freebsd.org/D21474
2019-09-05 07:19:03 +00:00
Baptiste Daroussin
7610a280b5 Add support for overlays
overlays are a way to help users to integrate their own ports tree
with the official ports tree without having to maintain clone of the
official tree and remerge on regular basis.

The ports tree will lookup in the overlays (in the order the are listed in
OVERLAY variable) for the dependencies and the USES. It will use the first
found.

in order to use it the user have to declare his overlays that way in their
make.conf:
OVERLAYS= overlay1 overlay2 overlay3

Reviewed by:	manu
Approved by:	swills
Differential Revision:	https://reviews.freebsd.org/D21468
2019-09-03 14:36:00 +00:00
Tobias Kortkamp
5223f58a48 Mk/bsd.sanity.mk: Flag non-integer PORTREVISION/PORTEPOCH
Currently they are not checked and something like PORTREVISION=foo
or just PORTREVISION= is accepted.  Some ports use indirection via
custom variables for them so it is worthwhile to check that they
are set to sane values.

While here fix ports that currently have non-integer PORTREVISION
or PORTEPOCH.

Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D21225
2019-08-13 14:46:28 +00:00
Rene Ladan
d2eb50ab00 Clean up final leftovers from Qt4.
Submitted by:	rene
Reviewed by:	mat, tcberner
Differential Revision:	https://reviews.freebsd.org/D20725
2019-06-26 11:52:23 +00:00
Tobias Kortkamp
dae9f3d7a4 Mk/bsd.sanity.mk: Prevent false positive with SSL_DEFAULT!=base after r499267
With SSL_DEFAULT!=base USES=ssl sets OPENSSL_LDFLAGS and any port with an
OPENSSL option like net/haproxy gets a false positive error like:

/!\ haproxy-1.9.8: Makefile errors /!\

The following options helpers are incorrectly set after bsd.port.options.mk
and are ineffective: OPENSSL_LDFLAGS

*** Error code 1

Whitelist OPENSSL_LDFLAGS to prevent this.

Reported by:	mfechner (via ports-committers)
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D20275
2019-05-16 13:30:33 +00:00
Tobias Kortkamp
f4bb5c8fec Flag nop options helpers that appear after bsd.port.options.mk as DEV_ERRORs
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D19553
2019-04-18 14:28:07 +00:00
Dmitry Marakasov
14223135a0 Convert bsd.sdl.mk to Uses/sdl.mk
Frow now on, USES=sdl should be used to specify dependency on SDL
libraries.
USE_SDL is still required to specify components, specifying it
without USES=sdl is still supported, but deprecated, and leads to
a warning. USE_SDL=yes support was removed, and now leads to error,
USE_SDL=sdl should be used instead (all ports which still used
USE_SDL=yes were fixed). sdl.mk was simplified and modernized along
the way.

PR:		https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235561
Approved by:	portmgr (mat)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D19075
2019-02-11 15:21:25 +00:00
Adam Weinberger
333d72a969 A missed word led to accidentally recommending a deprecated construct.
Thanks to sunpoet for pointing me toward what it meant to say.
2018-09-22 18:08:12 +00:00
Mathieu Arnold
d0b025ffaa Move sanity checks later.
Some USES set some variables that a porter may need to be aware and
set some variables too late for sanity checks to do a good job.
2018-09-10 13:41:21 +00:00
Mathieu Arnold
15e0735d6f Remove obsolete deprecation. 2018-09-10 13:41:16 +00:00
Mathieu Arnold
0ac9de909b Add a DEV_ERROR if PORTDOCS/PORTEXAMPLES are set and DOCS/EXAMPLES
options are not defined.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
Differential Revision:	https://reviews.freebsd.org/D13651
2018-09-10 13:16:24 +00:00
Mathieu Arnold
ba58df6efa Add a DEV_WARNING when people set ONLY_FOR_ARCHS_REASON_<arch> for an
<arch> that is supported.
2018-09-10 10:28:56 +00:00
Tobias C. Berner
b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00
Mathieu Arnold
b9427974d6 Metaports do not have any files, they do not need a license.
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D15587
2018-05-27 07:54:42 +00:00
Rene Ladan
32e34e91cb Restore PHP _ALT variables removed in r469307
Pointy hat:	rene
Reported by:	mat
2018-05-08 20:12:44 +00:00
Bernard Spil
11a52e7dd1 Mk/Uses/php.mk: Drop support for WANT_ and USE_ PHP vars
Approved by:	portmgr (rene)
Differential Revision:	https://reviews.freebsd.org/D15014
2018-05-07 18:18:17 +00:00
Jose Alonso Cardenas Marquez
5ab881a5d9 - Migrate Mk/bsd.fpc.mk to Mk/Uses/fpc.mk
- Convert all fpc-based ports to USES=fpc

PR:             227210
Reviewed by:    portmgr
Approved by:    portmgr
Exp-run by:     antoine
Differential Revision:  https://reviews.freebsd.org/D14617
2018-04-05 04:52:36 +00:00
Bernard Spil
a80b8e64ed Mk/Uses/apache.mk: Migrate Mk/bsd.apache.mk to Uses
- Chase required changes in framework (bsd.sanity.mk, bsd.port.mk)
 - Chase required changes in ports (version checks)
 - Chase required changes in PHP ports (include bsd.apache.mk)
 - exp-run by antoine, brnrd, joneum

PR:             223691 (exp-run)
Reviewed by:    joneum (hat apache), mat (portmgr), antoine (portmgr)
Approved by:    joneum (hat apache)
Approved by:	portmgr
With hat:       apache
2018-03-11 14:23:28 +00:00
Mathieu Arnold
8cd72097ee Remove PYTHON*_DEFAULT_VERSION. 2018-01-21 10:51:29 +00:00
Mathieu Arnold
aaa9450e5c USE_AUTOTOOLS has been removed, at last.
Sponsored by:	Absolight
2018-01-15 14:24:39 +00:00
Mathieu Arnold
4611015541 For some reason, this was not caught by the exp-run.
Submitted by:	tobik
Reported by:	yuri
Sponsored by:	Absolight
2018-01-09 11:45:22 +00:00
Mathieu Arnold
bb5196a149 Remove support for variables that have been deprecated for a while.
variables                  deprecation       revision
WITHOUT_NLS                2013-12-13        r336337
WITH_/WITHOUT_             2014-02-24        r345870
NOPORT(DOC|EXAMPLE)S       2014-04-19        r351587
WITH_BDB_VER               2016-05-02        r414444
OVERRIDE_LINUX_BASE_PORT   2016-09-05        r421387
WITH_OPENSSL_(BASE|PORT)   2016-06-16        r416965

While there, add an ERROR variable that works like DEV_ERROR, but for
user facing errors, and move NOPORTDOCS,
NOPORTEXAMPLES and WITHOUT_NLS to it.

Cleanup bsd.sanity.mk a bit.

Fix fallout.

PR:		224613
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13490
2018-01-09 07:40:55 +00:00
Danilo G. Baio
393c55bdbf Remove MPL (without version) license
All ports now are using MPL[10|11|20] license.

Approved by:	portmgr (rene)
Differential Revision:	D12940
2017-11-04 13:14:01 +00:00
Mathieu Arnold
4da13b8f8e Remove WANT_GNOME and HAVE_GNOME.
Approved by:	bapt kwm
Sponsored by:	Absolight
Differential Revision:	  https://reviews.freebsd.org/D12643
2017-10-12 15:57:51 +00:00
Danilo G. Baio
4251870dd5 Introduce versions of the Mozilla Public License (MPL)
MPL10 - https://opensource.org/licenses/MPL-1.0
MPL11 - https://opensource.org/licenses/MPL-1.1
MPL20 - https://opensource.org/licenses/MPL-2.0

More info about the Mozilla Public License:
https://www.mozilla.org/en-US/MPL/

Reviewed by:	amdmi3, mat
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D11696
2017-07-26 23:58:05 +00:00
Tobias C. Berner
5e373eaa92 Make ninja opt-out in cmake.mk
Using ninja instead of make (1) can lead to significant speed ups while building.
Therefore switch from having the ninja generator opt-in to having it opt-out.

Previously cmake-ports that wanted to use ninja could set
    CMAKE_NINJA=yes
now, ports that do not work with ninja can set
    cmake:<existing args>,noninja
Note, that needing this should be an exception and most often points to a broken
cmake of the port.

The ports using cmake were modified
* removed USES=gmake, if ninja is used
* removed MAKE_ARGS, if ninja is used
* added the cmake-argument noninja if necessary

PR:		219629
PR:		213331
Exp-run by:	antoine
Reviewed by:	rakuco
Differential Revision:	https://reviews.freebsd.org/D10748
2017-06-25 21:07:58 +00:00
Mathieu Arnold
1f0bcd4b50 Remove the USE_OPENSSL compatibility shims.
Sponsored by:	Absolight
2017-03-15 14:59:50 +00:00
Mathieu Arnold
a79b4be013 USE_RCORDER has been deprecated and unused for a long time.
Sponsored by:	Absolight
2017-03-13 17:44:03 +00:00
Baptiste Daroussin
dd2c2cb23e Revert r429298 it has some unexpected side effects which I do not have time to
fix yet

Approved by:	portmgr (implicit)
2016-12-25 12:46:14 +00:00
Baptiste Daroussin
709b05ed2d Make the ports infrastructure accept at least 3 level ports
Approved by:	portmgr (rene
Differential Revision:	https://reviews.freebsd.org/D8889
2016-12-24 00:30:21 +00:00
Mathieu Arnold
a226561b32 Remove obsolete entry.
Sponsored by:	Absolight
2016-10-04 11:46:52 +00:00
Dmitry Marakasov
2d6876e9b5 - Add developer warning about LICENSE not set by a port
Approved by:	portmgr (mat)
Differential Revision:	D7834
2016-09-08 16:13:55 +00:00
Mathieu Arnold
2f53697702 Move USE_BDB and PLIST_DIRSTRY to the unsupported section, all the ports
have been converted.

Sponsored by:	Absolight
2016-08-17 12:16:24 +00:00
Mathieu Arnold
0600ac5008 Move USE_PHPEXT, USE_PHP_BUILD and USE_ZENDEXT to unsupported, now that
they have been removed from the ports tree.

Sponsored by:	Absolight
2016-06-28 14:00:58 +00:00
Mathieu Arnold
d2c4c14627 USEify USES=php.
The following variables have been folded into arguments:

- USE_PHPIZE -> USES=php:phpize
- USE_PHPEXT -> USES=php:ext
- USE_ZENDEXT -> USES=php:zend
- USE_PHP_BUILD -> USES=php:build
- WANT_PHP_CLI -> USES=php:cli
- WANT_PHP_CGI -> USES=php:cgi
- WANT_PHP_MOD -> USES=php:mod
- WANT_PHP_WEB -> USES=php:web
- WANT_PHP_EMB -> USES=php:embed

PR:		210529
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D6936
2016-06-28 13:57:37 +00:00
Mathieu Arnold
06b4ea3876 Replace bsd.openssl.mk with USES=ssl
Add a qa hint about needing, or not, USES=ssl.

Fix ports doing silly things, like including bsd.openssl.mk directly.

PR:		210322
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D6866
2016-06-27 11:31:10 +00:00
Steve Wills
38fb960f49 Improve gem.mk
* Check for valid args to USES=gem
* Make autoplist default, allowing it to be specified (which is a no-op), or
  turned off
* Add sanity checks for USE_RUBYGEMS RUBYGEM_AUTOPLIST

Requested by:	mat
Discussed with:	mat
2016-04-27 20:19:16 +00:00
Mathieu Arnold
d78beb132c Move MySQL support from bsd.databases.mk to Uses/mysql.mk.
Also, USE_MYSQL can't happen after bsd.port.pre.mk because it is a USES.

PR:		208971
Submitted by:	mat
Exp-run by:	antoine
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D5951
2016-04-25 16:17:31 +00:00
Mathieu Arnold
4d32bbcef6 Move USE_BDB support from bsd.databases.mk to its own file.
Also:
- Deorbit WANT_BDB_VER, one can use USES=bdb:<ver> instead.
- USE_BDB can't happen after bsd.port.pre.mk because it is a USES.

PR:		208971
Submitted by:	mat
Exp-run by:	antoine
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D5951
2016-04-25 16:17:19 +00:00
Mathieu Arnold
38cbe5cc9e Remove USE_FIREBIRD from bsd.databases.mk, replaced by USES=firebird.
Also:
- replace USE_FIREBIRD by USES=firebird.
- convert ports depending on databases/firebird25-client directly to USES=firebird.

PR:		208971
Submitted by:	mat
Exp-run by:	antoine
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D5951
2016-04-25 16:14:02 +00:00
Mathieu Arnold
21bc5c0345 Remove USE_SQLITE from bsd.databases.mk, replaced by USES=sqlite.
While there replace USE_SQLITE=x by USES=sqlite:x.

PR:		208971
Submitted by:	mat
Exp-run by:	antoine
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D5951
2016-04-25 16:13:38 +00:00
Mathieu Arnold
34c548ae0a USE_RC_SUBR=yes has not done anything for a long time, remove it from
the few remaining ports and make it give an error.

Sponsored by:	Absolight
2016-04-14 11:00:23 +00:00
Baptiste Daroussin
bf548998cb Introduce 2 new USES: sqlite and firebird
sqlite and firebird handling code has been extracted from bsd.databases.mk
add an entry in bsd.sanity.mk to mark USE_SQLITE and USE_FIREBIRD as deprecated
2016-01-10 16:15:29 +00:00
Dmitry Marakasov
7cffd3c8f9 Remove support for WANT_SDL/HAVE_SDL knobs
WANT_SDL/HAVE_SDL macros allowed a port to check which SDL components
are installed. This goes against the policy of avoiding automatic
dependencies, and there are actually no cases in the portstree where
these knobs are used properly, so axe them out.

Approved by:	portmgr (mat)
Differential Revision:	D4093
2015-11-09 14:30:02 +00:00
Baptiste Daroussin
3566d56ac4 Add PLIST_DIRSTRY deprecation to sanity check (forgot to add it before) 2015-10-10 21:24:22 +00:00
Baptiste Daroussin
156292ee02 Add a new sanity check for knobs not needed anymore
First use: WX_UNICODE
2015-09-16 21:01:05 +00:00
Mathieu Arnold
21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00
Koop Mast
68f883edfc Convert code in bsd.port.mk for USE_GHOSTSCRIPT* to USES=ghostscript.
Add GHOSTSCRIPT_DEFAULT to bsd.default-versions.mk for easy version selection.
Arguments supported: <empty>, build, run, nox11 and agpl

PR:		201201 (exp-run)
Approved by:	portmgr (mat@)
Exp run by:	antione@ (previous patch)
Differential Revision:	https://reviews.freebsd.org/D2938
2015-07-16 20:53:28 +00:00