Commit graph

132 commits

Author SHA1 Message Date
Muhammad Moinur Rahman
6e1233be22 Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
Convert the USE_LDAP=yes to USES=ldap and adds the following features:

- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
  RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features

Reviewed by:	delphij
Approved by:	portmgr
Differential Revision: https://reviews.freebsd.org/D38233
2023-02-08 04:53:56 -06:00
Muhammad Moinur Rahman
40843b1ccb Mk/Uses/apache.mk: Refactor after removal of older versions
apache22 and apache25 had been removed a long time ago however the
apache.mk file has never been refactored and is out of sync from the
file Mk/bsd.default-versions.mk. These changes refactors the removals of
the older versions. In addition:

- Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN
  from SANITY_DEPRECATED to SANITY_UNSUPPORTED
- Remove apache versions from ports Makefiles as currently there is only
  one available version in the tree. However the version checks are
  still valid and should work flawlessly whenever a new version is
  added. For example USES=apache:2.2+ are simply replaced with
  USES=apache. As currently there are no other versions available for
  test this could not be checked on it's own ground.
- Update FOO_USE=APACHE=yes to FOO_USES=apache
- Remove trailing whitespaces

Approved by:    portmgr
Differential Revision: https://reviews.freebsd.org/D38113
2023-01-25 11:54:07 -06:00
Muhammad Moinur Rahman
18c6e18276 Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk

Notable changes are.

- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
  USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.

This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863

I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.

Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D37925
2023-01-14 17:08:33 -06:00
Bryan Drewery
4ca11c4efc Mk/bsd.sanity.mk: Reduce parsing during package builds
This disables bsd.sanity.mk when PACKAGE_BUILDING is set such that it
only is loaded during 'make [all]' or 'make check-sanity'.  It is assumed the
package tool will manually call the target if it wants the check.  Otherwise
we get redundant logic and filesystem lookups from this file for every other
build target.

Prodded by:	mjg
2022-12-21 08:34:32 -08:00
Tobias C. Berner
aa25396790 framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
2022-04-24 12:00:20 +02:00
Tobias Kortkamp
97f276841f
Mk/bsd.sanity.mk: Mark CARGO_USE_GIT* and CARGO_GIT_SUBDIR as unsupported
PR:		256581
2021-10-25 10:49:06 +02:00
Mathieu Arnold
5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00
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