aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.commands.mk
Commit message (Collapse)AuthorAgeFilesLines
* config: switch from dialog4ports to portconfigBaptiste Daroussin2023-10-101-1/+1
| | | | | | | | | | | | dialog4ports is using libdialog which is being decommissioned from base replaced by bsddialog. We cannot switch to depending on devel/cdialog because it build depends on too many things, on the other hand the author of bsddialog made portconfig as a drop-in replacement for dialog4ports, it only build depends on devel/bsddialog (we use the version in port to be sure to have the right version on all supported versions of the ports tree) Reported by: Herbert J. Skuhra" <herbert@gojira.at>
* dialog: fallback on bsddialogBaptiste Daroussin2023-10-101-0/+4
| | | | | dialog(1) is being replaced by bsddialog(1) in base, prepare the the ports tree to deal with it.
* SMP: Use nproc(1) instead of sysctl kern.smp.cpusMateusz Guzik2023-02-161-0/+1
| | | | | | | | | | | | The former respects cpuset, while the latter does not. $ cpuset -l 1 -- make -V MAKE_JOBS_NUMBER 1 As nproc is newly introduced, keep the previous variant as a fallback for the time being. Differential Revision: https://reviews.freebsd.org/D38457
* cleanup: remove 'Created by' linesTobias C. Berner2022-07-201-1/+0
| | | | | | | | | | | | | | | | A big Thank You to the original contributors of these ports: * Akinori MUSHA <knu@FreeBSD.org> * Alejandro Pulver <alepulver@FreeBSD.org> * Edwin Groothuis <edwin@freebsd.org> * Ernst de Haan <znerd@FreeBSD.org> * Florent Thoumie <flz@FreeBSD.org> * Gabor Kovesdan <gabor@FreeBSD.org> * Mark Linimon <linimon@FreeBSD.org> * Shaun Amott <shaun@inerd.com> With hat: portmgr Reported by: mat
* Mk/Uses: Add elfctlJoseph Mingrone2022-02-181-0/+1
| | | | | | | | | | | | | | Add USES=elfctl to change an ELF binary's feature control note. Example: USES= elfctl ELF_FEATURES= +noaslr,wxneeded:foo Reported by: emaste Approved by: brooks, tcberner (portmgr) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34125
* framework: Remove $FreeBSD$Mathieu Arnold2021-04-061-2/+0
| | | | Where appropriate fiddle with a few other things.
* Remove debuggingBryan Drewery2018-02-201-1/+0
| | | | Notes: svn path=/head/; revision=462459
* Rework r462455: soeliminate never made it to a release, was only in 11-CURRENT.Bryan Drewery2018-02-201-8/+2
| | | | | | | | Reported by: antoine Approved by: portmgr (implicit) Notes: svn path=/head/; revision=462458
* Avoid fstat(/usr/bin/soeliminate) for every port when building INDEX.Bryan Drewery2018-02-201-5/+8
| | | | | | | Approved by: portmgr (implicit) Notes: svn path=/head/; revision=462455
* Add a RLN command (relative ln), it can be used to create relativeMathieu Arnold2017-04-201-0/+1
| | | | | | | | | | | | | | | | | | | | | symlinks using install's relative symlinks feature. If you were going through hoops doing things like this to get relative symlinks: ${LN} -sf ../lib/some/thing ${STAGEDIR}${PREFIX}/bin You can now use full paths for both the source and destination: ${RLN} ${STAGEDIR}${PREFIX}/libexec/some/thing ${STAGEDIR}${PREFIX}/bin One caveat is that the source must exist when this is run, because install needs to run realpath(1) on it. Sponsored by: Absolight Notes: svn path=/head/; revision=438938
* Use dedicated macro FMT_80 instead of ${FMT} 75 79 magical constantsDmitry Marakasov2017-04-111-0/+1
| | | | | | | | | Suggested by: mat Approved by: portmgr (mat) Differential Revision: D10342 Notes: svn path=/head/; revision=438265
* The output of tools like awk, date, sort, tr,... depends on the currentTijl Coosemans2017-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=431796
* Rename PKG_CMD to PKG_REGISTERSteve Wills2016-12-011-1/+1
| | | | | | | | Submitted by: bapt Differential Revision: https://reviews.freebsd.org/D8677 Notes: svn path=/head/; revision=427523
* Introduce READELF?= /usr/bin/readelfEd Maste2016-09-021-0/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=421268
* Introduce a BSDMAKE?= /usr/bin/make and use it as the default MAKE_CMD.Bryan Drewery2015-03-231-0/+1
| | | | | | | With hat: portmgr Notes: svn path=/head/; revision=381977
* Fix typoBaptiste Daroussin2014-11-221-1/+1
| | | | Notes: svn path=/head/; revision=373028
* Define SOELIMBaptiste Daroussin2014-11-221-0/+5
| | | | | | | | If base have the new soeliminate(1) then use it first otherwise fallback on groff's soelim Notes: svn path=/head/; revision=373025
* Remove support for pkg_installBaptiste Daroussin2014-09-011-16/+0
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=366875
* - Always pass '-f' with ${RM}. This fixes many ports when building as a userBryan Drewery2014-07-201-1/+1
| | | | | | | | | | | | and not root. They were asking for confirmation. Reported by: jhb Phabric: D111 Reviewed by: bapt, antoine With hat: portmgr Notes: svn path=/head/; revision=362347
* Revert a commit that should not have crept inBaptiste Daroussin2014-06-181-1/+1
| | | | Notes: svn path=/head/; revision=358268
* tabspace: 8Baptiste Daroussin2014-06-181-97/+94
| | | | Notes: svn path=/head/; revision=358219
* - Use /usr/bin/unzip for zip files extraction (part 1)Alex Kozlov2014-05-221-0/+1
| | | | | | | | | PR: ports/188419 Exp-run: bdrewery Approved by: portmgr (bapt) Notes: svn path=/head/; revision=354818
* xz being included in all supported base system, remove code using versionBaptiste Daroussin2014-01-131-4/+1
| | | | | | | | | | | from ports while here properly define XSCAT is is used to allow xzed patches. PR: ports/185725 Submitted by: naddy Notes: svn path=/head/; revision=339573
* Two imake related changes:Tijl Coosemans2013-09-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=325992
* Define MAKE_CMD in post.mk to allow anything to overwrite itBaptiste Daroussin2013-07-301-1/+0
| | | | Notes: svn path=/head/; revision=323942
* Define a new MAKE_CMD commandBaptiste Daroussin2013-07-301-0/+1
| | | | Notes: svn path=/head/; revision=323938
* Readd the YACC command definition removed by mistakeBaptiste Daroussin2013-06-291-0/+1
| | | | Notes: svn path=/head/; revision=322033
* This time USE_IMAKE is totally goneBaptiste Daroussin2013-06-291-1/+0
| | | | Notes: svn path=/head/; revision=322032
* - Add PS_CMDMartin Wilke2013-05-311-0/+1
| | | | | | | | | PR: 176118 Submitted by: zi Tested via: ph-w exp-run Notes: svn path=/head/; revision=319530
* - Use pkg-static as PKG_BIN which is safer during upgrades ifBryan Drewery2013-05-301-1/+1
| | | | | | | | | | libpkg.so disappears. With hat: portmgr Reviewed by: bapt Notes: svn path=/head/; revision=319431
* Make the ports tree use dialog4ports for make config.Baptiste Daroussin2013-03-191-0/+1
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=314628
* - Add new knob USE_LHA [1]Martin Wilke2013-03-071-0/+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] Notes: svn path=/head/; revision=313600
* Fix typoBaptiste Daroussin2012-10-121-1/+1
| | | | | | | | Submitted by: John Hein <jhein@symmetricom.com> Feature safe: yes Notes: svn path=/head/; revision=305763
* Add a part forgotten in previous commit concerning switching to pkgngBaptiste Daroussin2012-10-101-0/+2
| | | | Notes: svn path=/head/; revision=305658
* - add STAT to bsd.commands.mkBaptiste Daroussin2012-10-091-0/+1
| | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=305595
* Add JOT command.Mark Linimon2012-09-031-0/+1
| | | | | | | | PR: ports/159725 Submitted by: crees Notes: svn path=/head/; revision=303618
* - Remove emacs mode, -*- mode: ...; -*- [1]Martin Wilke2012-05-231-1/+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 Notes: svn path=/head/; revision=297274
* - only include bsd.pkgng.mk once [1]Baptiste Daroussin2012-02-221-0/+11
| | | | | | | | | | | - 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] Notes: svn path=/head/; revision=292069
* Correct comment advising how to use sudo as SU_CMD; doesn't work unlessChris Rees2011-12-231-1/+1
| | | | | | | | | | | environment is preserved PR: ports/162273 Submitted by: crees Approved by: portmgr (linimon) Notes: svn path=/head/; revision=287935
* Latest round of infrastructure changes.Florent Thoumie2011-05-041-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | - 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] Notes: svn path=/head/; revision=273640
* Document how to use "sudo" instead of "su" in SU_CMD.Max Khon2010-11-081-0/+2
| | | | | | | Approved by: pav Notes: svn path=/head/; revision=264220
* - Fix plist leftovers when using LICENSE framework and having @cwd command inPav Lucistnik2010-08-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=259629
* - Introduce a new USE_XZ knob that handles lzma/xz compressed distfilesPav Lucistnik2010-06-041-0/+6
| | | | | | | | | | | - Convert a bunch of ports to use it PR: ports/146329 Submitted by: mm With hat: portmgr Notes: svn path=/head/; revision=255708
* - Move pkg_install commands detection to bsd.commands.mkMartin Wilke2009-08-031-0/+15
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=238833
* Support @rmtry in pkg-plist, analogous to @dirrmtry but for single file rm.Pav Lucistnik2008-04-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=211254
* - Add UNMAKESELF_CMD (fixing USE_MAKESELF feature)Pav Lucistnik2008-03-111-0/+1
| | | | | | | | PR: ports/118749 Submitted by: alepulver Notes: svn path=/head/; revision=208859
* - Extract command variable definitions from bsd.port.mk, they are now stored inGabor Kovesdan2007-08-041-0/+99
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) Notes: svn path=/head/; revision=197074