Commit graph

6172 commits

Author SHA1 Message Date
Torsten Zuehlsdorff
04538b6c99 Uses/php.mk: add missing sodium dependency
The issue becomes apparent when trying to build lang/php72-extensions
with sodium checked.

PR:           223811
Submitted by: Daniel Ylitalo <daniel@blodan.se>
Approved by:  ale
2017-12-07 16:40:20 +00:00
Bryan Drewery
15714bc164 Fix 'make -j'.
- Pass MAKEFLAGS down into do-depends properly.
- Remove redundant dependencies, run-depends and lib-depends, from
  targets that already depend on earlier targets that depend on
  the needed targets.

Reported by:	emaste
With hat:	portmgr
2017-12-07 01:51:00 +00:00
Mathieu Arnold
e5eb98236d Add a warning to try and prevent people from mis-using USE_GITHUB.
Sponsored by:	Absolight
2017-12-06 11:55:15 +00:00
Sunpoet Po-Chuan Hsieh
e68441c157 Update BROTLI description
Suggested by:	adamw
2017-12-04 21:30:00 +00:00
Mathieu Arnold
2cd9e57d75 Remove extra .endif.
Reported by:	antoine
Sponsored by:	Absolight
2017-12-04 15:43:36 +00:00
Mathieu Arnold
6063af74e8 Add a USES=python:env, that will not add a dependency on Python.
It has the same effect than setting PYTHON_NO_DEPENDS, but in a more
compact way.

Sponsored by:	Absolight
2017-12-04 15:27:29 +00:00
Mathieu Arnold
e7c64ad660 Add a note about USE_PYTHON=optsuffix being a kludge.
Sponsored by:	Absolight
2017-12-04 11:26:47 +00:00
Mathieu Arnold
c3feeef2c1 Depend on pkgnames and not files, always better.
Sponsored by:	Absolight
2017-12-04 11:17:23 +00:00
Mathieu Arnold
9b3f71316a Deprecate USES=python:2 and USES=python:3
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13291
2017-12-04 11:07:10 +00:00
Mathieu Arnold
c891fd5d24 Correctly fix the Python 3 being the default but in fact not problem.
Sponsored by:	Absolight
2017-12-04 11:07:07 +00:00
Mathieu Arnold
ae164d1dfd Add a WARNING for people trying to do clever but bad things with Python
versions.

Sponsored by:	Absolight
2017-12-04 11:07:04 +00:00
Sunpoet Po-Chuan Hsieh
4af76adde3 Add shared BROTLI description 2017-12-03 20:38:32 +00:00
Dmitry Marakasov
9a7c47672e Fix default python flavor wrt python version
There's a flaw in FLAVOR selection logic which makes python FLAVOR
default to py27 even with DEFAULT_VERSIONS=python=3.6. Fix this and
generate FLAVOR based on PYTHON_DEFAULT, PYTHON2_DEFAULT, PYTHON3_DEFAULT
(in that order) similar to how it's done in other parts of python.mk.
This does not affect FLAVOR in default setup (py27 remains), but
if python default version is modified, it will now properly affect FLAVOR.

Approved by:	portmgr (antoine)
Differential Revision:	D13326
2017-12-03 20:03:09 +00:00
Gerald Pfeifer
b1cc5272ce Remove 4.8 as a documented option for GCC_DEFAULT. Technically nothing
has changed, so it still should work as well (or not) as before, but it's
essentially untested and if anyone needs an older version from the GCC 4.x
era, 4.9 is still available.
2017-12-03 16:19:45 +00:00
Mathieu Arnold
244209f68c Fix build-depends-list and run-depends-list.
Sponsored by:	Absolight
2017-12-01 12:11:58 +00:00
Mathieu Arnold
3d94ff12c5 11.0 is no longer supported.
Sponsored by:	Absolight
2017-12-01 11:54:35 +00:00
Mathieu Arnold
551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00
Mathieu Arnold
471896e0a8 Add various FLAVOR related helpers.
To help with flavored ports, helpers are available.  In these, replace <*>
  with the flavor name.

  *_PKGNAMEPREFIX *_PKGNAMESUFFIX *_PLIST *_DESCR will overwrite the variable.

  *_CONFLICTS *_CONFLICTS_BUILD *_CONFLICTS_INSTALL *_PKG_DEPENDS
  *_EXTRACT_DEPENDS *_PATCH_DEPENDS *_FETCH_DEPENDS *_BUILD_DEPENDS
  *_LIB_DEPENDS *_RUN_DEPENDS *_TEST_DEPENDS will append to the variable.

Reviewed by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12483
2017-11-30 15:33:46 +00:00
Mathieu Arnold
30c4ca5784 Generic FLAVORS work.
- Enable FLAVORS.
- Make make describe flavors aware.
- Add a qa check for unique package names amongst flavors.
- Make MOVEDlint understand flavors.
- Add a bit of sanity check to make sure FLAVORS stay lowercase.
- Various fixes.

Reviewed by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12577
2017-11-30 15:33:29 +00:00
Tobias Kortkamp
5bce04c4a6 bsd.gecko.mk: use ${ECHO_CMD} in post-patch-SNDIO-on
Currently ${ECHO} is used which is problematic when it's set to 'true'
e.g.  when using `make -s`.

PR:		223964
Approved by:	gecko (jbeich)
2017-11-29 13:54:31 +00:00
Tobias Kortkamp
96dff11bed Mk/Uses/cargo.mk: Respect CPUTYPE
C and C++ code can be built targeting newer CPUs if user defined
CPUTYPE in make.conf.  Let's opt-in for Rust as well.

PR:		223939
Submitted by:	jbeich
2017-11-29 11:06:11 +00:00
Jan Beich
c38ed84499 gecko: unbreak aarch64 build for non-empty CPUTYPE
As of Rust 1.22.1 the following CPUTYPEs are supported:
https://github.com/rust-lang/llvm/blob/c7a16bd57c2a/include/llvm/Support/AArch64TargetParser.def#L54-L77
2017-11-29 04:42:33 +00:00
Jan Beich
a62753b206 gecko: respect CPUTYPE for Rust code
After r454995 build may fail if SSE2 is only enabled for C/C++ code as
simd crate expects SSE2 based on MACHINE_CPU.

PR:		223415 223300
Reported by:	vvd@unislabs.com
2017-11-28 12:57:57 +00:00
Jan Beich
d65b2886b1 lang/rust: avoid LLVM targeting SSE2 on i386 by default
This may help ports like textproc/ripgrep to run on old hardware.
Rust itself still requires SSE2 until bootstrap is regenerated.

PR:		223415
Approved by:	rust (dumbbell)
2017-11-27 22:02:29 +00:00
Jan Beich
e46270320f gecko: simplify WRKSRC handling
Requested by:	mat
2017-11-23 22:53:32 +00:00
Pietro Cerutti
d99ac01858 Remove references to Tcl/Tk 8.4 2017-11-23 12:11:41 +00:00
Steve Wills
ff1498f6af lang/ruby2?: make rubygem-* ports reproducible
PR:		223781
exp-run by:	antoine
2017-11-22 13:27:37 +00:00
Jan Beich
78da95113b Oops, back out r454668
BUNDLE_LIBS is used by every XUL app that cannot share libxul.so
2017-11-22 06:28:56 +00:00
Jan Beich
46bcdb5525 gecko: drop GNOMEUI option 2017-11-22 06:25:10 +00:00
Jan Beich
a6962b6218 gecko: drop broken and unmaintained PGO option
Clang PGO isn't supported by the build system yet.
https://bugzilla.mozilla.org/show_bug.cgi?id=1064049

Reported by:	many
PR:		221451
2017-11-22 06:24:59 +00:00
Jan Beich
83fc56bf2f gecko: move BUNDLE_LIBS to www/libxul 2017-11-22 06:24:49 +00:00
Tijl Coosemans
2858adcf38 - Allow users to change the default Fortran compiler via DEFAULT_VERSIONS.
- Rename USES=fortran:gcc to the more appropriate USES=fortran:gfortran.
- Change the options in math/R and math/libRmath so the choice becomes
  flang or default instead of flang or gfortran.  Use default Fortran
  compiler again on amd64.
2017-11-18 13:09:56 +00:00
Tijl Coosemans
8ba225a23c Only link to libflang and libexecinfo as needed. 2017-11-18 11:26:21 +00:00
Jan Beich
415cda44c3 gecko: allow lld as ld on FreeBSD 12.0
PR:		223680
2017-11-16 23:04:25 +00:00
Bryan Drewery
dc656b07fc Follow-up r454266: Sort and remove duplicates for [DE]SELECTED_OPTIONS.
Some ports like graphics/povray-meta do funky things like add the same
option into PORT_OPTIONS twice.  This also avoids a new leading blank
space in some cases.

With hat:	portmgr
2017-11-16 19:41:20 +00:00
Torsten Zuehlsdorff
687591dd75 Add PHP 7.2 RC6
Notable changes:
- mcrypt module was removed
- sodium module was added
- sybase_ct artifacts removed

Also many PECL ports will not work with this version
since some files got renamed.

Reviewed by:           mat, ale, Rainer Duffner <rainer@ultra-secure.de>
Differential Revision: https://reviews.freebsd.org/D12980
2017-11-16 10:48:48 +00:00
Tobias C. Berner
d0d2791306 Update KDE Frameworks to 5.40.0
* update to 5.40.0
* unreleated cleanups:
  - unify use of DISTVERSION
  - remove created by line

PR:		223602
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D12966
2017-11-16 05:59:35 +00:00
Bryan Drewery
44ae07a5c0 Fix [DE]SELECTED_OPTIONS to lazily evaluate as late as possible.
If a port modifies OPTIONS_UNSET after including bsd.port.options.mk
then these values were wrong even though all of 'showconfig',
'pretty-print-config', and the package generated all had the expected
options.

Only Poudriere and synth use these variables for incremental build checks.

Reviewed by:	sjg, bapt
Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D13092
2017-11-15 19:13:50 +00:00
Tobias Kortkamp
9b90a3524f Add shared FISH description 2017-11-15 12:40:07 +00:00
Jan Beich
eb864e519d www/firefox: update to 57.0 (marketed as "Firefox Quantum")
Not a MFH candidate due to POLA violation per redesigned UI, broken
legacy addons and auto-reviewed new addons.

Changes:	https://www.mozilla.org/firefox/57.0/releasenotes/
PR:		222693
Tested by:	pi, tobik, TrueOS
2017-11-14 19:04:44 +00:00
Jan Beich
d87a45b8de gecko: configure is part of build since r373830 2017-11-13 22:21:47 +00:00
Joseph Mingrone
d2abf95cc9 Ensure .CURDIR contains an absolute path without a trailing slash.
Problems can occur when PORTSDIR is a symbolic link, or e.g.,

make -C /usr/ports/ search key='!*'

See also:

r450002
https://lists.freebsd.org/pipermail/freebsd-current/2017-November/067386.html

Submitted by:	 rum1cro@yandex.ru
Reported by:	 sergey.dyatko@gmail.com
Approved by:	 portmgr (bdrewery)
Differential Revision:	https://reviews.freebsd.org/D13019
2017-11-09 21:48:58 +00:00
Mathieu Arnold
f1f2ed2d14 Remove the php extensions pkg-message, it is more annoying than not.
Approved by:	bapt, adamw
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13001
2017-11-09 18:05:11 +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
Jan Beich
32803c926f www/firefox: always use specified libclang version
MFH:		2017Q4
2017-11-04 11:33:52 +00:00
Jan Beich
a594b0fc91 www/firefox: move llvm* dep into Mk/bsd.gecko.mk
MFH:		2017Q4
2017-11-04 11:33:37 +00:00
Kyle Evans
c465fe25c2 Mk/bsd.java.mk: Strict JAVA_{VERSION,VENDOR,ERROR} validation
Currently, validation of JAVA_{VERSION,VENDOR,ERROR} does not constitute an
error and make(1) will happily continue, potentially doing the wrong thing.
Adjust the behavior as follows:

- Only validate each var if it's defined
- Remain verbose about what error exists and what's expected
- Fail the build if validation fails

bsd.java.mk exhibited this behavior up until r217132 inadvertently changed
it to be non-fatal.

PR:		220737
Approved by:	portmgr (bdrewery)
2017-11-04 01:16:31 +00:00
Tobias C. Berner
b2175efbe7 Fix qt5 builds on some arm architectures
* 222612: www/qt5-webkit: for armv6/v7: The cacheFlush support is missing on this platform
* 216816: devel/qt5: In arch.test, use CXXFLAGS from make environment

PR:		222612,216816, 223289
Exp-run by:	antoine
Submitted by:	mmel, mikael.urankar@gmail.com
Reported by:	Mark Millard <markmi@dsl-only.net>, mmel
Reviewed by:	mmel, mikael.urankar@gmail.com
Differential Revision:	https://reviews.freebsd.org/D12816
2017-11-03 18:06:15 +00:00
Mathieu Arnold
d45d670c33 Add a check for options names.
They must be all uppercase, so that they do not conflict with flavors
that are lowercase.

Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12810
2017-11-02 15:16:31 +00:00
Tijl Coosemans
418faa5daf Merge Linux ncurses-base into linux_base. It's needed by ncurses-libs. 2017-11-01 13:21:11 +00:00