locale set by the user. Add LANG=C and LC_ALL=C at the beginning of
bsd.port.mk and export them so all commands are executed with the C locale.
LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3)
as default value for LC_* variables, so normally it isn't used when LC_ALL
is set, but there's code out there that looks at LANG directly so it's safer
to set it as well. The only commands not captured by this are !=
assignments before any inclusion of bsd.port.*mk.
Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to
CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a
different locale (e.g. USE_LOCALE=en_US.UTF-8).
PR: 215882
Exp-run by: antoine
Approved by: portmgr (antoine)
On FreeBSD 9, the 'Requires.private: zlib' line in tcl.pc causes breakage in
ports that use pkg-config tcl to build their cflags, libraries, etc. This
commit fixes at least the devel/libdistance build on 9; it may fix others, too.
Approved by: gahr
Differential Revision: https://reviews.freebsd.org/D4359
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
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
were set based on WRKSRC instead of PREFIX.
This mainly affected TEA-based extensions that source tclConfig.sh /
tkConfig.sh to set important variables. An example is TCL_SRC_DIR, which
is used to locate Tcl/Tk private header files such as tclUnixPort.h or
tkUnixPort.h. This variable was previously set to WRKSRC, which caused
ports to need additional tweaks to CFLAGS or CONFIGURE_ARGS.
It should now be possible to build TEA-based extensions by specifying only
the CONFIGURE_ARGS --with-tcl=${TCL_LIBDIR} / --with-tk=${TK_LIBDIR}.
Feature safe: yes
Approved by: bapt (portmgr)
Release notes: http://www.tcl.tk/software/tcltk/8.6.html
- Get rid of -thread slaves ports: threads are now enabled by
default and can be OPTIONally disabled. This applies to:
* lang/tcl84
* lang/tcl85
* lang/tcl86
* x11-toolkits/tk84
* x11-toolkits/tk85
* x11-toolkits/tk86
- Get rid of tcl-modules slave port: modules are now installed by default and
can be OPTIONally disabled. This applies to:
* lang/tcl85
* lang/tcl86
- Fix conflicts between man pages of different Tcl/Tk versions, by adding a
suffix (tcl84, tcl85, tcl86, tk84, tk85, and tk86).
Reviewed by: bf, crees
Approved by: bapt (portmgr, after partial exp-run)