Commit graph

270 commits

Author SHA1 Message Date
Mathieu Arnold
aef5a66670 Don't use extension.ini any more, and have each extension install in its
file, so the order remains the same.

Every PHP (or Zend) extension now installs its own .ini file in
/usr/local/etc/php.  A PHP extension will be automatically activated
when installed.  The order into which extensions are loaded is
automatically guessed.  In some very rare cases, the guess will be
wrong, and PHP_MOD_PRIO will need to be set.  Refer to the USES=php
section of the Porter's Handbook for more information.

Convert ports touching etc/php/extensions.ini manually, or telling the
OP to do it.

And finally, bump PORTREVISION for all php extensions.

PR:		210697
Submitted by:	mat
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D7022
2016-08-03 12:47:05 +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
Adam Weinberger
5c332ae6cb Add an opt_CMAKE_BOOL options helper.
SOMEOPT_CMAKE_BOOL=	WITH_FOO BAR

expands to:

  -DWITH_FOO:BOOL=true -DBAR:BOOL=true
or
  -DWITH_FOO:BOOL=false -DBAR:BOOL=false

PR:		210576
Approved by:	portmgr (mat)
2016-06-25 22:23:37 +00:00
Dmitry Marakasov
eece2953a3 Trim trailing whitespace
Approved by:	portmgr blanket
2016-06-14 19:42:55 +00:00
Mathieu Arnold
6596903add A new stage-qa test has been added, it reports all shared libraries
dependencies that are not part of the port list of dependencies.  It help
finds what is called proxy dependencies.

A is needed by B, and B is needed by C.  If C also needs A, then it needs to
be registered, and this check will tell you to do so.

Right now, it is only reporting the problems, but if you add
PROXYDEPS_FATAL=yes to your environment, it will give an error and will force
you to fix the dependencies.

PR:		195203
Submitted by:	yuri rawbw com (earlier version)
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D6531
2016-05-25 11:59:39 +00:00
Baptiste Daroussin
50fc8c00fe Add an entry about the new @xmlcatmgr 2016-05-24 22:49:01 +00:00
Thierry Thomas
bee2cd455b Fix typo. 2016-05-12 19:43:46 +00:00
Ed Maste
d99dc0a380 Move my CHANGES entry from r415078 to the correct location 2016-05-12 19:14:18 +00:00
Ed Maste
7fea5824d6 Record TIMESTAMP in make makesum
This is intended to support development and prototyping for ports
reproducible build efforts which require some concept of a "last
updated" time. It is being committed now so that timestamp entries
will be populated "for free" as port distfiles updates happen.

Submitted by:	bapt (earlier version)
Reviewed by:	bapt, bdrewery
Approved by:	portmgr (bdrewery)
Differential Revision:	https://reviews.freebsd.org/D6031
2016-05-12 18:20:27 +00:00
Mathieu Arnold
4368714e8d Add a CHANGES entry about USES=gem.
Sponsored by:	Absolight
2016-04-28 08:50:41 +00:00
Mathieu Arnold
c26a2d22a3 Commit a forgotten CHANGES entry.
Sponsored by:	Absolight
2016-04-27 12:21:50 +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
Jan Beich
ef7f58498f Add CONFIGURE_OUTSOURCE support
If CONFIGURE_OUTSOURCE is defined HAS_CONFIGURE invokes configure script
and builds the port out of source tree, under ${WRKDIR}/.build by default.
The feature is inspired by USES=cmake:outsource and USES=qmake:outsource.

PR:		208294
Exp-run by:	antoine
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D4157
2016-04-13 10:37:34 +00:00
Baptiste Daroussin
012b8b17bf Add a CHANGES entry concerning the change about PORTSDIR in the dependency lines 2016-04-02 07:56:59 +00:00
Mathieu Arnold
3b8753a0a6 Introduce GH_TUPLE.
GH_TUPLE allows one to put all the GH_{ACCOUNT,PROJECT,TAGNAME} into one
variable, in the form of account:project:tagname[:group].  It is helpful
when there are many submodules.

PR:		204772
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D4514
2016-03-01 20:22:45 +00:00
Koop Mast
71d5deb1f4 Move Mk/bsd.gnome.mk and Mk/bsd.mate.mk to Mk/Uses/.
To use the GNOME or MATE components activate it by adding gnome
or mate to USES. The usage of USE_GNOME/INSTALL_ICONS and for
example GLIB_SCHEMAS has stayed the same.

Like with USES, the use of USE_GNOME and so after bsd.port.pre.mk
is now forbidden. And adapt ports that where still doing that.

Exp-runs done by:	antoine@

PR:		205432
Reviewed by:	antoine@, mat@
Approved by:	portmgr (antoine@)
Differential Revision:	https://reviews.freebsd.org/D3653
2016-02-07 19:43:56 +00:00
Dmitry Marakasov
6f63bcc816 Mention new supported LICENSE values
Approved by:	portmgr (implicit)
2016-01-12 14:38:48 +00:00
Baptiste Daroussin
b6e538c589 We are actually in 2016 :)
Reported by:	Scott Bennett <bennett@sdf.org>
2016-01-10 21:30:53 +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
Mathieu Arnold
ec218a1332 Change the meaning of NO_WRKSUBDIR to force a WRKDIR != WRKSRC.
Right now, NO_WRKSUBDIR means that the extraction does not produce a
subdirectory, and that everything goes straight into WRKDIR.  It is
problematic, because during the build of a port, quite a few files are
created in there, and then, a stage directory, where everything is
installed, and then a pkg directory where the package is created, and
those often conflict, or get in the way, of the building process.

With this, NO_WRKSUBDIR will extract the distfiles directly into WRKSRC
instead of WRKDIR.  In this case, WRKSRC is artificial and is based on
PKGNAME and not DISTNAME, mitigate conflicts with rc files.

PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Exp-run:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:35:26 +00:00
Dmitry Marakasov
e8e7e6da57 - Add shebangfix documentation bits
- Fix tcl_OLD_CMD tk_OLD_CMD

Approved by:	portmgr (bapt)
Differential Revision:	D3939
2015-10-22 13:36:05 +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
Dmitry Marakasov
8cb113d8fa Rewording missed from previous commit 2015-09-28 20:54:21 +00:00
Dmitry Marakasov
5c57225987 Implemented complete support for test target.
You can now `make test' on any port to run test sequence, no-op by default.
If a port defines TEST_TARGET, it'll run sub-make with specified target,
usually `check' or `test', useful if upstream supports that. The port may
instead define custom do-test target, as well as usual satellite targets:

  {pre,do,post}-test, {pre,do,post}-test-OPT, {pre,do,post}-test-OPT-off

`make test' builds and stages port first, so test may use both WRKDIR and
STAGEDIR, and both BUILD and RUN depends are available for test target.
Additionally, TEST_DEPENDS is now properly supported and may be used to
define additional depends specifically for testing.

Framework may define default tests for specific cases. For instance,
perl5.mk and cran.mk already provide default test target on their own.

This commit also converts my ports which have tests to this new framework.

Approved by:	portmgr (bapt)
Differential Revision:	D3680
2015-09-28 17:20:42 +00:00
Baptiste Daroussin
5adc8a9faa Extend @sample to accept arguments
Maintainers can now use @sample sample_file target_file for all cases
that does not fall into the usual @sample something.sample

Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3734
2015-09-26 12:13:23 +00:00
Baptiste Daroussin
3b24535f04 Document @{pre,post}[un]exec in CHANGES 2015-09-26 00:17:08 +00:00
Mathieu Arnold
afae652a2a Make it so that the default Perl is always called perl5.
- Move Perl's man1 files along with its man3 files.
- Move where Perl installs its modules man1 pages.
- Convert the ports installing man1 pages.
- Make different Perl versions installable at the same time.
  Though you should note that only the default version can be used to
  install Perl modules, and the non default Perl versions cannot use the
  modules installed via ports if they contain .so as they are installed
  in a version specific directory.

Reviewed by:	bapt (the Mk bits)
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3542
2015-09-14 12:19:48 +00:00
Mathieu Arnold
9c517d8878 Add generic opt_VARS/opt_VARS_OFF.
OPT1_VARS=  foo=bar baz+=bam

will set FOO to bar and append bam to BAZ if OPT1 is enabled.  <opt>_VARS_OFF
works the same way, if the option is disabled.

Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3410
2015-08-28 12:28:13 +00:00
Raphael Kubo da Costa
63e62f7d7e Document r394572 in CHANGES. 2015-08-18 13:08:09 +00:00
Mathieu Arnold
bfbc1e51b7 Introduce <opt>_IMPLIES and <opt>_PREVENTS to register dependencies, or
conflicts, between options.

PR:		191144
Submitted by:	adamw
Sponsored by:	Absolight
2015-08-18 11:00:57 +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
Mathieu Arnold
fc9ea03981 Introduce target option helpers.
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2944
2015-07-01 12:11:16 +00:00
Baptiste Daroussin
61ef16eebb Document the removal of USE_RCORDER 2015-06-22 19:59:11 +00:00
Mathieu Arnold
70444a23e6 Introduce USE_GITHUB=nodefault to allow fetching additional distfiles
from github, but not the default one.

With hat:	portmgr
Sponsored by:	Absolight
2015-05-29 13:07:33 +00:00
Mathieu Arnold
676e4ffcf4 USE_GITHUB can now fetch multiple distfiles. It uses a grouping feature
similar to MASTER_SITES/PATCH_SITES.

Some helpful variables are provided: WRKSRC_<group> for putting things in the
right place in post-extract, and DISTNAME_<group>/DISTFILE_<group> for use with
EXTRACT_ONLY.

PR:		200483
Differential Revision:	https://reviews.freebsd.org/D2608
Submitted by:	mat
With hat:	portmgr
Exp run by:	antoine
Sponsored by:	Absolight
2015-05-28 16:37:01 +00:00
Antoine Brodin
1b85bc9332 Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10

Differential Revision:	https://reviews.freebsd.org/D2639
Reviewed by:	sunpoet, mva
2015-05-26 16:47:02 +00:00
Mathieu Arnold
cb28a089d6 Remove GH_COMMIT support.
Differential Revision:	https://reviews.freebsd.org/D2606
With hat:	portmgr
Sponsored by:	Absolight
2015-05-21 15:25:40 +00:00
Tijl Coosemans
e81a5e63ab Mark USE_AUTOTOOLS deprecated and remove support for libtoolize.
Approved by:	portmgr (bapt)
2015-04-19 18:16:40 +00:00
Baptiste Daroussin
06f79b66f2 Convert bsd.gnustep.mk to USES=gnustep
Simplify gnustep ports
Hook into the regular ports framework:
- LIB_DEPENDS for library dependencies
- Use regular USE_LDCONFIG

Reuse USES=objc (automatic)
USE_GNUSTEP is now a macro to set the dependencies and build feature needed.
Accepted arguments: back base build gui

Merge deskutils/preferencepanes into deskutils/systempreferences
2015-04-09 07:44:41 +00:00
Baptiste Daroussin
d502021cb9 Document the new USES=waf into CHANGES 2015-04-08 15:08:10 +00:00
Baptiste Daroussin
dd64c3e552 USE_BZIP2 and USE_XZ are not used anymore in the ports tree mark them as
unsupported
2015-04-07 12:13:52 +00:00
Olli Hauer
d0675b2fef - track subversion http module activation change in the correct file
(move entry from CHANGES -> UPDATING)
2015-04-06 20:07:22 +00:00
Baptiste Daroussin
aa757e5ff6 Document recent changes 2015-04-01 14:39:45 +00:00
Olli Hauer
195b91c2e8 - document new subversion httpd module file 2015-03-31 21:23:05 +00:00
Bryan Drewery
8c0aa218c9 Document removal of PTHREAD_LIBS/PTHREAD_CFLAGS 2015-03-26 16:06:03 +00:00
Bryan Drewery
b9673a0c84 Undocument BSDMAKE from r381977 as I have thought of a better way and will
likely revert it.

With hat:	portmgr
2015-03-23 04:08:27 +00:00
Bryan Drewery
b4623773d9 Introduce a BSDMAKE?= /usr/bin/make and use it as the default MAKE_CMD.
With hat:	portmgr
2015-03-23 04:03:00 +00:00