Commit graph

486 commits

Author SHA1 Message Date
Pav Lucistnik
2821ebfb31 - Update default perl version from 5.8.2 to 5.8.4
Forgotten by:	tobez
2004-05-31 18:07:57 +00:00
Oliver Eikemeier
a51cdd3ebe Update net/openldap22-* to 2.2.11 and follow the OpenLDAP soname change:
<http://www.openldap.org/lists/openldap-devel/200403/msg00101.html>

While I'm not totally happy with their choice, I believe it is better to
be in sync with the upstream library naming scheme.

No objection from:	portmgr
2004-05-27 11:29:07 +00:00
Kris Kennaway
d2404aab2f Two bugfixes:
* Move the add-plist-info target after post-install, so that ports that
  install their info files in the post-install phase will have them
  correctly registered in the plist.

* all-depends-list was too aggressive: it should only include the
  run-depends of the ports upon which it depends, plus the
  non-runtime dependencies of the port itself.  Previously it was also
  including the non-runtime (e.g. BUILD, EXTRACT, FETCH) dependencies of
  the ports upon which it depends, which are irrelevant.
2004-04-19 23:39:52 +00:00
Ade Lovett
08b6cdcb5e Introduce bsd.autotools.mk to the world, ripped from bsd.port.mk
This is essentially a null-commit, with the one exception that
the "patch-libtool" target is now called "patch-autotools" for
consistency with "run-autotools".

Many thanks to kris for testing on the 4-exp bento cluster

Approved by:	portmgr (kris)
Verified by:	bento 4-exp
2004-04-19 01:37:12 +00:00
Kris Kennaway
5696324036 Add patch hunk forgotten in previous commit (don't try to edit the makefile
that is not created by Build.PL when PERL_MODBUILD is set)

PR:		62422
Submitted by:	mat
2004-04-03 23:59:50 +00:00
Kris Kennaway
e74f65891d - Allow processing of info files in non-standard locations; the
INFO_PATH variable may be used to specify their location.  It defaults
  to 'share/info' for the standard PREFIX, and 'info' when PREFIX ==
  /usr. [1]

- Remove the <category>/pkg/COMMENT files in favour of a COMMENT
  variable in <category>/Makefile [2]

- Prevent patch breakage with VERSION_CONTROL=numbered [3]

- Fix some instances of incorrect WRKDIRPREFIX handling. [4]

- remove useless ${MKDIR} ${WRKSRC} in config target [5]

- remove reference to OpenBSD [6]

- Exempt devel/p5-Module-Build from the self-dependency in
  PERL_MODBUILD so that this port may use the option without getting an
  infinite dependency list [7]

- The default PERL_ARCH is currently determined as a function of
  OSVERSION. It should however be a function of PERL_LEVEL since the
  correct value depends on what Perl version one has installed (older
  Perl versions use ${ARCH}-freebsd, newer versions use mach). [8]

- Fix PORTDOCS on older (4.7, 5.0) systems [9]

- Allow 'make parallel' to generate a working makefile when not all
  categories are present (this does not mean you'll be able to build all
  ports, unless you make sure they don't have external dependencies) [10]

- Don't report symlinks as world-writable in the security check [11]

- Fix a comment that was broken by a mismerged patch [12]

- Clarify the meaning of USE_*, WANT_*, WITH_* and WITHOUT_* [13]

- Don't set _CHKSUMFILES/_IGNOREFILES if CKSUMFILES/IGNOREFILES is
  empty and DIST_SUBDIR is set. [14]

- Fix comment for DISTDIR [15]

- Update the documentation of the USE_GL variable [16]

- Check to see if NONEXISTENT exists, and fail with an error if it does [17]

- Fix fetching of new distfiles in 'make makesum' when SIZE is set [18]

- Consistently set MAKE_ENV when USE_GCC=3.2 or 3.3 are set [19]

- Rework INDEX builds: [20]

  * Fix the bsd.port.subdir.mk code that is supposed to report index
    breakage (the fallback code wasn't actually being run because make
    would halt immediately following the error).  This should help with
    INDEX error reports because it will immediately show the cause of
    failure, so we won't have to pull teeth to extract it from the
    submitter.

  * Streamline the 'make describe' code a bit.

  * Provide some basic instructions to the user when an index build
    fails, on when and how to report index build failures (turn this off
    with INDEX_QUIET=1)

  * Removed INDEX_NOSORT, because I couldn't imagine it to be very
    useful and it doesn't cost very much anyway.

  * Don't prevent INDEX builds from seeing the local host environment.
    Since a lot of users are using 'make index' thesedays they should get
    an index that reflects their local settings and installed ports.  If
    you want to build a 'default' index that isn't influenced by local
    settings (e.g. for release builds), set the INDEX_PRISTINE variable.

  * Allows parallel INDEX builds (using make -j).  The most obvious way
    of doing this doesn't work, because I/O from child makes is broken up
    into 2k chunks, and output lines from 'make describe' that exceed this
    length (*cough* GNOME *cough*) will be intertwined with the output of
    other makes, leading to a corrupted INDEX.  The I/O interleaving
    can be disabled using 'make -P', but this inserts extraneous output of
    its own, and redirects stderr, making it useless for our purposes.
    Instead, I collect the output from the child make processes in
    temporary files and recombine them at the end.

  * The number of concurrent make processes to spawn can be set using
    INDEX_JOBS.  By default this is set to 2, which seems to be a sweet
    spot for both single and dual-processor systems.  On my tests I do not
    see any significant performance changes on UP, but on a dual 4.x
    system the build time drops by 47% (6 minute index builds on one test
    machine!).  Depending on your disk and CPU hardware you might see
    further gains with INDEX_JOBS=4 or higher, so you might like to
    experiment to see what works best.  On a dual 5.x system the
    performance gains do not seem to be as great (20-30%), but this is
    still a significant net win.

PR: 		55493 [1], 59651 [2], 61552 [3], 62247 [4], 62329 [5],
		62337 [6], 62422 [7], 62441 [8], 62627 [9], 62983 [10],
		63112 [11], 63297 [12], 63335 [13], 64029 [14], 64069 [15],
		64236 [16], 64519 [17], 62958 [18], 64237 [19]

Submitted by:	lev [1],
		Matthew Seaman <m.seaman@infracaninophile.co.uk> [2],
		Joel Ray Holveck <joelh@piquan.org> [3],
		ade [4], Sergey Matveychuk <sem@ciam.ru> [5],
		markus [6], mat [7], des [8], eik [9],
		Dmitry Morozovsky <marck@rinet.ru> [10],
		Andrew <andrew@ugh.net.au> [11], vs [12], linimon [13],
		edwin [14][15], gerald [16], marcus[17][18], kris [19][20]
2004-04-02 07:25:23 +00:00
Joe Marcus Clarke
742adcabd7 * Add a new bsd.php.mk that takes the place of lang/php4/bsd.php.mk [1]
* Remove trailing whitespace from bsd.port.mk [2]
* Enhanced OPTIONS handling [3]
* Add a USE_ICONV macro [4]
* Add a USE_GETTEXT macro [5]
* Add support for p5-Module::Build [6]
* Enhance bsd.sdl.mk with WANT_SDL [7]
* Remove NetBSD and OpenBSD bits from bsd.port.mk [8]
* Correct a type in PKGDIR description in bsd.port.mk [9]
* Add new DIRNAME macro [10]
* Cleanup bsd.port.mk [11]
* The default Perl for -CURRENT has been updated to 5.8.2 [12]
* Optimize recursive operations on the ports tree [13]
* Do not attempt to remove _CPUCFLAGS from CFLAGS if _CPUCFLAGS is
  not defined [14]
* Remove sysutils/rc_subr dependency on -CURRENT [15]
* Add MySQL 5.X support to the ports system [16]
* Fix a comment typo related to MySQL [17]
* Change PTHREAD_{CFLAGS,LIBS} behavior [18]
* Do not check distfile size on FreeBSD < 4.8 [19]
* Do not install ports with security vulnerabilities [20]
* Use ${LOCALBASE}/sbin/pkg_* tools if found [21]
* A new net-mgmt physical category has been added [22]
* Stop relying on port.mkversion [23]
* Fix a regression in checksum processing [24]
* Allow PLIST_{DIRS,FILES} to make use of PLIST_SUB [25]
* Switch to root to run config and rmconfig targets [26]
* Add SIZE attributes for distfiles by default [27]

PR:		61683 [3]
		62131 [4]
		61992 [5]
		61621 [6]
		61877 [7]
		61401 [8]
		61684 [10]
		61684 61955 [11]
		61857 [12]
		61757 [14]
		61454 [15]
		60559 [16]
		62039 [20]
		62039 [21]
		61856 [23]
		61972 [27]
Submitted by:	ale [1]
		marcus [2]
		eik [3]
		trevor [4]
		trevor [5]
		skv [6]
		edwin [7]
		Markus Brueffer <brueffer@phoenix-systems.de> [8]
		trevor [9]
		eik [10]
		eik des [11]
		des [12]
		kris [13]
		marcus [14]
		Sergey Matveychuk <sem@ciam.ru> [15]
		ale [16]
		linimon [17]
		eischen netchild [18]
		marcus netchild [20]
		eik [21]
		wollman [22]
		des [23]
		marcus eik [24]
		marcus [25]
		marcus [26]
		trevor [27]
2004-02-04 04:27:04 +00:00
Daniel Eischen
fba0329712 Back out last change to make PTHREAD_LIBS and PTHREAD_CFLAGS conditional
as I didn't get explicit permission from portmgr.

Suggested by:	adamw
2004-01-24 01:26:30 +00:00
Daniel Eischen
497c0097b4 Make PTHREAD_LIBS and PTHREAD_CFLAGS conditional. Also remove
-D_THREAD_SAFE from PTHREAD_CFLAGS when it isn't needed.
2004-01-23 22:31:36 +00:00
Joe Marcus Clarke
616f248e22 Fix a regression in bsd.port.mk where ports with multiple checksums per file
would fail make checksum.  Note: this is the simplest fix, but there is a
more complete fix by eik and myself that works in the spirit of the original
distinfo cleanup patch.  However, that patch needs to be tested on bento first.

PR:		61772
Submitted by:	dinoex
2004-01-23 16:22:26 +00:00
Joe Marcus Clarke
93c1cc87f6 Remove an extra blank line. 2004-01-20 22:27:01 +00:00
Joe Marcus Clarke
02da5b02ba Conditionalize the max command length on whether or not GNU_CONFIGURE is
defined.
2004-01-20 22:26:36 +00:00
Joe Marcus Clarke
5be37c5652 OPTIONSFILE now defaults to ${PORT_DBDIR}/${UNIQUENAME}/options where
${PORT_DBDIR} is /var/db/ports and ${UNIQUENAME} is
${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}.  OPTIONSFILE, PORT_DBDIR,
and UNIQUENAME are all overrideable by the porter.

Note: a better solution may be forthcoming after it can be shaken out
on bento.  This is a simple fix to workaround PORTNAME conflicts in the
tree.

Submitted by:	eivind
2004-01-20 22:17:03 +00:00
Joe Marcus Clarke
8be6ffc4f3 * Chase the shared lib version of OpenLDAP 2.2 [1]
* Make CONFIGURE_MAX_CMD_LEN default to sysctl -n kern.argmax which is more
  accurate, and has been in FreeBSD since the beginning (NOTE:
  CONFIGURE_MAX_CMD_LEN is still overrideable from a port's Makefile) [2]

Submitted by:	eik [1]
Requested by:	juli [2]
2004-01-20 19:35:27 +00:00
Joe Marcus Clarke
77e590c67f s/sanity-check/check-sanity/ since the latter is the actual target name.
Submitted by:	rushani
Pointy hats to: linimon and me
2004-01-20 16:18:33 +00:00
Joe Marcus Clarke
e587cce18d Here come the patches!
* Add ghostscript knobs [1]
* Add per-port persistent build options with a menu-driven front-end [2]
* Allow porters to override the message generated when do-configure fails [3]
* Add patch to obviate many pkg-plist files [4]
* Fix the PKG_DBDIR comment [5]
* Make ports framework more robust with regard to make index [6]
* Add new command macros to bsd.port.mk [7]
* Remove direct command use from bsd.port.mk [8]
* Make the ports system respect WITHOUT_CPU_CFLAGS [9]
* Break the SDL code out into bsd.sdl.mk [10]
* Add working support for USE_SIZE [11]
* Fix RANDOMIZE_MASTER_SITES on -CURRENT [12]
* Convert some spaces to tabs [13]
* Add new physcial categories accessibility and x11-themes [14]
* Speed up GNU configure scripts [15]
* Remove "//" from MLINKS items in PLISTs and fix make -s install and
  make -s deinstall [16]
* Be more specific about looking for files in distinfo [17]
* Add new run-autotools target, and resort configure targets [18]
* Make CONFLICTS compare prefix for installed packages and PREFIX [19]
* Change directory to ${.CURDIR} before running certain make commands [20]
* When INSTALL_AS_USER is set, run ldconfig with failures ignored [21]
* Speed up the security check phase [22]
* Fix some corner cases in the PORTDOCS code [23]
* Add a new DEPRECATED macro [24]
* Make INDEX breakage more informative [25]

Look for a full write-up to follow on ports@ and ports-developers@.

PR:		36112 [1]
		59909 [4]
		61351 [6]
		59058 [7]
		59058 [8]
		59493 [9]
		55494 [10]
		59058 [11]
		59315 [12]
		59058 [13]
		59811 [15]
		59058 [16]
		59058 [17]
		60882 [18]
		58149 [19]
		59058 [20]
		61133 [21]
		55331 [22]
		59070 [23]
		59362 [24]
		59626 [25]
Submitted by:	linimon [1]
		eivind [2]
		marcus [3]
		trevor [4]
		gerald [5]
		linimon [6]
		eik [7]
		eik [8]
		jeh [9]
		edwin [10]
		eik [11]
		Sergey Matveychuk <sem@ciam.ru> [12]
		eik [13]
		trevor gnome [14]
		adamw [15]
		eik [16]
		eik [17]
		edwin [18]
		clement [19]
		eik [20]
		edwin lev [21]
		Eugene M. Kim <ab@astralblue.com> [22]
		eik [23]
		linimon [24]
		eik [25]
2004-01-20 09:14:10 +00:00
Joe Marcus Clarke
5d0e10b310 Fix a typo that prevented proper automake257 dependencies from working.
PR:		59433
Submitted by:	Clement Laforet <sheepkiller@cultdeadsheep.org>
Approved by:	portmgr (implicit and kris)
2003-11-24 01:08:41 +00:00
Joe Marcus Clarke
35cd093dc0 Document the new PORTDOCS macro. This is a comment change only.
Submitted by:	Oliver Eikemeier <eikemeier@fillmore-labs.com>
2003-11-08 03:22:08 +00:00
Joe Marcus Clarke
e01b8f26ce Really add the fix for 56096. This was tested on bento, but somehow removed
at the last minute.  This fixes PKG_ARGS when WRKDIRPREFIX is specified.

Reminded by:	Oliver Eikemeier <eikemeier@fillmore-labs.com>
2003-11-07 17:55:41 +00:00
Joe Marcus Clarke
eb67234c29 * Improve the test for the old ports directory layout [1]
* Include SITE_PERL earlier [2]
* Use the correct versions of autoconf and automake [3]
* Add a PORTDOCS macro for automating installation of documentation files [4]
* Define a default Fortran compiler for each version of USE_GCC [5]
* Fix package builds when WRKDIRPREFIX is set [6]
* Add more comment documentation on default targets [7]
* Fix plist generation in certain cases [8]
* Fix COMMENT/COMMENTFILE checking [9]
* Use SU_CMD for deinstall and deinstall-all targets (provided
  INSTALL_AS_USER is not set) [10]
* Define a default WWWOWN and WWWGRP [11]
* Make INDEX builds work even when the port name is the same as a default
  target [12]
* Fix the new share/nls/C links [13]
* Don't look in ${LOCALBASE}/lib/compat/pkg for LIB_DEPENDS [14]
* Document package-recursive [15]
* Create a new virtual category, lisp  [16]
* Create a new real category, arabic
* Add a new GCCVERSION macro for eaisly tracking compiler version changes [17]
* Abstract out some of the common Apache bits [18]
* Enable the use of USE_OPENLDAP after including bsd.port.pre.mk [19]
* Add a new virtual category, pear [20]
* Add support for randomizing MASTER_SITES [21]
* Don't accept PORTVERSIONS that pkg_version can't handle [22]
* Add support for dynamic pkg-install, pkg-deinstall, pkg-message, and
  pkg-req scripts [23]
* Don't redirect stderr when running pkg_info -O.  This may help troubleshoot
  mysterious "Error 1" messages.
* Fix up the order of the various PKGNAME related macros to be consistent with
  portlint [24]

PR:		21885 [1]
		51588 [2]
		55325 [3]
		57778 [4]
		55674 [5]
		56096 [6]
		56355 [7]
		56533 [8]
		57272 [9]
		57378 [10]
		57403 [11]
		57438 [12]
		57488 [13]
		57664 [14]
		57928 [15]
		58232 [16]
		58317 [17]
		32604 [18]
		57529 [19]
		56582 [20]
		48377 [21]
		56960 [22]
		58885 [23]
		54351 [24]
Submitted by:	trevor [1]
		eik@fillmore-labs.com [2]
		rehsack@liwing.de, ade [3]
		eikemeier@fillmore-labs.com [4]
		thierry@pompo.net [5]
		Palle Girgensohn <girgen@pingpong.net> [6]
		edwin [7]
		leeym [8]
		edwin [9]
		fjoe [10]
		edwin [11]
		eikemeier@fillmore-labs.com [12]
		fuyuki@nigredo.org [13]
		eikemeier@fillmore-labs.com [14]
		freebsd@generalresources.com [15]
		linimon [16]
		linimon [17]
		dinoex [18]
		eikemeier@fillmore-labs.com [19]
		edwin [20]
		seanc [21]
		eikemeier@fillmore-labs.com [22]
Reviewed by:	eikemeier@fillmore-labs.com [23]
2003-11-07 08:51:46 +00:00
David E. O'Brien
8c4b61af8f <insert 20 nasty words here> and back out rev 1.467, which was committed
over a very lossy link and allowed me pilot error.
2003-09-03 19:50:24 +00:00
David E. O'Brien
9ca2ad6a8e Update Vim sites. 2003-09-03 19:46:57 +00:00
Joe Marcus Clarke
d6cd7e3e68 Clarify the RC_SUBR comments to match reality.
PR:		56111
2003-08-29 02:26:02 +00:00
Joe Marcus Clarke
6e05d97629 Fix typo in recent MySQL component addition. This typo lead to incorrect
operation when using MySQL 3.32.

PR:		56062
Submitted by:	leeym
2003-08-28 03:58:01 +00:00
Joe Marcus Clarke
4961e4ecb4 * Fix bug with already-installed check on older versions of FreeBSD [1]
* Fix bug where make install would fail if PKG_DBDIR did not already exist [2]
* Add MySQL components [3]
* Add OpenLDAP components [4]
* Separate OpenSSL components into bsd.openssl.mk [5]
* Separate GNUStep components into bsd.gnustep.mk [6]
* Add RC_SUBR support [7]
* Add a WANT_LESSTIF knob to use LessTif rather than Motif when USE_MOTIF is
  set [8]

PR:		55616, 55721, 55953 [1]
		55190 [2]
		55597 [3]
		55680 [4]
		39054 [5]
		50479 [6]
		54116 [7]
		36079 [8]
Submitted by:	Mats Dufberg <mats@dufberg.se>, marcus [1]
		Lev A. Serbryakov <lev@freebsd.org> [2]
		Clement Laforet <sheepkiller@cultdeadsheep.org> [3]
		Oliver Eikemeier <eikemeier@fillmore-labs.com> [4]
		dinoex [5] [6] [8]
		will [7]
2003-08-27 04:35:39 +00:00
Kris Kennaway
e549c662d1 * r1.455 introduced a change that uses su(1) to install the port if
built by non-root.  However, sometimes it is desirable to install the
  port as a non-privileged user.  Introduce the INSTALL_AS_USER variable
  to specify this behaviour. [1]

* Change SU to SU_CMD to allow other su-like commands to be used to
  perform the privilege escalation when installing as non-root
  (e.g. sudo) [2]

* Add support for USE_GCC=3.3 and 3.4 [3]

* Add support for the dns [4] and polish [5] categories, and the xfce
  virtual category [6]

* Use the pkg_install port on systems older than OSREVISION=460102, so
  they have the benefits of the advanced install/deinstall logic. [7]

PR:		ports/55091 [1], ports/55308 [3], ports/50444 [4],
		ports/53797 [5]
Submitted by:	dinoex [1], fjoe [2], Ulrich Spoerlein <q@uni.de> [3],
		Kimura Fuyuki <fuyuki@hadaly.org> [4],
		Aleksander Fafula <alex@fafula.com> [5], oliver [6],
		marcus [7]
2003-08-15 22:57:58 +00:00
Kris Kennaway
943ac185d5 * Remove some obsolete options: BROKEN_ELF, USE_DGS, NO_WRKDIR,
NO_EXTRACT, NO_CONFIGURE, NO_PATCH. [1]

* Remove support for USE_KDE{BASE,LIBS}_VER=2, since KDE 2.x is no
  longer in the ports collection [2]

* Add support for semi-automatic processing of GNU info files; they
  should be listed in the INFO variable (without the trailing .info),
  and appropriate installation/deinstallation code will be automatically
  added to the temporary pkg-plist before package registration. [3]

Submitted by:	arved [1][2], gerald [3]
PR:		ports/54782 [1][2], ports/54883 [3]
2003-08-04 01:17:39 +00:00
Max Khon
edbf751d82 Backout rev. 1.459.
Requested by:	kris
2003-07-30 15:42:22 +00:00
Max Khon
358875200d Convert ${SU} to ${SU_CMD}. This allows to use sudo instead of su
by defining 'SU_CMD=/usr/local/bin/sudo sh -c'.
Provide an example of using sudo instead of su as well.

Approved by:	kris, des
2003-07-30 08:53:49 +00:00
Kris Kennaway
8a48556be8 * Add USE_SDL option, which adds a dependency on the sdl12 port and
sets up SDL_CONFIG in the build environment. [1]

* Add the -o option to unzip when extracting files with USE_ZIP, to
  overwrite files when extracting, for consistency with other
  extraction targets. [2]

* Fix port installation/deinstallation on FreeBSD 4.6.2 and older
  (which does not have pkg_info -O), by falling back to the old
  installation/deinstallation logic on these systems [3]

* Correctly handle pkg-plist files that contain @cwd directives with
  the new install/deinstall code [4]

* Set up POSIX and en_US.US-ASCII locale symlinks after running mtree
  on BSD.local.dist. [5]

Submitted by:	David Yeske <dyeske@yahoo.com> [1],
		Alexey Dokuchaev <danfe@regency.nsu.ru> [2],
		Sergey Matveychuk <sem@ciam.ru> [3],
		Chris BeHanna <behanna@zbzoom.net> [3], marcus [4],
		ache [5]
PR:	ports/52309 [1], ports/52856 [2], ports/53189 [5]
2003-07-27 02:06:26 +00:00
Joe Marcus Clarke
b5a777c331 Include sed_inplace as a PATCH_DEPENDS rather than a BUILD_DEPENDS to fix
patching on older FreeBSD systems (4.5 and earlier).

PR:		54090
Submitted by:	tobez
2003-07-22 03:51:15 +00:00
Kris Kennaway
7213e2db1d If GNU_CONFIGURE is defined, replace all instances of config.guess
and config.sub found under ${WRKDIR} with the master versions from
${PORTSDIR}/Template.  This allows old ports (which contain old versions
of these scripts) to build on newer architectures like ia64 and amd64.

Submitted by:	naddy (initial patch, reworked by me)
2003-07-11 06:30:43 +00:00
Kris Kennaway
bffcbb778f * Attempt to detect and disallow installation of a port with PREFIX
set to a different value to that with which it was configured and
  built.  This is achieved by recording the PREFIX in the build-stage
  cookies [1]

* Add scheme [2], tcl84 and tk84 [5] as virtual categories

* Add the PERL_PORT variable and use it to register the dependency on
  the correct perl port when PERL_LEVEL is set [3]

* Add support for USE_AUTOHEADER [4]

* Fix 'make maintainer' when MAINTAINER is set to a bogus value (not
  in user@example.com format). [6]

* Add a 'package-recursive' target to create packages for a port and
  all of its dependencies [7]

* Fix command-line overflow errors in 'make readmes' on certain ports,
  with the bonus of providing a measurable speed-up to readme
  generation [8]

* Fix inclusion of alternative makefiles such as Makefile.inc,
  Makefile.local, etc. (broken since 1.403) [9]

* Reintroduce support for install/deinstall targets checking for older
  versions of the port, and re-add the deinstall-all target that
  removes all existing installations of a port (originally introduced
  in 1.446 and backed out in 1.450).  This patch has been reworked to
  eliminate the corner cases in the previous code.  Ports that
  dynamically generate their ${PLIST} at install-time must now do so
  before the do-install target is run, e.g. in pre-install.  [10]

* When installing ports as non-root, use su(1) to execute the targets
  that require root privilege.  This is achieved by splitting up the
  _INSTALL_SEQ target list into _INSTALL_SUSEQ [11].

PR:		23581 [1], 47238 [2], 48465 [3], 50165 [4], 51985 [6],
		52388 [7], 51609 [11]
Submitted by:	Matt Emmerton <matt@gsicomp.on.ca> [1],
		Sergey Matveychuk <sem@ciam.ru> [1] [7] [10] [11],
		Kimura Fuyuki <fuyuki@hadaly.org> [2],
		"Scot W. Hetzel" <hetzels@westbend.net> [3],
		Anton Berezin <tobez@FreeBSD.org> [3], nork [4],
		hsu [5], Mark Linimon <linimon@lonesome.com> [6],
		hoek [8], sobomax [9], marcus [10] [11], des [11]
2003-07-06 23:54:33 +00:00
Ade Lovett
b2fd75e438 libtool uber-patch
* kill devel/libtool and move to devel/libtool13, upgrading to 1.3.5
* upgrade repo-copied devel/libtool14 to 1.4.3
* break out libltdl into its own separate port
* move to version-numbered binaries/scripts (ie: there is *no* 'libtool'
  any more -- USE_LIBTOOL and USE_LIBTOOL_VER are your friends)

Approved by:	portmgr (kris) - for the bsd.port.mk hooks
Tested by:	bento 4-exp builds (repeatedly)
2003-06-26 22:58:32 +00:00
Trevor Johnson
1c3df409f6 Tidy up white space in the update-patches target.
PR:		24292
Approved by:	kris
2003-06-10 14:45:02 +00:00
Trevor Johnson
1d3db28a65 For the update-patches target, support PATCH_WRKSRC, which was
introduced in revision 1.356 of bsd.port.mk.

PR:		24292
Approved by:	kris
2003-06-10 14:43:07 +00:00
Kris Kennaway
b7fa920282 Remove excessive quoting of comment strings in created packages.
Submitted by:	lioux
2003-05-26 20:59:12 +00:00
Kris Kennaway
a5a5b115b8 Back out parts [3] and [5] of r1.446, which dealt with improved
'make deinstall' behaviour and stricter checking for an installed package.
There were some edge-case problems with these patches that we were not
able to solve in time for 5.1-RELEASE.  They'll probably reappear in
a modified form soon after release.

Discussed with:	marcus, Sergey Matveychuk <sem@ciam.ru>
2003-05-23 04:14:18 +00:00
Eric Anholt
2fb49cd5d1 Check XFREE86_HTML_MAN==yes case insensitively.
Approved by:	portmgr (kris)
2003-05-14 16:47:31 +00:00
Kris Kennaway
d7e6ae643c - Add support for the Tools/scripts/update-patches script [1]
- Stage II of pkg-comment removal; do not write out the comment to a
  temporary file, but process it inline [2].

- Add support for the CONFLICTS variable to register the fact that a
  port conflicts with installed packages.  This relies on the -C
  argument to pkg_create which is not yet present in 4.x, so the
  variable is currently a NOP on 4.x. [3]

- Fix pkg-plist support for html manpages.  This was broken as
  committed in r1.402.

Submitted by:	trevor [1], lioux [2],
		Sergey Matveychuk <sem@ciam.ru> [3]
PR:		24292 [1], 47146 [3]
2003-05-06 05:15:18 +00:00
Kris Kennaway
3888585c53 s/LIB_DEPENDS=/LIB_DEPENDS+=/ in the USE_GETOPT_LONG section.
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
2003-04-19 22:35:28 +00:00
Kris Kennaway
c8c848bfb6 - Improve USE_PACKAGE_DEPENDS to work correctly for LIB_DEPENDS, and
avoid installing packages when the target is configure or extract
  [1]

- If PYTHON_VERSION is set, do not automatically add a dependency on
  python: USE_PYTHON must now be specified explicitly.  This allows the
  variable to be set in make.conf or the environment to specify a
  preference for the python version to be used. [2]

- When checking for an existing installation of the port, check by
  port origin instead of only looking for the current version of the
  package. [3]

- Do not install perllocal.pod files; they are not used on FreeBSD. [4]

- Improve 'make deinstall' to deinstall any existing version of the
  package (e.g. older versions) instead of only trying to deinstall the
  version currently described by the port. [5]

- Check for world-writable files/directories in the security-check
  target. [6]

- Improve the patching of libtool so it works with pathnames ending in
  a slash. [7]

- Allow ports that use the INSTALL macros to install files when
  running as non-root (i.e. don't try to chown/chgrp) [8].

- Add the USE_GETOPT_LONG variable, which adds a dependency on
  libgnugetopt on systems older than 500041, and uses the system version
  otherwise. [9]

- Improve the fetch-required target to correctly deal with fetching
  dependencies that use the ':target' form. [10]

- Add support for re-fetching interrupted distfiles.  The FETCH_REGET
  variable specifies the number of times to try continuing the distfile
  fetch if it fails the md5 checksum. [11]

PR:	36083 [1], 44875 [2], 48646 [3], 48960 [4], 49017 [5], 49969 [6],
	50069 [7], 50159 [8], 50323 [9], 50669 [10], 12325 [11]
Submitted by:	dinoex [1], Gerhard Schmidt <estartu@augusta.de> [2],
	Sergey Matveychuk <sem@ciam.ru> [3] [5], tobez [4],
	Erwin Lansing <erwin@lansing.dk> [4],
	Arjan de Vet <devet@devet.org> [6],
	Hartmut Brandt <brandt@fokus.fraunhofer.de> [7], gerald [8],
	Sergei Kolobov <sergei@kolobov.com> [9],
	Erwin Lansing <erwin@lansing.dk> [10], alex [11]
2003-04-17 10:27:06 +00:00
Joe Marcus Clarke
5f81323968 Sync the GNOME comments with the latest bsd.gnome.mk.
Noticed by:	Piero <piero@poprostu.pl>
Approved by:	portmgr (kris)
2003-04-06 22:14:38 +00:00
Kris Kennaway
46e9a484f8 Reorder the 'configure-message patch-libtool' targets in _CONFIGURE_SEQ
so they appear after the *_depends targets.  This fixes builds on systems
that don't yet have libtool installed (prior to this commit the
patch-libtool target would be called before the libtool port was
installed by the dependency targets, and it would therefore fail).

Submitted by:	Claude Buisson <cbuisson@nerim.net>
2003-03-22 04:45:24 +00:00
Kris Kennaway
993f323caa * Don't include extraneous dependencies on bzip2 [1]
* Fix 'make package-depends' so it doesn't overflow on large ports [2]
* Fix logic in 'USE_PACKAGE_DEPENDS' [3]

Submitted by:	dinoex [1][3], marcus [2]
PR:		ports/48860 [1], ports/36083 [3]
2003-03-19 06:26:14 +00:00
Eric Anholt
617c57ad7c Change the imake-4 dependency to the new date.def file in XFree86 4.3.0.
Approved by:	portmgr
2003-03-12 00:28:17 +00:00
Kris Kennaway
a6cb176566 * Add considerable documentation about available variables, their
meaning and default settings [1]

* Add PATCH_DEPENDS and EXTRACT_DEPENDS, and convert various
  internal bsd.port.mk dependencies to use them [2]

* Set the default MAN3PREFIX to ${PREFIX}/lib/perl5/${PERL_VERSION}
  for perl ports, removing the need to define this locally in every
  port [3]

* Replace perllocal.pod with perllocal.pod-${PORTNAME} so that perl
  ports can be made to clean up after themselves properly [4]

* Properly quote filenames in the security-check target.  This
  unbreaks package registration for ports that install filenames
  containing metacharacters [5]

* Use "cat /dev/null >" instead of "rm -f" in the makesum target so
  that the file retains the correct ownership and permissions [6]

* Add a USE_PACKAGE_DEPENDS knob that may be set in the environment or
  make.conf, and which attempts to use existing local packages to
  satisfy port dependencies, instead of building them from ports [7]

* Add a first attempt at fetch-required and fetch-required-list
  targets which fetch or print all the distfiles that are required to
  build the port.  Dependencies that are already installed need not
  have their distfiles listed, and will not be reported [8].

  This needs more work, because ports that do things like:

    BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/foo/bar:blee

  will not have their distfiles listed and will therefore fail to fetch
  completely.  The target needs to be changed to include distfiles for
  ports that have a target listed

Submitted by:	Mark Linimon <linimon@lonesome.com> [1],
		Jim Trigg <jtrigg@spamcop.net> [2], skv [3],
		kuriyama [4], marcus [5], sheldonh [6], dinoex [7],
		Erwin Lansing <erwin@lansing.dk>
PR:		44841 [1], 29856 [2], 39662 [3], 48439 [5], 48450 [6],
		36083 [7], 48473 [8]
2003-03-02 02:06:56 +00:00
Kris Kennaway
0faeb16aba Update the description of the various "do not build this port" variables
(RESTRICTED, NO_PACKAGE, NO_CDROM, BROKEN) to match current reality.  Add
documentation of the FORBIDDEN and IGNORE variables.

Garbage collect the commented-out FORBIDDEN string for the openssl ports
since we no longer need to forbid crypto software.
2003-02-16 21:22:15 +00:00
Akinori MUSHA
37c1feacab Fix comment. LIB_DEPENDS can contain extended regular expressions. 2003-02-12 05:15:03 +00:00
Kris Kennaway
1508fdf4b8 * pkg-comment removal, take 2: introduce the COMMENTFILE variable
with the same semantics as the current COMMENT variable (location
  of the pkg-comment file), and reclaim COMMENT for the comment string
  itself.  To work around the problems with metacharacters in comment
  strings, comments are written to a temporary comment file as needed. [1]

* Support regexps in LIB_DEPENDS [2]

* Move the CD_MOUNTPTS variable to <bsd.port.pre.mk> [3]

* Improve 'make readmes' target [4]:
  - ^A and ^B have been replaced by | to avoid printing problems in
    'make readme'.
  - Add %%EMAIL%%, %%MAINTAINER%% (not used yet) and %%WEBSITE%%
    substitutions
  - Add pretty-print-www-site target.

* Add support for USE_GCC=3.2 [5]

* Use 'uname -p' instead of 'uname -m' to set the ARCH variable. [6]

* Add a ${YACC} variable [7]

* Path MANPREFIX in MAKE_ENV [8]

* Use the full patch to mkhtmlindex in MKHTMLINDEX [9]

* Avoid overflowing the commandline when constructing the _TMLINKS
  variable (fixes 'make index'). [10]

Submitted by:	lioux [1], mi [2], mbr [3][5],
		Cyrille Lefevre <clefevre@citeweb.net> [4],
		nyan [6], cy [7], dougb [8], anholt [9],
		fenner [10] (based on)
PR:		ports/34126 [2], ports/30983 [3] (based on),
		ports/31389 [4], ports/47306 [5] (based on),
		ports/35514 [6], ports/44496 [7],
		ports/44895 [8], ports/45549 [9]
2003-02-10 07:59:22 +00:00