Commit graph

36 commits

Author SHA1 Message Date
Tijl Coosemans
02f27a83b4 The output of tools like awk, date, sort, tr,... depends on the current
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)
2017-01-18 13:20:31 +00:00
Steve Wills
7f220fd3ff Rename PKG_CMD to PKG_REGISTER
Submitted by:	bapt
Differential Revision:	https://reviews.freebsd.org/D8677
2016-12-01 21:29:04 +00:00
Ed Maste
e3596a7959 Introduce READELF?= /usr/bin/readelf
In many cases where objdump is currently used, readelf is a better
choice. Introduce a variable for ports that wish to use it.

Reviewed by:	bapt
Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D7761
2016-09-02 15:54:20 +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
Baptiste Daroussin
6d229bbfae Fix typo 2014-11-22 01:48:44 +00:00
Baptiste Daroussin
5dfa80da78 Define SOELIM
If base have the new soeliminate(1) then use it first otherwise fallback on
groff's soelim
2014-11-22 01:41:58 +00:00
Baptiste Daroussin
d96aa38d95 Remove support for pkg_install
Merge back bsd.pkgng.mk into bsd.port.mk
Add a note about @stopdaemon not being supported anymore

With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D693
2014-09-01 13:03:25 +00:00
Bryan Drewery
efde9543a4 - Always pass '-f' with ${RM}. This fixes many ports when building as a user
and not root. They were asking for confirmation.

Reported by:	jhb
Phabric:	D111
Reviewed by:	bapt, antoine
With hat:	portmgr
2014-07-20 18:56:11 +00:00
Baptiste Daroussin
c87b481f98 Revert a commit that should not have crept in 2014-06-18 12:35:11 +00:00
Baptiste Daroussin
36fa7f4d66 tabspace: 8 2014-06-18 07:28:44 +00:00
Alex Kozlov
98052ca1a2 - Use /usr/bin/unzip for zip files extraction (part 1)
PR:	ports/188419
Exp-run:	bdrewery
Approved by:	portmgr (bapt)
2014-05-22 09:51:35 +00:00
Baptiste Daroussin
c7617a10fb xz being included in all supported base system, remove code using version
from ports
while here properly define XSCAT is is used to allow xzed patches.

PR:		ports/185725
Submitted by:	naddy
2014-01-13 07:28:31 +00:00
Tijl Coosemans
f86cad0ce3 Two imake related changes:
1) Move -a from XMKMF command variable to a new XMKMF_ARGS variable.
   For ports that don't need -a introduce USES=imake:notall.
   This way ports no longer have to redefine XMKMF.

2) xmkmf -a runs imake with the flags in IMAKECPPFLAGS as extra arguments
   to set CPP, CC and CXX.  This creates the top Makefile, and then xmkmf
   runs make Makefiles.  This Makefiles target runs imake for each
   subdirectory but these imake invocations did not have the flags from
   IMAKECPPFLAGS so the resulting makefiles used the wrong C preprocessor
   when clang is used (/usr/bin/cpp instead of /usr/local/bin/tradcpp).
   Instead of letting xmkmf pass IMAKECPPFLAGS from the environment to
   imake let imake handle IMAKECPPFLAGS itself just like it handles
   IMAKEINCLUDE.

   This exposed configure errors in x11-clocks/mouseclock and x11-wm/fvwm.

Approved by:	portmgr (bapt)
2013-09-02 13:26:34 +00:00
Baptiste Daroussin
07b24b6cf9 Define MAKE_CMD in post.mk to allow anything to overwrite it 2013-07-30 06:32:01 +00:00
Baptiste Daroussin
b3a72c888c Define a new MAKE_CMD command 2013-07-30 05:32:11 +00:00
Baptiste Daroussin
33b428793b Readd the YACC command definition removed by mistake 2013-06-29 09:16:29 +00:00
Baptiste Daroussin
e1d25bc997 This time USE_IMAKE is totally gone 2013-06-29 09:01:57 +00:00
Martin Wilke
792ff477bc - Add PS_CMD
PR:		176118
Submitted by:	zi
Tested via:	ph-w exp-run
2013-05-31 16:09:54 +00:00
Bryan Drewery
87b7c86a74 - Use pkg-static as PKG_BIN which is safer during upgrades if
libpkg.so disappears.

With hat:	portmgr
Reviewed by:	bapt
2013-05-30 14:42:59 +00:00
Baptiste Daroussin
5718fc3071 Make the ports tree use dialog4ports for make config.
dialog4ports has been contributed by Ilya A. Arkhipov. It extends dialog(3) to
provide a mixed dialog widget allowing to represent all features provide by the
new options framework.

This allows the ports tree to not anymore depends on dialog(1) from base to configure
the options and be able to improve if needed on all supported plateforms at the same time.

Exp-run by:	miwi
2013-03-19 09:27:52 +00:00
Martin Wilke
0f92912af4 - Add new knob USE_LHA [1]
- Convert few ports to USE_LHA [1]
- Revert r303619 since CONFIGURE_ENV already sets CPPFLAGS and LDFLAGS by default. [2]

PR:		176187 [1]
		174790 [2]
Submitted by:	Christoph Mallon <christoph.mallon@gmx.de> [1]
		Gerald Pfeifer <gerald@pfeifer.com> [2]
2013-03-07 17:08:13 +00:00
Baptiste Daroussin
a68af10365 Fix typo
Submitted by:	John Hein <jhein@symmetricom.com>
Feature safe:	yes
2012-10-12 07:47:00 +00:00
Baptiste Daroussin
3fe25b5e4e Add a part forgotten in previous commit concerning switching to pkgng 2012-10-10 13:12:17 +00:00
Baptiste Daroussin
3cb75a18a9 - add STAT to bsd.commands.mk
- use ${STAT} -f \"%z\" in make makesum to calculate size
- speed up USE_PKGCONFIG by using a more efficient syntax [1]
  and test in the order it is most expected to appear: "yes/build"
  first, "both" second, "run being the last one.

Reported by:	dougb [1]
Exp-Run by:	beat
2012-10-09 17:18:43 +00:00
Mark Linimon
eeed9bb04d Add JOT command.
PR:		ports/159725
Submitted by:	crees
2012-09-03 20:42:35 +00:00
Martin Wilke
61d8acdb49 - Remove emacs mode, -*- mode: ...; -*- [1]
- Comments for BUILD_ and RUN_DEPENDS fail to mention alternate means to specify dependencie [2]
- Fix make reinstall [3]
- Trivial comment change for PORTDATA [4]

PR:		151954 [1]
		161314 [2]
		167085 [3]
		167465 [4]
Submitted by:	Anonymous <swell.k@gmail.com> [1]
		dougb@ and Chris Rees <utisoft@gmail.com> [2]
		Garrett Cooper <yanegomi@gmail.com> [3]
		"Bryan Drewery" <bryan@shatow.net> [4]
Tested via:	phw
2012-05-23 08:17:49 +00:00
Baptiste Daroussin
7d51693e8c - only include bsd.pkgng.mk once [1]
- only read bsd.pkgng.mk in post.mk [1]
- move the command definition to bsd.command.mk [1]
- fix check-vulnerable [2]

Submitted by:	avilla [1], rene [2]
2012-02-22 17:34:47 +00:00
Chris Rees
304843ed09 Correct comment advising how to use sudo as SU_CMD; doesn't work unless
environment is preserved

PR:		ports/162273
Submitted by:	crees
Approved by:	portmgr (linimon)
2011-12-23 16:19:31 +00:00
Florent Thoumie
c406a95c53 Latest round of infrastructure changes.
- bsd.port.mk: add INDEX_PORTS, to support INDEX creation for a subset of the ports tree [1]
- bsd.port.mk: call target "install-rc-script" before "post-install" [2]
- [patch] ports/Mk bsd.port.mk order if groups/users are created by package [3]
- [bsd.port.mk] [patch] reaper of the dead: md5 has been in /sbin for a while [4]
- [bsd.port.mk] [patch] remove support for pre 7.x systems (b.*.m) [5]
- [patch] [bsd.port.mk] reaper of the dead: are three variable defintions needed [6]

PR:		ports/156575 [1],
		ports/139116 [2],
		ports/152498 [3],
		ports/155983 [4],
		ports/155510 [5],
		ports/156340 [6]
Submitted by:	Florent Thoumie <flz@xbsd.org> [1],
		Sergey Skvortsov <skv@freebsd.org> [2],
		Olli Hauer <ohauer@FreeBSD.org> [3],
		Eitan Adler <lists@eitanadler.com> [4],
		Eitan Adler <lists@eitanadler.com> [5],
		Eitan Adler <lists@eitanadler.com> [6]
2011-05-04 22:33:13 +00:00
Max Khon
d9ca8800cf Document how to use "sudo" instead of "su" in SU_CMD.
Approved by:	pav
2010-11-08 04:47:44 +00:00
Pav Lucistnik
4a4e54a80a - Fix plist leftovers when using LICENSE framework and having @cwd command in
plist

PR:		ports/147296
Submitted by:	beat

- Provide end-user DISABLE_LICENSES knob to disable licensing framework

PR:		ports/149070
Submitted by:	amdmi3

- Include bsd.gnome.mk when INSTALLS_ICONS is defined

PR:		ports/148051
Submitted by:	amdmi3

- Disable xz memory limit to fix port builds on low-memory systems

PR:		ports/148250
Submitted by:	Warren Block <wblock@wonkity.com>

- Remove compatibility shim for 6.3-RELEASE and older in describe target

PR:		ports/146067
Submitted by:	Alex Kozlov <spam@rm-rf.kiev.ua>

- Remove INSTALLS_SHLIB

PR:		ports/146351
Submitted by:	Alex Kozlov <spam@rm-rf.kiev.ua>

- Remove last trace of APACHE_COMPAT

PR:		ports/147114
Submitted by:	pgollucci

- Allow ports to override _MAKE_JOBS

PR:		ports/148754
Submitted by:	Anonymous <swell.k@gmail.com>

- Fixes to comments block

PR:		ports/135649, ports/148190
Submitted by:	pgollucci, gcooper
2010-08-20 12:15:02 +00:00
Pav Lucistnik
fe337e0489 - Introduce a new USE_XZ knob that handles lzma/xz compressed distfiles
- Convert a bunch of ports to use it

PR:		ports/146329
Submitted by:	mm
With hat:	portmgr
2010-06-04 08:09:20 +00:00
Martin Wilke
0a1e65e421 - Move pkg_install commands detection to bsd.commands.mk
PR:		135663
    Submitted:	Yuri Pankov <yuri.pankov@gmail.com>
  - Add default FLEX command to bsd.commands.mk
    PR:		137026
    Submitted:	gahr@

Tested by:	pointyhat exp-build run
2009-08-03 15:36:58 +00:00
Pav Lucistnik
a616189c8c Support @rmtry in pkg-plist, analogous to @dirrmtry but for single file rm.
PR:		ports/116219
Submitted by:	edwin

Make USE_DISPLAY more general: set up virtual X server when USE_DISPLAY is
defined and no DISPLAY variable is in environment; pass DISPLAY value in
CONFIGURE_ENV and MAKE_ENV.

PR:		ports/116244
Submitted by:	edwin

Define ${PW}.

PR:		ports/119821
Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>

Move SHA256, MD5, GMAKE and XMKMF to bsd.commands.mk.

PR:		ports/119879
Submitted by:	edwin

Fix a build failure for ports that define their own MTREE File.

PR:		ports/120200
Submitted by:	dinoex

Don't recreate mtree symlinks if they are already present.

PR:		ports/121681
Submitted by:	sobomax

Fix LIB_DEPENDS for libraries whose name contains plus sign. Both intuitive and
old escaped syntax works.

PR:		ports/121741 (based on)
Submitted by:	fjoe

Disable post-install security checks if DISABLE_SECURITY_CHECK variable is
defined.

PR:		ports/122224
Submitted by:	Bjoern Koenig <bkoenig@alpha-tierchen.de>

Remove versioned Tcl/Tk categories.

PR:		ports/122622
Submitted by:	pav
2008-04-14 16:46:41 +00:00
Pav Lucistnik
851f58e69f - Add UNMAKESELF_CMD (fixing USE_MAKESELF feature)
PR:		ports/118749
Submitted by:	alepulver
2008-03-11 23:31:29 +00:00
Gabor Kovesdan
4c9cd257fd - Extract command variable definitions from bsd.port.mk, they are now stored in
bsd.commands.mk and can be easily reused within the infrastructure.
- Revert old DESTDIR implementation.
- Add a new, fully chrooted DESTDIR implementation as bsd.destdir.mk.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:37:24 +00:00