Commit graph

640 commits

Author SHA1 Message Date
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
Sergey Skvortsov
c82c63a794 Introduce Perl 5.12.1
Acknowledgements:	kuriyama
2010-07-15 14:48:51 +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
Pav Lucistnik
154464c090 - Fix typo in openal section
PR:		ports/147426
Submitted by:	Andrius Morkunas <hinokind@gmail.com>
2010-06-03 11:41:52 +00:00
Pav Lucistnik
d338afe891 - Rework "missing" target to invoke pkg_info once, running pkg_info -O for each
dependency was very time consuming

PR:		ports/146829
Submitted by:	Yuri Pankov <yuri.pankov@gmail.com>
2010-06-02 11:40:48 +00:00
Alejandro Pulver
af3ccd0db3 - Add ports license framework, from GSoc 2008/2009.
- Feel free to populate bsd.licenses.db.mk and adjust the variables:
  NO_LICENSES_INSTALL and NO_LICENSES_DIALOGS (default to off).
- For more information see http://wiki.freebsd.org/PortsLicenseInfrastructure

Reviewed by:	erwin
2010-05-25 00:25:02 +00:00
Pav Lucistnik
ef3f64b5f7 - Restore USE_DISPLAY functionality on xorg-7.5 world 2010-05-12 19:57:57 +00:00
Pietro Cerutti
805405e396 - Add glew to the list of supported USE_GL variables
- Patch ports depending on GLEW directly

Approved by:	portmgr (pav)
2010-04-27 21:58:27 +00:00
Pav Lucistnik
a1ca944f48 - Desupport RC_SUBR and RC_SUBR_SUFFIX macros, they have been replaced with
literal "/etc/rc.subr" and "" values.

PR:		ports/145092
Submitted by:	dougb
2010-04-16 07:18:28 +00:00
Sergey Skvortsov
d899229922 Change default Perl version to 5.10.
Approved by:	portmgr (pav)
2010-02-05 21:18:15 +00:00
Pav Lucistnik
14ac881764 - Introduce USE_OPENAL variable for OpenAL consumers
- Switch to openal-soft as a default OpenAL implementation

PR:		ports/142123
Submitted by:	mva
Tested by:	pointyhat exp-run
Approved by:	portmgr (hat)
2010-01-25 19:15:18 +00:00
Pav Lucistnik
4274e37e05 - Use full path in depobj for archivers/unzip when USE_ZIP variable is set
9-CURRENT introduced unzip command to the base system.  Unfortunately it is
  not fully compatible with the archivers/unzip implementation and non-trivial
  amount of ports fail to build when using it.  Thus we will keep using
  archivers/unzip for unzipping source in Ports Collection until someone
  volunteer to fix all individual ports.  Two most common problems with base
  unzip are:
  * extracting files without +x flag (some ports rely to execute unzipped
    configure scripts, for example)
  * different semantics of CR/LF conversion

  Error logs of failed port builds with in-base unzip can be made available on
  request to portmgr@.

With hat:	portmgr
2010-01-07 15:55:10 +00:00
Martin Wilke
8ca9f0d689 - Convert NOMANCOMPRESS to NO_MANCOMPRESS to sync with src
PR:	ports/136065 ports/127469
Submitted by:	N.J. Mann <njm@njm.me.uk> and Aldis Berjoza <killasmurf86@gmail.com>

- Early identify port CONFLICTS

PR:	137855
Submitted by:		Piotr Smyrak <smyru@heron.pl>

- Add --no-same-permissions to the EXTRACT_AFTER_ARGS command.

Tijl Coosemans has been reported an issue that when root is extracting from the
tarball, and the tarball contains world writable files
(sysutils/policykit as an example), there is a chance that the files
gets changed by malicious third parties right after the extraction,
which makes it possible to inject code into the package thus compromise
the system.

Submitted by:	Tijl Coosemans <tijl@coosemans.org> Xin LI (delphij@)

- Fix some whitespaces

Tested with:	exp-run
2009-12-29 10:25:55 +00:00
Pav Lucistnik
2ae03d48e7 - Terminate support for X11BASE having different value from LOCALBASE
PR:		ports/122341
Submitted by:	flz
2009-12-18 14:28:46 +00:00
Pav Lucistnik
8251fc590b - Correct FORCE_MAKE_JOBS warning which could be incorrectly printed for
MAKE_JOBS_SAFE marked ports

PR:		ports/140635
Submitted by:	Andrius Morkunas <hinokind@gmail.com>
Tested by:	pointyhat exp-run
2009-11-25 22:02:29 +00:00
Christian Weisgerber
64fe7233ca Format a few comment lines for ts=4 and <80 columns.
Feature safe:	yes
2009-09-21 19:13:51 +00:00
Florent Thoumie
897af990f1 - Introduce new GNU_CONFIGURE_PREFIX to override default --prefix value
passed to configure when GNU_CONFIGURE is set. [1]
- Few changes to the new USERS/GROUPS variables (users/groups are created
earlier, so they're available in do-install; creates homedir when
it's not /var/empty or /nonexistent; set login class if specified).

PR:		ports/67436 [1]
Submitted by:	(hrs, self) [1]
Feature safe:	yes
2009-09-17 12:24:09 +00:00
Florent Thoumie
80ce349ead Add support to create users and groups from information stored in UIDs/GIDs
files. Users and groups won't be deleted at deinstall time as we're lacking
a refcount to know if any port is using them.

Also convert a few ports while I'm here.

PR:		ports/108514
Submitted by:	mm, self
2009-09-06 21:18:50 +00:00
Martin Wilke
abdb1ddb8d - bsd.port.mk - Remove ${INDEXDIR}/${INDEXFILE}.bz2 after fetchindex is being run
PR:		117178
	Submitted by:	krion

 - Fix the problem usage MASTER_SITE_SUBDIR without /
 	PR:		131452
	Submitted by:	osa

Tested:		pointyhat exp-run
2009-08-22 19:32:48 +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
Boris Samorodov
d937bad880 Welcome new defaults for linux ports!
The default is switched for OSVERSION >= 800076 (when the last known
issue was fixed at the base system). From now the default linux
base port is linux_base-f10. Default linux infrastrucure ports
are linux-f10-*.

HEADSUP to current@ is comming.

Exp-run by:	portmgr (pav)
2009-06-26 17:03:48 +00:00
Erwin Lansing
fb967c21c1 Pass TMPDIR on to configure and make environments.
PR:		132407
Submitted by:	Eygene Ryabinkin <rea-fbsd@codelabs.ru>
2009-06-11 09:09:29 +00:00
Dmitry Marakasov
33e3d901d4 Convert most of remaining ports that depend on xorg-libraries to
modular xorg.

- supply corresponding USE_XORG for all imake-using ports that need it
- USE_IMAKE no longer implies USE_XLIB in absence of USE_XORG
- retire USE_X_PREFIX which is not really used anywhere after the
  above change
- a few minor nits like whitespace and SF macro

Tested by:	2 tinderbox runs by pav
Approved by:	portmgr (pav)
2009-06-09 15:33:28 +00:00
Sergey Skvortsov
4761891bba Remove expired port lang/perl5.6 2009-06-08 14:56:32 +00:00
Pav Lucistnik
ab5c91839f - Add USE_CSTD flag that adds --std=value to CFLAGS
PR:		ports/135083
Submitted by:	ed

- Separate MAKE_JOBS_NUMBER from _MAKE_JOBS, so it can be used in
  individual ports

PR:		ports/134977
Submitted by:	David Naylor <naylor.b.david@gmail.com>
2009-06-03 21:50:50 +00:00
Jose Alonso Cardenas Marquez
492605858b - Add support to defined USE_FPC after of bsd.port.pre.mk include 2009-05-22 21:57:33 +00:00
Pav Lucistnik
a0f6c077ab - Add a code to drop bsd.port.options.mk into /usr/share/mk if it's missing on
the system (typically FreeBSD prior to 6.3).  Allows to continue if the write
  fails.  This should allow us to start using it widely in the ports tree
  (please not just yet, wait for a heads-up, in case this change needs to be
  backed out.)
2009-05-11 17:35:18 +00:00
Pav Lucistnik
c6aaa555d5 - Don't check if pkg_tools support conflicts, they do on all recent FreeBSD
versions.  This removes one != call per port, shaving off 2 minutes of CPU
  time per INDEX build on my computer.

Tested by:	pointyhat build run
2009-04-09 22:40:20 +00:00
Sergey Skvortsov
1a9ef9fa67 Introduce Perl 5.10.0 2009-03-28 20:45:10 +00:00
Pav Lucistnik
2747307b84 - Hot fix previous commit: really bail out when make failed (fail means fail)
Reported by:	amdmi3
Pointy hat to:	pav
2009-03-27 07:47:17 +00:00
Pav Lucistnik
6b4ca32453 Introduce multiple make jobs (parallelization) support. When enabled, -jX is
passed to the top level vendor Makefile in build stage, where X is number of
CPU cores by default.  The whole system is opt-in, ie. ports need to be enabled
individually.  There is a global override available for adventurious users.
2009-03-22 10:28:53 +00:00
Boris Samorodov
0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00
Sergey Skvortsov
0f24c25f5a Remove variable PERL_VER from the ports tree at all - because
it is obsolete since Perl 5.6.0.
2009-03-05 17:56:24 +00:00
Marc Fonvieille
e292dce005 Add a new virtual category (docs) for forthcoming ports.
Approved by:	portmgr
2009-02-23 12:53:48 +00:00
Sergey Skvortsov
7c87414634 Rename: lang/perl5 -> lang/perl5.6
PR:		ports/131046
2009-02-01 19:43:11 +00:00
Florent Thoumie
340b57f8be - Update X.org ports to 7.4+ (few ports are more recent than the katamari).
- Bump PORTREVISION for all ports depending on libglut since the shlib
version number went from 4 to 3.
- Bump PORTREVISION for all ports depending on libXaw as libXaw.so.8 isn't
installed anymore.
- Couple of ports fixes (mostly missing xorg components added to USE_XORG).
2009-01-23 16:28:36 +00:00
Sergey Skvortsov
b09ba05a10 Set PERL_VERSION and PERL_VER to "5.8.9".
Pointed by:	ume
2009-01-17 18:44:15 +00:00
Pav Lucistnik
74dc5ca272 - Backout "fail, if recursing into a dependency failed"
This was failing for people with tcsh, who need to rehash before the newly
  installed executable is visible
2009-01-11 22:51:05 +00:00
Pav Lucistnik
175ec50b37 - Remove conditional checks and support for FreeBSD versions prior 6.0-RELEASE
Submitted by:	pav

- Fix COPYTREE_* macros not to change permissions and ownership on files, that
  were already present in the target path

Submitted by:	beech

- Add a showconfig-recursive target, which has been in documentation for years
  but never implemented

PR:		ports/87642, ports/126770
Submitted by:	Andy Kosela <andy.kosela@gmail.com>

- Fix ignorelist-verbose target (in preparation for duds.verbose)

PR:		ports/127286 (part of)
Submitted by:	linimon

- Fix OPTIONS dialog to show up for every previously unconfigured port in the
  dependency chain

PR:		ports/127554
Submitted by:	ale

- Fail, if recursing into a dependency failed to satisfy the dependency object
  (only for :install targets)

PR:		ports/116601
Submitted by:	edwin
2009-01-11 11:04:05 +00:00
Gerald Pfeifer
e1203f455a Document 24 as being the current default for WANT_OPENLDAP_VER if
just USE_OPENLDAP is specified.

Fix a typo in the description of WANT_OPENLDAP_VER.

Approved by:	portmgr (marcus)
2009-01-05 12:33:07 +00:00
Hiroki Sato
6e0909e045 * print/ghostscript-* and related ports have been renamed in the
following way:

	print/ghostscript-gnu -> print/ghostscript7
	print/ghostscript-gnu-nox11 -> print/ghostscript7-nox11
	print/ghostscript-gnu-commfont -> print/ghostscript7-commfont
	print/ghostscript-gpl -> print/ghostscript8
	print/ghostscript-gpl-nox11 -> print/ghostscript8-nox11
	japanese/ghostscript-gnu-jpnfont -> print/ghostscript7-jpnfont
	korean/ghostscript-gnu-korfont -> print/ghostscript7-korfont

* USE_GHOSTSCRIPT now supports a version number which the port
  requires.  The valid value is "7" or "8".  If other value is
  specified, value of WITH_GHOSTSCRIPT_VER is used.

* WITH_GHOSTSCRIPT_GNU has been removed in favor of
  WITH_GHOSTSCRIPT_VER.  The valid value of WITH_GHOSTSCRIPT_VER is
  "7" or "8", and the default value is "8".

Approved by:	portmgr (pav)
2008-09-05 19:41:48 +00:00
Rong-En Fan
3fa3860491 - Fix a small hole after last CONFIGURE_TARGET (actually, it's CONFIGURE_ARGS)
update: if a port version is 2.13, my magic detection treats this port
  using the old autoconf. To fix this, change the regex to include the prefix
  "autoconf" before the version number 2.13.

Tested by:	pointyhat 7-amd64 exp run (by pav)
2008-08-25 01:29:01 +00:00
Rong-En Fan
741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00
Martin Wilke
568f8e877f The KDE FreeBSD team is proud to announce the release of KDE 4.1.0
for FreeBSD. The official KDE 4.1.0 release notes can be found at
http://www.kde.org/announcements/4.1/.

Some note:

* Prefix
KDE4 will be install into a custom prefixes namely ${LOCALBASE}/kde4.
KDE4 and KDE3 can co-exist

* Sound
For sound to work, it is necessary to have dbus and hal enabled
in your system. Please see the respective documentation on how
to enable these.

For more Informations see the HEADS UP at ports@ and kde-freebsd@
or our wiki page http://wiki.freebsd.org/KDE4/Install.

Have fun!
2008-08-09 16:52:28 +00:00
Pav Lucistnik
e314a0d3c4 - Add CC and CXX to MAKE_ENV for all ports
PR:		ports/86106, ports/101120 (based on)
2008-07-24 22:29:33 +00:00
Pav Lucistnik
ed7666e663 - Add an ugly kludge to strip the trailing whitespace from CFLAGS (it comes
this way from outside already).  Unless stripped, later CFLAGS+= assignments
  will produce a double-space in CFLAGS string.  Sub-configure will reduce it
  back to single space and complain that CFLAGS changed underneath it.

  Most prominent example of a problem solved by this kludge is the -CURRENT,
  where -fno-strict-aliasing is added to every port's CFLAGS.
2008-07-24 21:55:47 +00:00
Pav Lucistnik
7336164f49 - Separate OpenLDAP related code into bsd.ldap.mk
- Change default OpenLDAP version to 2.4
- Remove OpenLDAP 2.2 support, the port has been gone for some time now
- Add -DDEPRECATED to CFLAGS for all OpenLDAP using ports

PR:		ports/123602, ports/124115, ports/125605
Submitted by:	delphij, Jens Rehsack <rehsack@web.de>,
		Yuri Pankov <yuri.pankov@gmail.com>

- Remove USE_GTK, it's no longer used

PR:		ports/123528
Submitted by:	mezz

- Use PATCH_WRKSRC instead of WRKSRC in do-patch target

PR:		ports/124169
Submitted by:	Max Brazhnikov <makc@issp.ac.ru>

- Remove USE_XPM, it's been replaced by USE_XORG+=xpm

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

- Minor fixups for bsd.port.mk

PR:		ports/122675
Submitted by:	linimon

- Remove stale comment about USE_GETOPT_LONG

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

- Correct comment about default fetch arguments

PR:		ports/125334
Submitted by:	Gary Palmer <freebsd-gnats@in-addr.com>
2008-07-21 22:29:22 +00:00
Xin LI
38231e45ad - Overhaul the way we handle with LDAP data directory, populate
the data directory upon start, not upon install. [1]
 - Update to OpenLDAP 2.4.11.
 - Modify bsd.port.mk to fit with the shared libary version bump [2]
   This has no impact to package building yet as 2.4.x is not the
   default version.

Submitted by:	Mikhail Goriachev <mikhailg webanoide org> [1]
Approved by:	portmgr (marcus) [2]
2008-07-20 03:35:42 +00:00
Kris Kennaway
54e565eedc Major optimizations for 'make index' and other recursive traversal
targets.

* Use /rescue/sh for index builds instead of /bin/sh, when it exists.
  The former is statically linked and faster to execute, which becomes
  significant when executing it tens of thousands of times.  This
  trick can be used with other recursive targets by passing in
  __MAKE_SHELL.

* Get rid of make variable assignments that use != command invocations
  in the critical path, using several methods:

  - rewriting logic to use shell or make builtins instead of external command executions
  - macroizing commands and executing them in the targets where they
    are needed instead of with every invocation of make
  - precomputing the results of invariant commands in
    bsd.port.subdir.mk and passing them in explicitly to child makes,
    and using this to avoid recalculation in all the children. NB: the
    commands are still run one per top-level subdirectory but this
    does not currently seem to be a major issue.  They could be moved
    further up into the top-level Makefile at the cost of some
    cleanliness.
  - Committers are strongly discouraged from adding further "bare" !=
    assignments to the ports tree, even in their own ports.  One of
    the above strategies should be used to avoid future bloat.

* Rewrite the core 'describe' target to work entirely within a single
  shell process using only builtin commands.  The old version is
  retained as a backup for use on systems older than 603104, which
  does not have the make :u modifier.  This cuts down the number of
  processes executed during the course of a 'make index' by an order
  of magnitude, and we are essentially now amortized to the minimum of
  a single make + sh instance per port, plus whatever commands the
  port makefile itself executes (which are usually unnecessary and
  bogus).

* Less validation of the WWW: target is performed; this can become
  policed at a port level by portlint.  Specifically we look at the
  second word of the first line beginning with "WWW:" in pkg-descr,
  and append "http://" to it unless it already begins with "http://",
  "https://" or "ftp://".  Thanks to dougb for the idea of how to
  extract WWW: using shell builtins.

* Use the "true" shell builtin instead of echo > /dev/null for a
  measurable decrease in CPU use.

* Add a note about dubious escaping strategy in bsd.port.subdir.mk

* Minor change in output of 'make describe': it no longer strips
  trailing CR characters from pkg-descr files with MSDOS CR/LF
  termination.  Instead the makeindex perl script that post-processes
  make describe into the INDEX is tweaked to strip on input.

The bottom line is that on my test hardware INDEX builds are now
faster by more than a factor of 2 and with a reduction in system time
by a factor of 4-8 depending on configuration.
2008-07-19 17:59:41 +00:00
Jeremy Messenger
903b45dfc5 First all, ahze did most of work. Thanks ahze! Last week or so, I am just
merely pick up and help him. Thanks to many testers in both private and
mailing list emails for report a few of build and dependencies problems.
Also, thanks to marcus and Chess Griffin for test in their tinderboxes.

x11/pixman: Update to 0.10.0
-------------------------------------------------------
Firefox 3 needs it. Orignal, the shared library was bumped and ahze has
added a new feature in our USE_GNOME=ltverhack by can control the number
of shared library. To control the number of shared library, add the
ltverhack:N. Right now pixman has USE_GNOME=ltverhack:9 to make it stays
same at libpixman-1.so.9. If anyone want to use ltverhack:N in one of your
port, you need to make sure the ABI doesn't change to use it..
-------------------------------------------------------

graphics/cairo: Update to 1.6.4
-------------------------------------------------------
Firefox 3 needs it. We have updated most cairo binding ports too.
-------------------------------------------------------

graphics/poppler: Update to 0.8.3
-------------------------------------------------------
The shared libraries version have been changed. All ports that depend on
poppler have PORTREVISION bump. The graphics/py-poppler has been updated
to 0.8.1 to work with newer poppler better. As for the poppler-qt, there
is no shared library version change.
-------------------------------------------------------

www/firefox3 and gecko ports related: Update to 3.0 final
-------------------------------------------------------
The bsd.gecko.mk has been moved from www/mozilla/ to Mk/. You no longer
need to include bsd.gecko.mk/Makefile.common by manual. We are keeping it
in backward compatibility, so the rest ports won't be break. We haven't
add some other ports to have Firefox 3 support yet, so feel free to send
us patch or commit it by yourself (to committers). However, view in
bsd.gecko.mk for document.
-------------------------------------------------------

Approved by:	portmgr (marcus)
2008-06-30 20:16:22 +00:00