Commit graph

1768 commits

Author SHA1 Message Date
jlam
99cc15ede3 Obsolete SSH_CONF_DIR in favor of PKG_SYSCONFDIR. 2002-02-05 04:12:07 +00:00
martti
a3b93293ae Added SAMBA_USE_LDAP 2002-02-04 10:32:01 +00:00
jlam
2b3975b2e8 Deprecate POSTFIX_USE_SASL_AUTH in favor of more generic USE_SASL. 2002-01-31 21:18:37 +00:00
agc
e608a43e28 In the show-vulnerabilities and show-vulnerabilities-html targets, tighten
down further the regexp used to match a vulnerable package.
2002-01-29 15:07:55 +00:00
agc
f5aeb6d3be Fix PR 15395, whereby a package entry in the vulnerabilities file,
which shared a common prefix with a package being installed, would
erroneously be flagged as having a vulnerability.  (e.g. samba and
sam).
2002-01-28 20:55:26 +00:00
jlam
527f4e5d5b Make sure that the decompression/extraction programs needed are
automatically DEPENDed if EXTRACT_SUFX is set to a known suffix but
EXTRACT_ONLY is set to an empty value.  This should fix the problems for
audio/guspatches and textproc/iso8879 in the 2002-01-28 i386 bulk-build
results.
2002-01-28 19:08:18 +00:00
jlam
a1bedec55f We've changed DEPENDS=foo-* into DEPENDS=foo-[0-9]* everywhere else but
here, so correct that oversight.
2002-01-28 19:00:05 +00:00
jlam
a1d1eaa46e Prevent /etc/mk.conf from being included by BSD-style makefiles used by
packages themselves, as /etc/mk.conf may contain harmful settings for
package builds.  Just to clarify, /etc/mk.conf is still included by the
Makefiles in pkgsrc, just not by the Makefiles used to build the software
itself.  This should fix pkg/15297 by gabriel rosenkoetter
<gr@grappa.eclipsed.net>.
2002-01-27 20:01:56 +00:00
jlam
ef63cd028e MAKE_ENV is the make environment passed down to the build process. It
shouldn't be set as the environment for a make process invoked at the
package (${.CURDIR}) level during the install phase because it can contain
harmful settings.
2002-01-27 19:07:41 +00:00
jlam
22e5e6a756 Recognize how to automatically extract .shar.gz, .shar.bz2, .shar.Z, and
.shar distfiles.
2002-01-27 18:31:47 +00:00
markd
e176c1be82 x11-links version updated. 2002-01-27 10:33:46 +00:00
jlam
d4fadb8f03 Optimize the code to extract distfiles based on the extract suffix by
putting them all into one large case statement instead of successive if
statements, and by removing the creation and constant testing of a temp
file to mark when the distfile is extracted.
2002-01-25 07:16:16 +00:00
dmcmahill
a18a640ca8 For NetBSD/alpha versions >= 1.5V add -mieee to both CFLAGS and FFLAGS.
This will pass -mieee to those package which obey CFLAGS and FFLAGS.

paraphrasing an email from Ross:

The executive summary is: if i386 uses it (and
it does) then alpha should also, or some programs will SIGFPE out
on alpha when they don't on i386.

If anyone asks, the details are as follows:

The actual effect of -mieee is to put a software completion code
bit into every floating point instruction, and to put trap barrier
instructions in the code as necessary to ensure that traps are
delivered before branches or other instructions make it impossible
to trace backwards to the trapping op.

The code bits have little effect on the hardware, mainly what
happens is that when the hardware and palcode deliver a trap, they
tell the trap handler whether the faulting op had a completion
code.  If it did, the kernel is suppose to trace backwards, find
the op, and interpret it in SW, doing all the wacky ieee stuff that
most chips don't do, stuff like denormal arithmetic and the generation
of magic values (infinity, NaN) and the sticky flags.  We do all
that now except for a couple of truly obscure things that SoftFloat
didn't support and which I haven't yet added. (And these are things
that happen ONLY when you are taking overflow and underflow traps,
which no one has every really done AFAICT. If you have the default
behavior of gradual underflow and nontrapping infinity generation,
we do everything.)

This brings up the question of -mieee libraries, but that's not a
pkgsrc problem. (Except to the extent that I recommend that libraries
from pkgsrc, like everything else, also be compiled with -mieee.
And in the case of libraries, it might be worth individually
modifying the Makefile for the "not easy" case.)
2002-01-24 14:58:07 +00:00
jlam
31fdf27c0c Be more pervasive with previous change. 2002-01-23 15:02:27 +00:00
jlam
1269c18041 When copying config files, if the destination file already exists, then
tell user where the example file is located.  Patch provided by Stoned
Elipot <seb@netbsd.org> in private e-mail.
2002-01-23 15:01:08 +00:00
seb
47b83eb563 Continue the trend removing the temporary ${PKGDIR} workaround. 2002-01-23 13:05:51 +00:00
dmcmahill
eaf0cdda73 make sure FFLAGS ends up in MAKE_ENV as well as BUILD_DEFS. This allows you
to do
  make FFLAGS='-my -f -flags'
and at least the pkgs which obey FFLAGS use them.
2002-01-22 18:15:20 +00:00
jlam
b1bdb91416 Also replace for @SETENV@ (/usr/bin/env). 2002-01-22 17:46:52 +00:00
zuntum
388c4398ee Change the message
"Perhaps you forgot the -P flag to cvs co or update?"
to
	"Perhaps you forgot the -P flag to 'cvs checkout' or 'cvs update'?"
2002-01-21 21:09:41 +00:00
zuntum
0d4ac27951 Add QMAILDIR variable that defaults to /var/qmail, may be set in /etc/mk.conf
Also substitute QMAILDIR in PLIST because more packages than just mail/qmail
need it.
2002-01-21 17:31:02 +00:00
zuntum
933382a524 Add ${QMAILDIR} to MESSAGE_SUBST, as it is going to be used in all qmail-related
packages.
2002-01-21 16:31:42 +00:00
dmcmahill
0aa7588bd1 add some html markup to the .broken files (which now have .html extenstion).
The primary purpose is so when a package is broken due to broken depends,
there are links to the build logs of the broken dependencies.

Suggested by Brook Milligan on tech-pkg.
2002-01-20 03:07:05 +00:00
agc
22bb6a588b Add coarse-grained locking to pkgsrc builds, by means of a beefed
up version of the bare-bones code in PR 7590, from David Maxwell.

The definition governing the type of locking used is PKGSRC_LOCKTYPE,
which can take any of the values "none", "sleep", and "once".  The
default is "none".  If "sleep" locking is used, and process A is
building a package, when process B attempts to build the same package,
process B will sleep for PKGSRC_SLEEPSECS seconds, and attempt to grab
the lock again.

Coarse-grained locking uses the OBJHOSTNAME definition to ensure that
the PID space is regular for shlock(1) to do its work.  The
pkgsrc/pkgtools/shlock package has been provided for environments
where shlock is not standard.
2002-01-19 21:29:41 +00:00
tron
7d18240a15 Apply quoting to "${SORT_SITES_CMD}" to make Solaris's "/bin/sh" happy. 2002-01-18 22:14:09 +00:00
drochner
0c0d581f04 nuke USE_PYTHON, it's not needed anymore 2002-01-17 13:07:15 +00:00
drochner
3140425d02 if a sub-make is invoked to install a prerequisite pkg, pass it the
required pkg name (as PKGNAME_REQD)
2002-01-15 17:27:55 +00:00
wiz
baf3a7ecf5 Add zh_TW locale dir, per pkg/15250. 2002-01-15 09:26:47 +00:00
seb
f0fc6a1b7c Test before creating ${_DISTDIR} to avoid Solaris' /bin/mkdir apparent
brokenness.
2002-01-15 09:02:09 +00:00
jlam
855a73d0a1 Rearrange code so that if EXTRACT_CMD is defined, then it is used to
extract all of the files listed in ${EXTRACT_ONLY}.  This is so that a
package author doesn't have to grub through bsd.pkg.mk in order to find
how to override the extraction method.  Problem noted by Antti Kantee in
private email.
2002-01-15 00:32:12 +00:00
dmcmahill
d99a79b2eb add the OBJHOSTNAME functionality that appeared in 1.901 of bsd.pkg.mk.
When OBJHOSTNAME is set, the various cache files and log files will include
the hostname in their names.  Useful when multiple machines of the same
architecture share pkgsrc.
2002-01-12 02:25:59 +00:00
agc
cf3780e1c2 Add and document a new OBJHOSTNAME definition.
If set, the first component of the hostname (up to the first '.', if any),
will be appended to "work." to form the WRKDIR_BASENAME.

OBJHOSTNAME takes precedence over OBJMACHINE.
2002-01-11 14:41:41 +00:00
jlam
5519a9b4a6 bsd.pkg.install.mk lists many things in FILES_SUBST, and we should have
something to replace for each of those things in the header.
2002-01-10 12:05:26 +00:00
jlam
00d36e3d3e Also substitute for ${PKG_SYSCONFDIR} in MESSAGE files. 2002-01-10 02:51:30 +00:00
seb
82108506a9 Add elk package variable used to determine if X11 module is enabled or not. 2002-01-09 23:13:11 +00:00
seb
30fab924d7 In automake*-override targets make sur that find return a least a file
(/dev/null) for touch to operate on or else it fails. Also corrected
TOUCH_ARGS to TOUCH_FLAGS.
2002-01-09 12:53:46 +00:00
seb
08f51fd3b6 Only add rpath to LDFLAGS when the platform supports it. 2002-01-07 13:50:06 +00:00
fredb
3790b8d3a3 Remove support for MASTER_SITES_foo and PATCH_SITES_foo, without further
ceremony, as we can use SITES_foo instead, as is now documented in
Packages.txt. The former were only ever used by exactly three packages
(ghostscript, ghostscript-nox11, and kterm).
2002-01-06 23:41:53 +00:00
fredb
4190269fda Put back the DIST_SUBDIR handling in the _FETCH_ALLFILES macro. 2002-01-06 23:01:31 +00:00
fredb
4299add24c Re-work the fetch target(s), as discussed on "tech-pkg". The primary
motivation is to make the order that sites are hit more sane, and
especially to prevent hitting sites that aren't ever expected to have
the sought after file.

Now, ${MASTER_SITE_OVERRIDE} is always hit first. If that fails, then
the sites designated for that file, then ${MASTER_SITE_BACKUP}, are hit
(by default), but with the order subject to ${MASTER_SORT_REGEX} and
${MASTER_SORT_AWK}. The "designated sites" are usually ${MASTER_SITES}
for files in ${DISTFILES}, and ${PATCH_SITES} for files in ${PATCH_FILES}.
However, defining a variable `${SITES_foo}' in the package "Makefile"
overrides that for file "foo". [The use of ${MASTER_SITES_foo} and
${PATCH_SITES_foo}, which is currently only used by a couple of packages
for the same purpose, is deprecated, and will be shortly unsupported.]

Also eliminate redundancy in the do-fetch and fetch-list-one-pkg targets,
by making them use a single, common macro (escaped with `:Q' in the
fetch-list-one-pkg case), so "make fetch-list-one-pkg | sh" now does
exactly the same thing as "make do-fetch".
2002-01-06 20:03:22 +00:00
tron
af1baae4b9 Fix file recognition for "unbuildlink-buildlink-subst" so it recognize
shell scripts under Solaris.
2002-01-06 02:36:40 +00:00
tron
3aabf95251 Rewrite handling of "AUTOMAKE_OVERRIDE" so that files get touched in the
desired order and in an order based on who the filesystem orders things.
2002-01-06 02:03:40 +00:00
tron
8b43c84427 Remove duplicate handling of "USETOOLS". It's already defined and added
to "MAKE_ENV" in "bsd.prefs.mk".
2002-01-06 00:52:24 +00:00
tron
bc10b0147d Ignore "/usr/bin/msgfmt" under Solaris because it's not the GNU version. 2002-01-05 22:46:18 +00:00
tron
ce3792929b Use wildcard in dependence on "gtexinfo" package so that "USE_GTEXINFO"
accepts version 4.0 of the package.
2002-01-05 18:40:32 +00:00
tron
6a420f1c63 Use abstract names like "datasize" and "stacksize" in "UNLIMIT_RESOURCES"
to avoid portability problems as suggested by Jim Wise.
2002-01-05 06:46:03 +00:00
skrll
350f63106d Allow objects of the form libfoo_pic.a to be linked into shared objects as
well as the normal shared objects. This means that the new toolchain, that
links in libgcc_pic.a, will build proper shared objects again.

Bump to nb5 and make this the required version.

Fixes pkg/15120 from Matthias Scheler <tron@colwyn.zhadum.de>
2002-01-04 15:20:25 +00:00
agc
e4dbe506cc Minor indenting nit. 2002-01-04 12:25:43 +00:00
tron
14eba4b9da Add a new variable "UNLIMIT_RESOURCES" which can be used to raise process
limits for building a package.
2002-01-04 12:00:56 +00:00
jlam
ee5329b301 Explicitly set BUILDLINK_DIR and BUILDLINK_X11_DIR with = instead of ?=.
We really don't want these to change from the correct values (within
${WRKDIR}).
2002-01-03 20:00:06 +00:00
jlam
09f8eb47e6 Remove trailing \ in the sed expression for config script wrappers as Linux
chokes on the construct.  This was a pasto that's been there for a while
but was uncaught.  Thanks for David Brownlee <abs@netbsd.org> for noting
the problem and the solution.
2002-01-01 19:10:03 +00:00
wiz
cf7225d55f NS_ENCRYPTION hasn't been user-decidable for over a year now -- remove option. 2002-01-01 18:21:27 +00:00
agc
0b9363342f Darwin's patch(1) requires that you tell it to make backup files, as well
as giving it a suffix to name the backup file.
2001-12-27 21:27:07 +00:00
jlam
da525c873f (1) Create new variable "APACHE_SUEXEC_CONFIGURE_ARGS" that may contain
--suexec-* configure options that are passed directly to the Apache
    configure script.  This may be used to tune the suEXEC configuration
    in more restrictive ways, e.g. --suexec-uidmin=1000.  This solution
    is more open-ended than the fix proposed in pkg/14973.  Also, we
    don't duplicate all of the options from the Apache configure script
    in pkgsrc bsd.pkg.defaults.mk.  This closes pkg/14973 by Eric
    Schnoebelen <eric@cirr.com>

(2) For namespace consistency, deprecate APACHE_USER in favor of
    APACHE_SUEXEC_USER.  Move APACHE_USER into bsd.pkg.obsolete.mk.

(3) Create the suEXEC user when the functionality is enabled in the server
    so that CGI scripts will work properly.  This closes pkg/14903 by
    Wojciech Puchar <wojtek@3miasto.net>
2001-12-26 21:20:26 +00:00
jlam
d3009b7413 Remove excessively clever checks to allow a section to be seen only if it's
the second time this file is included.  Check for BSD_PREFS_MK instead.
2001-12-26 19:18:40 +00:00
jlam
e023ba1995 Define a symbol BSD_PREFS_MK that may be checked by Makefile fragments to
see whether they are being included from within bsd.prefs.mk or from
without.
2001-12-26 19:16:59 +00:00
jlam
c11241de17 Include bsd.prefs.mk so that INSTALL_RCD_SCRIPTS may be defined before the
relevant code in this file.
2001-12-26 15:40:32 +00:00
wiz
89fa319f1c Add another locale dir (bg). 2001-12-25 15:01:41 +00:00
wiz
dc3933cbd2 Add another locale dir (de_AT). 2001-12-25 14:42:58 +00:00
jlam
d0bd34b556 Initial implementation of pthread.buildlink.mk to transparently allow for
using either the native pthread implementation or using a package pthread
implementation instead, e.g. pth, ptl2, mit-pthreads, etc.  The only
currently supported package pthread implementation is pth as it's the only
one with a buildlink.mk file.  An example usage is:

	USE_PTHREAD=	native pth
	.include "../../mk/pthread.buildlink.mk"

or a fancier example is:

	USE_PTHREAD=	native
	.include "../../mk/bsd.prefs.mk"
	.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
	CONFIGURE_ARGS+= --without-pthreads
	.endif
	.include "../../mk/pthread.buildlink.mk"
2001-12-24 19:29:32 +00:00
jlam
4fe22fcdd8 Make the AUTOMAKE_OVERRIDE work for packages that use automake-1.5 and/or
autoconf-2.5* by touching some more files.  Thanks to YAMAMOTO Takashi
<yamt@mwd.biglobe.ne.jp> for pointing out the error in private e-mail.
Also list several packages on which to verify this code after making
changes to the AUTOMAKE*_PATTERNS.
2001-12-23 19:32:15 +00:00
jlam
d89437dc5f Change the way the files used by the GNU auto* tools are touched. We now
touch some files before the configure script is run, and some more
afterwards.  We touch the files afterwards since the configure script can
get modified after it is run, and touching some files afterwards prevents
them from being regenerated if they depend on the configure script.
2001-12-22 05:45:23 +00:00
fredb
9969c5d859 By popular demand, change the default screen library for "lynx" to
curses. On NetBSD-1.5.*, the appearance in an xterm is nearly the same
as with libslang.
2001-12-21 03:59:15 +00:00
jlam
05aefeaedc Teach bsd.pkg.mk how to extract all files in ${EXTRACT_ONLY} that end in
suffices listed in ${_EXTRACT_SUFFICES}.  Currently, _EXTRACT_SUFFICES has
.tar.bz2, .tbz, .tar.gz, .tgz, .tar, .zip, .lzh, and .lha.  If the file
doesn't end in any of these suffices, then we use the old code to do the
extraction.  This rids us of the mild annoyance where if you have several
distfiles, some ending in .tar.bz2, some in .tar.gz, and others in .zip,
then you have to create a post-extract target to extract all of the ones
not ending in the suffix that you designate in EXTRACT_SUFX.

I've tested this with some representative packages: archivers/gtar-base,
print/cups, www/surfraw, and print/ghostscript-nox11.
2001-12-19 23:14:01 +00:00
jlam
a1454d57c1 D'oh! I had the logic reversed for the INSTALL_RCD_SCRIPTS check. 2001-12-19 21:32:32 +00:00
wiz
f4c8fa01e4 Wildcard lha dependency. 2001-12-19 20:02:41 +00:00
jlam
49b5ebd66d Do previous without breaking package Makefiles that use RCD_SCRIPTS and
expect it to contain the list of example rc.d scripts.
2001-12-19 14:54:48 +00:00
agc
f42759a800 Add a new _OPSYS_HAS_GMAKE definition, to denote that the OS has GNU make
as standard.

Hoist the default definition of ${GMAKE} from bsd.pkg.mk into the different
defs.${OPSYS}.mk files.

A non-standard location or name for GMAKE can still be specified in
/etc/mk.conf.
2001-12-19 10:29:11 +00:00
jlam
9efcd64075 Since print/cups conflicts with another popular print package,
print/lprng, we make a new variable USE_CUPS that is used by packages to
determine whether depend on print/cups and to compile in support for CUPS.
USE_CUPS may be either "YES" or undefined.  Deprecate SAMBA_WITH_CUPS as
its purpose is superseded by USE_CUPS.  Convert net/samba and net/samba20
to use USE_CUPS and make x11/kdelibs2 respect USE_CUPS.
2001-12-18 20:22:59 +00:00
jlam
c332d7343e By default, don't install the rc.d scripts into /etc/rc.d. Despite the
fact that they don't do anything unless the appropriate variables are set
in rc.conf, people really dislike the warning emitted at startup.  For
users that do want the pkg_* tools to handle automatically copying and
removing the rc.d scripts, the mk.conf variable to set is
INSTALL_RCD_SCRIPTS=YES.
2001-12-18 19:54:00 +00:00
bouyer
8ed9cff11c Add an example of use of the french distfile mirrror. 2001-12-17 11:45:05 +00:00
tron
b19ba9582c Use "/usr/xpg4/bin/sed" instead of "/usr/bin/sed" under Solaris because
the later one has problem with very long lines which will e.g. break the
"x11-links" package.
2001-12-17 09:36:31 +00:00
dmcmahill
f68e56c389 - add 'bulk-cache' and 'clean-bulk-cache' targets to create and remove
the cache files used during a bulk pkgsrc build.

- replace the code in the build script that used to create the cache
  files with a 'make bulk-cache' call.
2001-12-17 02:32:22 +00:00
dmcmahill
6ce14a63b7 add more checks to be more robust in the face of an index file which
may not be 100% accurate.
2001-12-16 14:27:07 +00:00
agc
ccff9099bc Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
references of the pkglint package.

_PKGSRCDIR is an internal definition in bsd.pkg.mk, and a few packages
which would like to refer to other packages in the build tree. It should
not be set by users, but neither should it stop a user from building a
package if it is defined, so make it obvious that this is the case.
2001-12-15 20:25:34 +00:00
jlam
78b49b9c42 Substitute for GREP as well. 2001-12-13 06:32:55 +00:00
wiz
9d774a36a3 Retire USE_CURSES, which was superseded by devel/ncurses/buildlink.mk, and
has now been purged from pkgsrc.
2001-12-12 16:30:04 +00:00
abs
e40b0cc41e Add LOWER_OS_VERSION to match LOWER_OPSYS, LOWER_VENDOR, and LOWER_ARCH 2001-12-12 12:31:14 +00:00
abs
21f8349674 if .tar.bz2 needs bzcat, so does .tbz 2001-12-11 16:28:55 +00:00
jlam
6d527d5c53 Substitute for HEAD and GTAR. 2001-12-10 23:02:17 +00:00
jlam
a5de71f0ad We want to touch the configure script last (after touching the source
files) in the AUTOMAKE_OVERRIDE code so as to prevent autoconf from
regenerating the configure script.  A "*" was mistakenly added in
revision 1.874.
2001-12-10 19:36:10 +00:00
martti
57bda3929e Added SASL_USE_GSSAPI=YES 2001-12-10 12:43:58 +00:00
jlam
03da0a53d5 Subst. for PERL5 in INSTALL files. 2001-12-09 09:22:29 +00:00
kristerw
4b3a1baa04 pkgtools/x11-links has been updated. 2001-12-08 23:17:18 +00:00
hubertf
2dfc71380d Treat PKGREVISION=0 as if it wasn't set (-> add no "nb0") 2001-12-08 02:12:38 +00:00
abs
1ff09b25bf remove : at end of if exists() 2001-12-07 09:52:57 +00:00
martti
3b68fb9b50 Added optional IPv6 support for Cyrus. 2001-12-06 09:50:12 +00:00
agc
3d43fa67e2 Add support for OS X-style dylibs when creating the derived PLIST file. 2001-12-05 16:42:46 +00:00
seb
1339fe73d0 Fix of commands invoking {USER,GROUP}ADD so that '-{u,g}' and '{user,group}id'
are two distinct shell words.
Reviewed by Johnny C. Lam.
2001-12-04 21:05:06 +00:00
jlam
478cba00bb By default, prevent invocation of GNU "auto*" driven by the generated
Makefiles during the build process by touching various auto{conf,make}
source files to make them up-to-date.  Packages that require regenerating
the configure script and Makefile.in files should make the appropriate
calls to auto{conf,make} in a pre-configure target.  This allows the
various targets listed in ${_CONFIG_PREREQ} to modify the generated files
without triggering the GNU auto* tools and having the modifications be
overwritten.
2001-12-04 06:14:57 +00:00
martti
936a0c4a88 Added POSTFIX_USE_INET6 2001-12-03 06:20:22 +00:00
kent
0a244f3f6a Add POSTFIX_USE_SASL_AUTH.
Rename POSTFIX_PCRE to POSTFIX_USE_PCRE.
2001-12-03 04:51:08 +00:00
wiz
1a9a466f05 Add support for distfile-specific master sites, as requested in pkg/7471.
Syntax:
MASTER_SITES_completefilename=	http://specific.master/site
and similarly for PATCH_SITES.
Convert print/ghostscript-nox11 and x11/kterm to take advantage of this.
2001-12-02 21:29:20 +00:00
jlam
e1a97d1b32 Support automatically calling the INSTALL script during installation. This
currently only occurs for packages that use bsd.pkg.install.mk.

There are two new targets, pre-install-script and post-install-script, that
default to doing nothing.  The order of targets called for a "make install"
is:
	pre-install-script
	pre-install
	do-install
	post-install
	post-install-script

The new targets are defined in bsd.pkg.install.mk to call the INSTALL
script with the PRE-INSTALL and POST-INSTALL options.
2001-12-02 03:11:35 +00:00
jlam
e29d306201 The *_POST_SED variables became private in bsd.buildlink.mk. 2001-12-02 02:58:35 +00:00
hubertf
2541962f5b Catch errors while running printindex 2001-12-01 12:40:52 +00:00
hubertf
0d78b9168b there's no need to abort this whole script if one pkg brings up an
error.
2001-12-01 12:32:08 +00:00
jlam
28dc06397c Create ECHO_BUILDLINK_MSG for printing buildlink diagnostics. It's just
set to '${ECHO_MSG} "=>"' for now.
2001-11-30 17:21:54 +00:00
jlam
f64db488c6 Factor out code that substitutes for text in files into a macro target.
Less cut-and-paste, more code sharing.  Also comment the file a bit more.
2001-11-30 17:14:14 +00:00
jlam
142b319a6d Move code from end of the do-configure target that performed the
LIBTOOL_OVERRIDE steps into a separate do-libtool-override target.  Create
a new variable _CONFIGURE_POSTREQ that currently lists do-libtool-override.
Also add some documentation for the two _CONFIGURE_* variables:

_CONFIGURE_PREREQ is a list of targets to run after pre-configure but before
	do-configure.  These targets typically edit the files used by the
	do-configure target.

_CONFIGURE_POSTREQ is a list of targets to run after do-configure but before
	post-configure.  These targets typically edit the files generated by
	the do-configure target that are used during the build phase.
2001-11-30 05:03:06 +00:00
jlam
b7c7ffb871 Move the REPLACE_PERL code into a separate configure pre-requisite target
"replace-perl", instead of keeping it as part of the do-patch target.  Now,
a "make patch" will result in just the patched sources.
2001-11-30 03:48:14 +00:00
jlam
ad76e9aa21 Rename "do-libtool" target to "do-ltconfig-override" as the new name is more
descriptive.  There is a separate step to replace the actual libtool script
that is controlled by LIBTOOL_OVERRIDE within the "do-configure" target.
2001-11-30 03:19:04 +00:00
wiz
d6b705489b Remove REPLACE_CURSES from bsd.pkg.mk (not needed anymore), and don't
document it and USE_CURSES in Packages.txt anymore (packages should
really use devel/ncurses/buildlink.mk instead).
2001-11-30 01:26:32 +00:00
wiz
ae741f1ba0 Update XCONTRIB path for .at. 2001-11-30 00:30:40 +00:00
wiz
8457cdbc38 Drop a line of the form '^<TAB>$'. 2001-11-29 20:06:03 +00:00
hubertf
5542206cba Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.

Example #1:
        DISTNAME=       foo-X.Y
        PKGREVISION=    Z
     => PKGNAME=        foo-X.YnbZ

Example #2:
        DISTNAME=       barthing-X.Y
        PKGNAME=        bar-X.Y
        PKGREVISION=    Z
     => PKGNAME=        bar=X.YnbZ (!)

On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
2001-11-29 01:12:24 +00:00
tv
92d724ccfe In the odd possible case of someone using "pkgsrc" underneath "src"
(even though that's still a bad idea), set USETOOLS=no explicitly before
including <bsd.own.mk>, and add this also to MAKE_ENV to make BSD-Makefile
based packages build properly.
2001-11-28 19:58:13 +00:00
jlam
208d40b3a2 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAME is
use to set PKGBASE, which is used in the name of the package-specific
config directory override (PKG_SYSCONFDIR.${PKGBASE}).  Prior to this, if
PKGNAME wasn't explicitly set in the package, then the override would not
work.
2001-11-28 19:55:31 +00:00
jlam
1629930a91 cvsweb also implicitly used ${APACHE_SYSCONFDIR} as its config file
directory.
2001-11-28 14:01:16 +00:00
jlam
22116387be Fix problem where bsd.pkg.obsolete.mk wouldn't be found when "make" was
executed outside of a package directory.  Problem and fix noted by Stoned
Elipot in private email.
2001-11-28 12:05:20 +00:00
abs
6dd01d2785 lose some more pkg/ references 2001-11-28 10:21:46 +00:00
hubertf
0e82c4e633 Add commented-out entry for GQMPEG_NO_RUSSIAN 2001-11-27 02:07:53 +00:00
jlam
22d02d6b3e Replace PKG_{USER,GROUP} with PKG_USERS and PKG_GROUPS:
PKG_USERS represents the users to create for the package.  It is a
	space-separated list of elements of the form

		user:group[:[userid][:[descr][:[home][:shell]]]]

	Only the user and group are required; everything else is optional,
	but the colons must be in the right places when specifying optional
	bits.  Note that if the description contains spaces, then spaces
	should be double backslash-escaped, e.g.

		foo:foogrp::The\\ Foomister

PKG_GROUPS represents the groups to create for the package.  It is a
	space-separated list of elements of the form

		group[:groupid]

	Only the group is required; the groupid is optional.

This solves the problem of what to do when there is more than one user or
group needed for a package, e.g. qmail.  Also add a bit more error-checking
to the INSTALL/DEINSTALL scripts.
2001-11-26 20:37:38 +00:00
hubertf
0a38992063 fetch-list: properly quote URLs printed, as they may contain things that
the shell doesn't like.

Fixes PR 14347 by Ben Wong <Benjamin.Wong@cc.gatech.edu>
2001-11-26 19:56:06 +00:00
jlam
ad7cbda464 In fit of paranoia after reading about the iTunes installer and given we
now work on Darwin, and then the discussion about allowing spaces in
user/group names, make these scripts work even if the inputs contain
spaces.  Yes, this is overkill, but after doing all of the work, I didn't
want to waste it.
2001-11-26 14:48:53 +00:00
jlam
450b47d81a p5-HTTPD-User-Manage also used APACHE_SYSCONFDIR (implicitly). Also
re-indent for aesthetic considerations.
2001-11-26 05:18:01 +00:00
hubertf
a329f921a8 Run "make bulk-package" with stdin redirected from /dev/null,
to prevent it sitting there for days waiting for input in useless
situations.
2001-11-26 00:55:45 +00:00
dmcmahill
ad3cbb6276 fix typo in error output message (s/PKNAME/PKGNAME). Patch from
Hubert Feyrer.
2001-11-25 23:24:26 +00:00
jlam
04f059f6c0 Fix pasto: PKG_GROUP -> PKG_USERID. 2001-11-25 21:16:30 +00:00
jlam
3f8b0469a6 Check for an empty value for PKG_SYSCONFSUBDIR and set PKG_SYSCONFDIR
accordingly so that config files are in /usr/pkg/etc/foo.conf, and not
/usr/pkg/etc//foo.conf.
2001-11-25 19:38:55 +00:00
jlam
a17ddb6e66 www/apc-gui also used APACHE_SYSCONFDIR. 2001-11-25 19:33:45 +00:00
jlam
634f133269 Deprecate APACHE_SYSCONFDIR, PHP_CONFDIR, VTUN_SYSCONFDIR by moving them
to bsd.pkg.obsolete.mk.
2001-11-25 19:29:56 +00:00
jlam
d8ac0cc4f5 This file holds make(1) logic to allow obsolete or deprecated variables
still to be used.  These may eventually disappear over time as the contents
are, by definition, obsolete and deprecated.
2001-11-25 19:28:08 +00:00
jlam
0252126161 Pass PKG_SYSCONFDIR to the configure and build processes. 2001-11-25 19:04:19 +00:00
jlam
ffceca11a9 PKG_SYSCONFDIR is where the configuration files for a package may be found.
This value may be customized in various ways:

PKG_SYSCONFBASE is the main config directory under which all package
	configuration files are to be found.

PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
	configuration files for a particular package may be found.

PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
	particular package.

Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.

This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
2001-11-25 18:59:45 +00:00
jlam
cfd5b704a7 Allow ALL_{DIRS,FILES,MAKE_DIRS} to be appended to by the extra templates
so that the general INSTALL/DEINSTALL scripts can manage these extra files
and directories.
2001-11-25 18:54:57 +00:00
kim
c60d7684ea Change SQUID_SYSCONF_DIR to SQUID_SYSCONFDIR to match www/squid/Makefile 2001-11-23 16:09:24 +00:00
abs
3bcafcfa14 Add SU to FILES_SUBST 2001-11-23 14:37:24 +00:00
tron
834eef2293 Add documentation of variable "SQUID_SYSCONFDIR". 2001-11-23 10:23:45 +00:00
tron
7c7d68c5c5 Add a new option "MUTT_USE_SLANG" to use the "slang" library instead of
"curses" because the first deals with resize better, especially under
NetBSD 1.5/1.5.x. This change was suggested by Joe Abley in PR pkg/13630.
2001-11-22 21:34:45 +00:00
agc
93549791ee Now that all the files have been moved into the main package directory,
remove the temporary ${PKGDIR} workaround.
2001-11-21 18:32:01 +00:00
jlam
1b41bcfdb0 Refer to /etc/rc.d as ${RCD_SCRIPTS_DIR} more thoroughly. 2001-11-21 16:10:03 +00:00
jlam
f1b957484f Change the way the RCD_SCRIPTS variable is used. It now just lists the
names of the scripts and is no longer a MLINKS-type variable.  The scripts
are copied into ${RCD_SCRIPTS_DIR} which defaults to /etc/rc.d for now.
It's unclear if Linux/Solaris would set RCD_SCRIPTS_DIR to something else.
2001-11-21 15:43:01 +00:00
agc
6dde5fcc79 Move some operating-system specific definitions to the individual
defs.${OPSYS}.mk files.
2001-11-21 14:10:06 +00:00
agc
beda0b43f8 Add an _OPSYS_HAS_OSSAUDIO definition to the individual defs.${OPSYS}.mk
files, and use it in ossaudio.buildlink.mk. The definition shows whether
or not libossaudio is available in the OS.
2001-11-21 13:57:31 +00:00
agc
1b690b5a38 Move MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT definitions into the
individual defs.${OPSYS}.mk files. No change in functionality.
2001-11-21 13:54:14 +00:00
agc
89257b87f1 Add _OPSYS_HAS_MANZ and _PREFORMATTED_MAN_DIR definitions to the
individual defs.${OPSYS}.mk files, and use them in bsd.pkg.mk.

+ _OPSYS_HAS_MANZ defines whether or not the OS does MANZ handling as standard

+ _PREFORMATTED_MAN_DIR is the name of directory (cat or man) where
preformatted manual pages go.

Rename the internal definitions used in the generation of PLIST files to
start with '_'.

This completes the "generic" changes to bsd.pkg.mk.
2001-11-21 13:44:44 +00:00
agc
03c35761df Add a _DO_SHLIB_CHECKS definition to the individual defs.${OPSYS}.mk
files, and use it in bsd.pkg.mk.  This definition controls the fixup
of PLISTs at installation time, and running of ldconfig if necessary.
2001-11-21 13:17:14 +00:00
agc
715864dc96 Add a _PATCH_BACKUP_ARG definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition is the switch to patch(1) to
provide backup files when patching.
2001-11-21 13:09:08 +00:00
agc
b9a41cdc6b Add a _USE_RPATH definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition says whether or not the rpath
is to be added to the LDFLAGS definition.
2001-11-21 13:02:52 +00:00
agc
e3865c8037 Add a _DO_LIBINTL_CHECKS definition to the individual defs,${OPSYS}.mk
files, and use it in bsd.pkg.mk. If set to "yes", checks that a valid
libintl library and header file should be performed.
2001-11-21 12:58:15 +00:00
agc
69788c2093 Add a definition of _IMAKE_MAKE to the individual defs.${OPSYS}.mk
files, defined to be the make program which is invoked by imake, and
use it accordingly in bsd.pkg.mk
2001-11-21 12:53:04 +00:00
agc
bac7e8965b Move default umask for operating systems into the individual defs.${OPSYS}.mk
files, rather than switching by ${OPSYS} within bsd.pkg.mk.
2001-11-21 12:42:23 +00:00
jlam
9875ea4f1d Forgot an EOF in the last commit. 2001-11-21 05:38:03 +00:00
jlam
b74b76b756 Remind the user that some rc.conf settings may need to be removed after
the package has been deleted.
2001-11-20 19:31:58 +00:00
jlam
950ae6dee2 We should only depend on sysutils/user in the !exists(/usr/sbin/user) case. 2001-11-20 16:53:44 +00:00
jlam
1024a4d42b Add definitions for ROOT_USER and ROOT_GROUP that are the symbolic names of
the root user and root group.
2001-11-20 16:19:20 +00:00
jlam
b1d477e863 For completeness, add a SUPPORT_FILES_PERMS that acts like CONF_FILES_PERMS
but the user isn't prompted to customize the files at post-install time.
2001-11-19 23:33:52 +00:00
jlam
c850f81b61 Common INSTALL/DEINSTALL scripts and Makefile magic to automatically perform
many of the tasks that need to be done when package is installed or
deinstalled:

	* creating user/group for the package,

	* creating and removing directories with special permissions and
	  ownership,

	* copying config files to their final locations, and removing them
	  at deinstall time if they don't differ from the example ones,

	* reminding the package admin of files he may want to customize or
	  of files/directories he may want to remove.
2001-11-19 16:18:44 +00:00
jlam
014a83ae0f Add definitions for USERADD and GROUPADD, used to create new users and
groups.  These commands follow the basic interface of the NetBSD/Solaris
useradd and groupadd programs.  For platforms on which these commands don't
exist, either sysutils/user is added as a dependency, or these are set to
${FALSE}, and the package admin is responsible for creating them himself
prior to the installation of a package.
2001-11-19 16:17:51 +00:00
jlam
b046604a94 Create a new variable CONFDIR that represents the directory where package
config files should go.  It may be overridden on a per-package basis by
defining CONFDIR.${PKGBASE}, e.g. CONFDIR.php.  ${CONFDIR} defaults to
${PREFIX}/etc, but it may be overridden in /etc/mk.conf, e.g. by setting
CONFDIR=/etc.

Packages will eventually be altered to find their config files in
${CONFDIR}.
2001-11-19 16:01:03 +00:00
tron
d68a1cb95e Remove GNOME on "ftp.fh-rosenheim.de" which doesn't carry any files at
the moment.
2001-11-16 20:35:19 +00:00
agc
c4d58dbc13 Remove superfluous definitions. 2001-11-15 12:17:19 +00:00
jlam
8e58770bc9 Convert some spaces to tabs. 2001-11-14 21:38:29 +00:00
jlam
770f9cd495 Allow MESSAGE_SRC to be a space-separated list of files, like PLIST_SRC,
that are concatenated together to form the whole MESSAGE file.
2001-11-14 21:04:43 +00:00
jlam
7e703bf189 Add ${PKGBASE} to the things to substitute for in PLISTs. 2001-11-14 12:38:51 +00:00
enami
3f546803ee Set values only when not defined yet. 2001-11-12 23:04:26 +00:00
jlam
ca75d3b6b7 Set a default value for BUILDLINK_DIR so that if no buildlink.mk files are
included, then it still points to a sensible location (${LOCALBASE}).
2001-11-11 09:46:51 +00:00
agc
7f77b835bf Check for DESCR_SRC, PLIST_SRC, MESSAGE_SRC, DEINSTALL and INSTALL files
in ${.CURDIR} as well as ${PKGDIR}, just in case the pkg/ directory still
exists but is empty.
2001-11-09 08:58:19 +00:00
agc
b3df2f05f8 Set the default values of SU_CMD and PRE_ROOT_CMD in bsd.pkg.defaults.mk,
not bsd.pkg.mk, so that the user is more aware of them (there were placeholder
examples of both definitions in bsd.pkg.defaults.mk already).

Explain PRE_ROOT_CMD a bit more throroughly, and correct an example of
its use.

Make an alternative definition for SU_CMD sync with reality.
2001-11-08 12:47:12 +00:00
agc
eb39a7e922 Following on from the removal of the automatic "is there a script to run" logic,
more speedups for building packages.

Get rid of a .USE macro, and do not spawn sub-makes for the pre-, do- and
post-target stages, replacing them with standard make(1) targets.

Timing information as follows (multiple runs performed, best results taken):

800 MHz Celeron, 128 MB, local pkgsrc, local obj
scripts/, pre,do,post-*:  	0.731u 0.261s 0:02.04 48.5%     0+0k 29+168io 9pf+0w
no scripts/, pre,do,post-*:	0.678u 0.242s 0:01.30 70.0%     0+0k 0+169io 0pf+0w
no scripts/, no pre,do,post-*:	0.267u 0.089s 0:00.90 37.7%     0+0k 0+155io 0pf+0w

40 MHz Sparc, 36 MB, nfs pkgsrc, local obj
scripts/, pre,do,post-*:  	22.590u 6.839s 0:33.31 88.3%    0+0k 121+254io 0pf+0w
no scripts/, pre,do,post-*:	22.481u 6.442s 0:33.30 86.8%    0+0k 120+251io 0pf+0w
no scripts/, no pre,do,post-*:   8.534u 4.189s 0:16.48 77.1%    0+0k 105+242io 0pf+0w
2001-11-08 09:29:56 +00:00
jmc
7c6e04b09e Change running output from build to include timestamp and current package.
Makes the output a bit long at times but gives a nice concise idea of where
you're at and if the build is moving
2001-11-08 02:52:25 +00:00
hubertf
b3e7e7baec The $DEPENDS file has the pkg's directory in the first column, followed by
whitespeace, followed by it's required pkgs. Make sure to look for that
whitespace, to not catch any wrong positives, e.g.

	egrep "x11/kdebase.*" $DEPENDSFILE

will catch depends for both KDE1 and KDE2 and do weird things then (among
other things, think that kdelibs-2.2.1 is ok as a dependency when building
in x11/kdebase, which is certainly not!)

Eight broken pkgs less in the bulk builds by adding a single space!
(Now if adding some more would help further... :-)
2001-11-07 00:29:20 +00:00
hubertf
f1d960e21b "bulk-install" already makes a binary package and cleans up after itself,
no need to make "bulk-package" or "clean" after it!
2001-11-06 13:45:33 +00:00
agc
55b1c236e7 My thanks to Thorsten - this part of my change for Darwin support was
lost.

However, modify previous change to let Darwin know about SHAREOWN,
SHAREGRP and SHAREMODE in a different way - no point in checking for
OPSYS here, since every OPSYS has to know about them.
2001-11-04 19:49:56 +00:00
frueauf
8e847c8588 "Darwin" needs to know about SHAREOWN, SHAREGRP and SHAREMODE too. 2001-11-04 13:42:01 +00:00
jlam
32a207a6c8 Also substitute for CHMOD, CHOWN, CHGRP in PLISTs. 2001-11-03 04:58:15 +00:00
hubertf
6bee88b176 Add GQMPEG_NO_JAPANESE variable to allow keeping gqmpeg from interpreting
russian-language ID3 tags as japanese-language ones.

Patch submitted by Sergey Svishchev <svs@ropnet.ru> in PR 14426.
2001-11-02 01:24:05 +00:00
jlam
64468de1ee So many of our PLIST use mkdir, rmdir, and true, and we have full paths to
these utilities in ${MKDIR}, ${RMDIR}, and ${TRUE}, so substitute for them.
2001-11-01 20:37:17 +00:00
zuntum
33f6d98857 Make REPLACE_PERL work -- recent "-e s,/bin/perl,${PERL5}" addition broke it.
Now the sed command is "s,#!.*/bin/perl,#!${PERL5},"
2001-10-31 18:05:48 +00:00
tv
fb3433e354 Fix an improper newline in a comment (was <TAB>bing all the way to column 80). 2001-10-31 14:29:04 +00:00
agc
7167cd3880 Add initial support for Darwin (1.4) to pkgsrc. 2001-10-30 13:53:15 +00:00
jlam
b3dec5f544 On Solaris 7, when `find dir -name foo -name bar' in invoked, only an
implicit `-print' action is performed on bar and not on foo.  Surround
the search pattern in \( ... \) and add an explict -print so that all of
the results of the find are printed.

Problem noted and patch to fix this received in private email from Stoned
Elipot <seb@netbsd.org>.
2001-10-29 19:21:18 +00:00
skrll
c5e44f3ff0 Make print-PLIST generate
@exec ${MKDIR} %D/...

instead of

	@exec ${MKDIR} ${PREFIX}/...

Hopefully this might mean I don't commit incorrect PLISTs.
2001-10-29 15:10:14 +00:00
tron
8d0e937ff7 Add a new "show-vars" target which allows to display several makefile
variables at once.
2001-10-26 21:42:44 +00:00
jlam
83a062506e If AUTOMAKE_OVERRIDE=YES then we touch files in ${WRKSRC} in such a way
that GNU autoconf/automake are not executed during the build process, even
if the tools exist in the build environment.  This prevents the build
process from overwriting any changes made to the configure script or to the
Makefile.in files.
2001-10-26 17:03:04 +00:00
jwise
2d3b50b92d Expand description of the ${PKG_JVM} selector to note that ${JAVA_HOME} is
set based on this choice if unset, and that blackdown-jdk13 is the default
on powerpc.
2001-10-26 16:18:46 +00:00
jwise
a4df548561 Correct description of ${JAVA_HOME}. ${JAVA_HOME} is used to select an
installed JVM to use to build java-based packages.

${JAVA_HOME} is not used to select where to install java based packages.  All
packages which install java .jar files should install them in
${PREFIX}/lib/java, so that they will be accessible to multiple installed
JVMs.
2001-10-26 16:08:53 +00:00
agc
507d23ecbf Also delete the magic invocation of scripts/configure and
scripts/{pre,post}-install - there is nothing that uses any of these,
and it incurs needless overhead.
2001-10-26 16:03:26 +00:00
wulf
967aaf280f Changed PKGDIR assignment to allow migration of files currently held in
${.CURDIR}/pkg directory to the toplevel of the package. It remains
backward compatible with the existing system allowing a progressive
transision process. The long term goal is a reduction of overheads and
processing time when working with the cvs tree.
2001-10-26 15:08:43 +00:00
agc
d52dd5005a At present, if there is a pre-<target> or post-<target> script in
the scripts/ directory, it will be run automatically as part of
the build process, by bsd.pkg.mk.  There are now exactly 5 packages
in pkgsrc which use this facility, and yet, for every package build,
the existence of a script is checked by bsd.pkg.mk once before the
target is executed, and once afterwards. This incurs needless
overhead.

Move the separate pre- and post- script handling out of bsd.pkg.mk into
the individual package Makefiles, where it's much more obvious what is
happening, anyway.
2001-10-26 14:09:59 +00:00
skrll
9f28ffc95e Update REPLACE_PERL to work for /bin/perl and use it in kdelibs2 instead
of home grown post-patch target.
2001-10-26 13:57:58 +00:00
skrll
1034b557a9 Fix ltcf-cxx.sh to work on -current/new toolchains. That is make sure that
/usr/lib/crtbeginS.o and /usr/lib/crtendS.o make it into
{pre,post}dep_objects.

Fixes pkg/14353 from Witold J. Wnuk <witek@pd37.warszawa.sdi.tpnet.pl>

Tested as "still" working on 1.5.2.

Bump minor number of pkg and make pkgsrc depend on this version.
2001-10-26 07:47:38 +00:00
tron
758b507b69 Sort "PATCH_SITES" using "MASTER_SORT" and "MASTER_SORT_REGEX", too. 2001-10-25 18:12:53 +00:00
jlam
1755ddaba9 Make it easier to debug for the a.out case on an ELF machine. 2001-10-25 16:45:03 +00:00
jlam
a4bc16d30c I am a triple idiot. The only relevant variable that x11.buildlink.mk
redefines about which buildlink.mk files would care is BUILDLINK_X11_DIR,
which points to the location of the X11R6 hierarchy used during building.
If x11.buildlink.mk isn't included, then BUILDLINK_X11_DIR defaults to
${X11BASE} (set in bsd.pkg.mk), so its value is always safe to use.  Remove
the ifdefs surrounding the use of BUILDLINK_X11_DIR in tk/buildlink.mk and
revert changes to move x11.buildlink.mk before the other buildlink.mk files.
2001-10-24 22:10:43 +00:00
jlam
e44bb6e882 Rearrange some of the logic to consolidate the code that is a.out-specific.
Also name the replace-libnames-configure as part of ${_CONFIGURE_PREREQ}
instead of as a prerequisite to pre-configure.  This is needed so that the
replacement occurs _after_ pre-configure target is run, which may call
autoconf/automake to regenerate the configure scripts.  Before this change,
the replacement would be overwritten when the configure scripts were
regenerated.  This should fix a problem first noticed by Alistair Crooks
<agc@netbsd.org> in the net/mtr package.
2001-10-24 19:46:45 +00:00
jlam
51436ad116 The do-configure target has some "stuff" that is supposed to be done after
the pre-configure target is called but before the configure script is
called, but it's added in a non-extensible way.  This "stuff" is the
replace-ncurses step and the ltconfig-override step.  Move these steps out
into their own targets that are named as prerequisites to the do-configure
step.  The prerequisites are specified in the private variable
_CONFIGURE_PREREQ, to which other independent targets may be appended.
2001-10-24 19:42:28 +00:00
jlam
d663d4c647 Make some more variables "private" by prepending with an underscore. 2001-10-24 19:01:00 +00:00
jlam
dff59f9ec3 x11.buildlink.mk needs to be included before any buildlink.mk files that
use X11_BUILDLINK_MK as a test value.  Generally just reordering the
inclusions so that x11.buildlink.mk comes before the other buildlink.mk
files will make everthing work.
2001-10-23 13:14:43 +00:00
jlam
04a975cdc2 Replace the -and/-or options with -a/-o as the former don't work with
Solaris find.  The latter work across Solaris/NetBSD/Linux.  Patch
received in private e-mail from Stoned Elipot <seb@netbsd.org>.
2001-10-22 18:41:46 +00:00
seb
2440277f0a Added support variables for chat/ircd-hybrid 2001-10-21 21:26:57 +00:00
abs
783b4399f5 When working out if an installed package should be left as it
matches one of the DEPENDS, the bulk-build system looked up the
package in the INDEXFILE, then used the pkgdir returned to check
against the DEPENDS. If for some reason the package was not found
in the index file the package was left installed as 'requires
installed package'.
2001-10-20 09:07:13 +00:00
jlam
82ac6112bb Some Makefiles separate -R and the rpath directory with whitespace, so
handle that case.
2001-10-20 03:00:16 +00:00
dmcmahill
c6d0fbf0c5 - change the way we cause the build order to happen. The old way passed
GROUP_SPECIFIC_PKGS into a top pkgsrc level call to make.  The new way,
  uses a shell 'for pkgdir in ....' and then calls a make in each pkg
  directory.

  This does 2 things.  The first thing is that a 'build restart' starts
  up _much_ faster because instead of calling 'make' for each package we've
  already built and finding out they're already build, we just grep through
  the list of already built pkgs.  The second item (a side benefit) is that
  now a progress meter is simple.

- add a progress meter to the build.

- add even more error checking.
2001-10-20 00:30:22 +00:00
hubertf
46a42a2e26 Get rid of BUILD_ROOT and replace it with PKGSRCDIR (which was there
before!)
2001-10-17 23:23:15 +00:00
hubertf
678d2968b7 fix quotes 2001-10-16 20:50:54 +00:00
hubertf
ff639ea595 Change alignment of "Broken" column to right-justified - this makes
the (colored) numbers stand out better, visually.
2001-10-15 23:29:54 +00:00
hubertf
f0ecd0e301 Narrow doen the "Pkgs broken by" column by renaming it to "Breaks"
This gives this a bit of a chance to fit into 80 columns.
2001-10-15 23:18:51 +00:00
hubertf
78fc0d8a69 At the end of the build, remove the contents of the "perl" package
from the leftovers list - "perl-base" is long gone.
2001-10-15 23:00:10 +00:00
hubertf
485b9b34d5 Set ressource limits as high as possible before we'll start compiling 2001-10-15 17:19:23 +00:00
dmcmahill
d2b3a2b5e3 add some more failure checks for robustness.
- if something fails while extracting the DEPENDS for a particular package,
  mark that package as broken and drop the DEPENDS info for it.  This allows
  the build to continue and properly marks the package as broken.

- if something fails while extracting the PKGNAME, also mark the pkg as broken.

- be more careful about seeing if directories exist before cd'ing to them.
  Lack of such a test has caused problems elsewhere, so hopefully this will
  make the system more robust.
2001-10-14 20:34:53 +00:00
dmcmahill
8b1f1d76a0 after the build, pull in 'lang/perl5' instead of 'lang/perl5-base' as the
latter no longer exists.

Also, use '&&' to separate commands where you don't want the second to
execute if the first fails!
2001-10-13 14:32:01 +00:00
hubertf
cbf5bdf8e2 Change my non-standard copyright header to a BSD-style one. 2001-10-12 19:28:02 +00:00
tron
57f481af78 Pass "${USETOOLS}" down to package builds so that packages which use BSD
style makefiles can be build without a tools directory.
2001-10-12 15:40:56 +00:00
jlam
c46d036469 Allow people who set USE_BUILDLINK_X11 so as to experiment with the
buildlink-x11 package, to have that package installed.
2001-10-10 05:57:14 +00:00
jlam
7ab75bcd3e Make BUILDLINK_X11_{CPPFLAGS,LDFLAGS} private by prepending an underscore
to their names.  These values shouldn't be changed by Makefiles or
buildlink.mk files; rather, they're convenience variables used exclusively
within x11.buildlink.mk.
2001-10-09 18:18:52 +00:00
jlam
6dd456668a Make the variables BUILDLINK_CPPFLAGS and BUILDLINK_LDFLAGS private by
prepending an underscore to their names.  The values are not meant to be
set by Makefiles or buildlink.mk files.  However, the values are exported
through CONFIGURE_ENV and MAKE_ENV so that they may be used during the
respective processes.
2001-10-09 14:07:41 +00:00
jlam
ffdd7ac071 Back out last change that moved the prepending of BUILDLINK_CPPFLAGS and
BUILDLINK_LDFLAGS to CFLAGS, CPPFLAGS, CXXFLAGS, LDFLAGS from
bsd.buildlink.mk to bsd.pkg.mk.  They're unnecessary after the recent
changes to bonobo/buildlink.mk and to libglade/buildlink.mk that removed
their settings of BUILDLINK_CPPFLAGS.
2001-10-09 13:54:10 +00:00
agc
11863da187 Fix from Allen D. Ball <ball@iprotium.com> in PR 14183 - allow the
value of X11BASE to be set in /etc/mk.conf by using the usual
X11BASE?= /usr/X11R6 construct when setting the defaults in
bsd.pkg.defaults.mk
2001-10-09 10:01:11 +00:00
veego
cced4fab8d Update the x11-links BUILD_DEPENDS to 0.4. 2001-10-07 20:19:00 +00:00
tron
cb4432edd5 Prepend "${BUILDLINK_CPPFLAGS}" and "${BUILDLINK_LDFLAGS}" to "${CFLAGS}",
"${CPPFLAGS}", "${CXXFLAGS}" respectively "${LDFLAGS}" in "bsd.pkg.mk" and
not in "bsd.buildlink.mk" because "${BUILDLINK_CPPFLAGS}" and
"${BUILDLINK_LDFLAGS}" might get changed several times by the
"buildlink.mk" files of various packages.
2001-10-05 21:32:59 +00:00
wiz
785d210f50 Add ${PKGLOCALEDIR}/locale/bg*, e.g. for windowmaker 2001-10-05 12:11:23 +00:00
jlam
5ec5047fda Substitute for rpath references to buildlink directories in Makefiles
after the configure step.  There's a growing number of GNU configure
scripts that find a library in -L/path and automatically add -R/path to
the linker flags.  We need to make sure this doesn't happen to buildlink
directories.
2001-10-05 02:31:18 +00:00
jlam
d76266c66b Move the setting of replace_files within the cookie check so that if it's
expanded from some expensive operation, it isn't evaluated if it's not
needed.  Also fix the replace-buildlink target where we were potentially
evaluating ${REPLACE_BUILDLINK} twice when only once was enough.
2001-10-05 01:15:07 +00:00
jlam
8721aafafd Rename some replace_* variables to replace_files. I'm trying to factor
out some common code, and this is a start to make different code pieces
look more alike.
2001-10-05 00:21:58 +00:00
jlam
2f02cecb2c Factor out the pattern representing Makefiles into its own variable
MAKEFILE_PATTERNS.  Also replace -R${BUILDLINK_DIR}/lib with
-R${LOCALBASE}/lib on all the REPLACE_BUILDLINK files to prevent rpath
references to ${BUILDLINK_DIR} from getting into things like config
scripts.
2001-10-05 00:09:23 +00:00
jlam
bc6321a5e2 Replace -R${BUILDLINK_DIR}/lib with -R${LOCALBASE}/lib on all the
REPLACE_BUILDLINK files to prevent rpath references to ${BUILDLINK_DIR}
from getting into things like config scripts.
2001-10-05 00:08:17 +00:00
agc
ed7610d006 Use the usual _PKG_SILENT and _PKG_DEBUG definitions in the
show-installed-depends target.
2001-10-04 22:01:54 +00:00
agc
12106c0620 use ${PKG_INFO} rather than pkg_info in show-installed-depends target,
so that the correct setting of PKG_DBDIR is used, and the correct
pkg_info binary too, presumably.

Make show-installed-depends work on Solaris (untested) by only defining
the target if DEPENDS is defined.
2001-10-04 21:48:12 +00:00
jlam
b66ae413cf Try not to have BUILDLINK_X11_*FLAGS be added multiple times to CFLAGS,
CPPFLAGS, CXXFLAGS, or LDFLAGS.
2001-10-04 08:00:13 +00:00
jlam
2b9404e054 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
installed, as it currently breaks builds that use imake.  I made an
announcement on current-users and tech-pkg on this, but having the make
logic place to verify that buildlink-x11 is actually gone is better.
2001-10-04 07:56:06 +00:00
jlam
ded9263431 Document the following variables:
REPLACE_BUILDLINK
	REPLACE_BUILDLINK_PATTERNS
	REPLACE_BUILDLINK_SED
	REPLACE_LIBNAMES
	REPLACE_LIBNAMES_PATTERNS
	REPLACE_LIBNAMES_SED
	BUILDLINK_CONFIG_WRAPPER_SED

Also prepend an underscore to REPLACE_LIBNAME_SCRIPT as it's not a variable
we're exporting.
2001-10-04 03:29:08 +00:00
jlam
68947ab066 Fix typo in previous commit. 2001-10-04 01:02:16 +00:00
jlam
d6a2295451 Make explicit what the mammoth sed expression in the _BUILDLINK_USE target
is supposed to do: filter out libtool archives from the list of files
to link into ${BUILDLINK_DIR}.
2001-10-03 23:27:07 +00:00
jlam
98cd81fd46 Invent new variables:
REPLACE_LIBNAMES_PATTERNS
	REPLACE_BUILDLINK_PATTERNS

They are space-separated lists of shell glob patterns representing files
in which we substitute with REPLACE_LIBNAMES_SED (for replacing buildlink
library names with the true library names) and REPLACE_BUILDLINK_SED (for
replacing references to buildlink directories with the true install
locations).  This generalizes the variables (which may still be used):

	REPLACE_LIBNAMES, REPLACE_BUILDLINK,

that contained the actual filenames.

REPLACE_BUILDLINK_PATTERNS contains *.lai, *-config, *Conf.sh, and *.pc.
2001-10-03 22:25:16 +00:00
wiz
aa0b8101e1 Add zh_TW dir (e.g. for lftp). 2001-10-03 14:37:55 +00:00
tron
9f0eb84c74 Add "prdownloads.sourceforge.net" as primary site to the of list
sourceforge download servers. It is the fastest one from "ftp.netsd.org"
and my home system.
2001-10-03 07:57:04 +00:00
jlam
89002b450b Factor out the common code for the replace-libnames targets into a variable
and use it instead.  Also subsititute for library names in the installed
libtool archives.  This last bit is to fix instances where "-lncurses" has
been hard-coded into *.lai files, but we are actually using -lcurses in
reality (devel/tvision is one example).  Problem noted by Thomas Klausner
(hi wiz!).
2001-10-02 23:08:17 +00:00
jlam
6c797a0afa Allow customizing the message for _SU_TARGET by substituting for "$action",
where action can be "install", "package", "create user for", etc., instead
of blindly always saying "install".  Define "action" before calling
${_SU_TARGET} whereever it is used.
2001-10-01 21:15:11 +00:00
jlam
3ad1fec0e7 Have x11.buildlink.mk add -Wl,-R${X11BASE}/lib to LDFLAGS directly, instead
of relying on bsd.pkg.mk to do it.  This change just makes x11.buildlink.mk
more self-sufficient.  Also add a warning that x11.buildlink.mk shouldn't
be included in any buildlink.mk files since what it appends to *_POST_SED
variables must come last.
2001-10-01 17:14:40 +00:00
tv
bb231171aa Don't set SU_CMD twice (the setting here was wrong anyway). The default
may need to be platform-dependent, so let bsd.pkg.mk (not .defaults.mk
set the default.
2001-10-01 04:16:43 +00:00
abs
e31ba171a2 Add 'show-installed-depends' - neat implementation thanks to Hubert. 2001-09-30 22:10:33 +00:00
tron
415261b300 Add optional IPv6 and OpenSSL support to the "xchat" package. Both are
turned on by default but can be turned of with "USE_INET6=NO" and
"XCHAT_USE_SSL=NO".
2001-09-26 18:48:53 +00:00
jlam
962986af46 Require at least x11-links-0.3 to get latest round of fixes. 2001-09-25 23:49:57 +00:00
mycroft
1fa6a808a7 I have no idea where it got broken, but put back the creation of .package_done
files.
2001-09-25 20:26:37 +00:00
tron
d9e3ce1e50 Fix cut and paste error in last commit. 2001-09-24 11:02:49 +00:00
tron
85ee00aa9d Add "PKGVERSION" to "PLIST_SUBST" by default. Trailing package source
version numbers (e.g. "nb1") are automatically removed.
2001-09-24 09:48:31 +00:00
jlam
855a3df049 Add back descriptions of MOTIF12_TYPE and MOTIF12BASE and fix
the descriptions of MOTIF_TYPE and MOTIFBASE lost during the
mk.conf.example --> bsd.pkg.defaults.mk conversion.  Also,
document MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT which are
used as the final default values for MOTIF_TYPE and MOTIF12_TYPE.

Note: none of these values need to be explicitly set, as
motif.buildlink.mk will choose sensible values for all of these
variables.
2001-09-21 19:50:28 +00:00
jlam
d3bbf92d5e Do an immediate setting of MOTIF_TYPE and MOTIF12_TYPE so that the
definition isn't recursive if values have already been assigned.
2001-09-21 19:26:45 +00:00
tron
85eb51b084 Include "bsd.own.mk" before "bsd.pkg.defaults.mk" because otherwise "?="
assignments in "/etc/mk.conf" won't work anymore.
2001-09-21 15:28:35 +00:00
agc
9fb911e9f9 Now that bsd.pkg.defaults.mk is in the tree, mk.conf.example can go away. 2001-09-19 20:29:39 +00:00
drochner
b5040f0f2b setting MOTIFBASE explicitely breaks motif type auto detection,
so comment it out
2001-09-19 17:18:41 +00:00
agc
91d1845f89 Add a new bsd.pkg.defaults.mk file, derived from the old mk.conf.example.
This file is "included" automatically before <bsd.own.mk> includes
/etc/mk.conf, so that pkgsrc-wide default values are set.

It is now possible just to set values in mk.conf only where they differ
from the default, thereby easing the problems of updating mk.conf when
new values get added.
2001-09-18 21:30:05 +00:00
jlam
0cb3a96be8 Fix problem with Solaris' /bin/sh not accepting an empty list in a for
loop noted in pkg/13894 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>.
The suggested fix was applied.
2001-09-14 18:54:43 +00:00
jlam
fec4edb91a Document the new Motif-related variables. Deprecate USE_MOTIF in favor of
including motif.buildlink.mk, which contains more sophisticated and
complete logic for detecting the various Motif options that may be
installed.  Though deprecated, USE_MOTIF is still recognized, though it
does no more than include motif.buildlink.mk.
2001-09-14 01:52:40 +00:00
jlam
54914a30b8 Define USE_X11BASE instead of just USE_X11. This makes motif.buildlink.mk
match the behaviour of USE_MOTIF in setting PREFIX=${X11BASE}.
2001-09-14 01:35:02 +00:00
jlam
021aebeb7f Document MOTIFBASE, MOTIF12BASE, MOTIF_TYPE, MOTIF12_TYPE. 2001-09-13 22:53:20 +00:00
jlam
c433b6a0a1 Set MOTIF12_TYPE and MOTIF_TYPE so that they may be used by other package
Makefiles.
2001-09-13 22:42:59 +00:00
jlam
d4b1853531 Unify the special code to detect pre-installed Motif installations
(whether 2.0 or 1.2-compatible) into one file, motif.buildlink.mk.
lesstif12/buildlink.mk now assumes that if you include it, then you
actually want lesstif12.

To select that you want a Motif-1.2-compatible installation, define
USE_MOTIF12 in the package Makefile.  If MOTIF12BASE is also defined, then
assume it points to a valid Motif-1.2 installation.  Otherwise, auto-detect
whether /usr/dt is valid, or if we need lesstif12.
2001-09-13 22:06:33 +00:00
jlam
752176a4e6 To verify a Motif-2.0 installation, test for the presence of <Xm/Xm.h> and
<Xm/Gadget.h> instead of only <Xm/Xm.h>.  This differentiates between
Motif-2.0 and Motif-1.2 installations.
2001-09-13 19:32:11 +00:00
jlam
a8587a15c0 Clarify in the comments that this buildlink.mk file handles
Motif-*2.0*-compatible installations.
2001-09-13 19:22:17 +00:00
jlam
e598e5dd1a Switch default Motif type to OpenMotif, as it's a "real" Motif with full
functionality.  Default remains DT-Motif on Solaris.  This doesn't affect
users who already have LessTif installed, as motif.buildlink.mk will use
an installed Motif package in preference to the default.

I have compiled and run every package in pkgsrc (as of today) that uses
either USE_MOTIF or motif.buildlink.mk.  They all function as well or
better with OpenMotif as the installed Motif package as compared with
LessTif.  There was only one small API difference I detected between
LessTif and OpenMotif in <Xm/Text.h>, where OpenMotif's Text.h includes
<stdio.h> while LessTif's does not, but the only package that this
affected (graphics/tcm) was fixed.
2001-09-13 19:14:52 +00:00
jlam
4e15ec09d8 Set MOTIFBASE within the scope of the Motif-compatible package's
buildlink.mk as it uses values from the buildlink.mk for it's own value.
Also don't pass MOTIFBASE to the MAKE_ENV as it causes the correct package
buildlink.mk file to not be included.
2001-09-13 08:37:28 +00:00
jlam
fd9c024e89 Alter logic for choosing which Motif installation to use. It's now as
follows:

If MOTIFBASE is set, then assume it points to a valid Motif installation.
If MOTIF_TYPE is set, then use the named Motif installation.
If neither MOTIFBASE nor MOTIF_TYPE is set, then any pre-existing Motif
installation is used, whether it is in /usr/dt or ${X11BASE} or a pkgsrc-
installed Motif.
Lastly, default to ${MOTIF_TYPE_DEFAULT}.

This makes MOTIF_TYPE behave more like XAW_TYPE in that it explicitly
chooses the Motif installation to use.
2001-09-13 08:05:10 +00:00
agc
5d918d6e52 Add a just-in-time su mode for "make package" by factoring out the code
whcih does the su(1), and using that. Also make the deinstall target use
the same common code.
2001-09-12 10:38:12 +00:00
wiz
bd02cc8c26 Make print-PLIST work again if no linux=procfs mounted.
Patch by hubertf.
2001-09-11 16:41:36 +00:00
martin
478cff1cb0 Add support for two environment variables to help update all your
installed packages and only rebuild everything once:

 STOP_DOWNLEVEL_AFTER_FIRST
    if set makes "make show-downlevel" stop a bit earlier (since with the
    other one below you will be only interested in the first downlevel
    pkg found).

 REBUILD_DOWNLEVEL_DEPENDS
    if set forces the pattern match for dependencies to fail whenever the
    installed pkg is not the version in the makefile (i.e. "make show-downlevel"    would print a version mismatch for the dependecy). This causes all
    downlevel dependencies (and everything depending on them) to be rebuild.

Enhancements, like making this all work with make command line flags and
settings in /etc/mk.conf are welcome. A way to stop "make show-downlevel"
through all upper levels of recursion imediately would be very usefull too.
2001-09-10 20:03:17 +00:00
agc
603eae4669 Set the default value of WRKSRC in a slightly different way (from Hubert
Feyrer).
2001-09-10 09:56:05 +00:00
kei
dd9ba6a7a5 Define default value of WRKSRC again. It is required by the packages without
NO_WRKSUBDIR.
2001-09-10 02:46:15 +00:00
agc
a16fc84f19 Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:
WRKSRC= ${WRKDIR}

This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
2001-09-09 20:36:07 +00:00
jlam
ee5fa48af4 Document MOTIF_TYPE, used as a hint to select the Motif installation to
use.
2001-09-08 20:33:24 +00:00
jlam
78934af22c Separate out the Motif-checking logic from lesstif/buildlink.mk into a
separate file mk/motif.buildlink.mk.
2001-09-08 19:52:30 +00:00
jlam
70004632b2 Buildlink glue to provide strong-buildlinking for packages that use X11
(not counting packages using imake) whether or not xpkgwedge is installed.
2001-08-29 22:33:38 +00:00
zuntum
8a4bf4a469 Fix typo:
avi{...,avitype} -> avi{...,type}
2001-08-28 23:36:24 +00:00
tv
ea4db8a84e Since libtool has now been split, it's no longer necessary to have a
BUILD_DEPENDS on libtool for the USE_LIBTOOL/non-USE_LTDL case; instead,
just depend on libtool-base (thus skipping the libtool-info and libtool
package compilation where appropriate).
2001-08-27 15:05:54 +00:00
hubertf
72a293c7e6 print-PLIST: remove emul/linux/proc entries before sorting. No need to
waste processing time on data we're going to discard.
	     Pointed out by Tomasz Luchowski <zuntum@netbsd.org>.
2001-08-24 10:50:03 +00:00
abs
7cb5dda995 shuffle some whitespace to make it more obvious what is going on 2001-08-24 09:00:44 +00:00
hubertf
aeed7c63ec * When applying patches, also look in $LOCALPATCHES/$PKGPATH for
any local patches that the user wants to maintain outside of
   pkgsrc.
 * print-PLIST: ignore Linux procfs entries
2001-08-24 00:54:46 +00:00
abs
59ca687318 dirname is in /usr/bin. Now buildlink has a fighting chance on Linux 2001-08-23 16:54:09 +00:00
abs
8eee1675b7 gnu patch is used under Linux as well as Solaris 2001-08-23 16:37:27 +00:00
abs
482c9eeada '.endif' not '.fi' 2001-08-23 15:27:50 +00:00
jlam
33f148d48b Add a LIBOSSAUDIO definition that is passed through MAKE_ENV. 2001-08-23 13:31:00 +00:00
jlam
46a8516c88 Wrap this file in an .if ${OPSYS} == "NetBSD" so that it may be included
regardless of the operating system.
2001-08-23 13:12:59 +00:00
jlam
79fe9eff8c Create buildlink.mk files for the various Xaw libraries. Instead of
USE_XAW, a package Makefile may just include mk/xaw.buildlink.mk, which
pulls in the correct buildlink.mk file depending on the value of XAW_TYPE.
A package Makefile may also rely on LIBXAW being set to the correct
libraries.
2001-08-23 04:24:21 +00:00
jlam
64194bcde5 Set the default BUILDLINK_X11_DIR to ${X11BASE} so that in the absence
of x11.buildlink.mk, it still points to a working X11R6 hierarchy.
2001-08-23 04:21:02 +00:00
jlam
c2c4606f78 By default, don't use pkgtools/buildlink-x11 to cause packages that use
imake to be buildlinked as it's not necessary for those packages.  Many
thanks to Frederick Bruckman <fredb@immanent.net> for pointing this out.

This is accomplished by ripping out all of the Makefile logic related to
buildlink-x11.  It will be added back in a separate file (as noted by the
additional check for X11_BUILDLINK_MK, but will still not be the default.
2001-08-22 17:34:19 +00:00
jlam
14bff9af55 Change a = to a += to allow adding to the value of
BUILDLINK_CONFIG_WRAPPER_POST_SED.  Also some minor formatting changes.
2001-08-22 04:29:55 +00:00
tv
d4f0e2715c Remove "-" from default su command. It's more reliable to let some of the
environment be inherited from pkgsrc during an implicit su for install;
root's .-files may set variables that fiddle with how pkgsrc works.
2001-08-20 14:41:48 +00:00
zuntum
747a7f4680 Add AVIFILE_USE_QT for use by avifile package (as the moment only avifile-devel
uses it)
2001-08-19 08:47:57 +00:00
dogcow
10023af344 change BUILD_DEPENDS+= bzip2-0.9.0b:../../archivers/bzip2 to >=0.9.0b;
otherwise, extracts fail when bzip2-1.0.1 is installed.
2001-08-16 01:49:09 +00:00
agc
0671c7dbb5 The TCSH_STATIC mk.conf definition has been removed in favour of a
static-tcsh package.
2001-08-14 12:48:21 +00:00
skrll
6b1239edda Add GNU_ARCH.sparc64 entry.
This should fix pkg/13714 by Martti Kuparinen <martti.kuparinen@iki.fi>
2001-08-14 11:00:44 +00:00
jlam
cd4bfb05da Update build dependency on buildlink-x11 to >=0.7. 2001-08-08 07:24:57 +00:00
abs
b17128a573 ftp.digital.com seem to have dropped their cpan archive - switch to loaded 2001-08-01 16:18:18 +00:00
hubertf
e352dcca1e Sync locales from *.pkg.dist to *.x11.dist:
* NetBSD:	$LOCALBASE/share/locale	-> $X11BASE/share/locale
 * Linux:	$LOCALBASE/share/locale	-> $X11BASE/share/locale
 * SunOS:	$LOCALBASE/lib/locale	-> $X11BASE/lib/locale

Side effect of this is that print-PLIST doesn't print locale dirs
for X apps any more.
2001-07-30 15:09:23 +00:00
jlam
cb3a5c9daf Move -a from XMKMF_FLAGS to XMKMF. Thus, if a package wants to run
xmkmf without building all the Makefiles too, then it can set
XMKKF=${XMKMF_CMD} ${XMKMF_FLAGS} (same as default but without the -a).
2001-07-30 05:04:32 +00:00
tron
2c3778caca Remove obsolete variables "SQUID_HTTP_PORT" or "SQUID_ICTP_PORT". 2001-07-29 19:25:27 +00:00
jlam
ffdab7295f Add back commented code. 2001-07-27 16:51:30 +00:00
jlam
68e55782bb Separate library name replacement into two parts, pre-configure and
post-configure.  Also make sure ${BUILDLINK_DIR} is created prior to
trying to create the cookie files.
2001-07-27 16:41:16 +00:00
jlam
a9fa4a1635 On ELF, the linker extracts the soname from the specified libraries to
place in the linked object, so even if the library is a symlink with a
different name from the true library, the correct soname is recorded in
the object.  On a.out, there is no soname, so the linker just records the
specified library name + major number into the object, which can cause the
incorrect library name to be recorded.  Fix this problem on a.out by
replacing the specified library names with the true library names in all of
the Makefiles in a post-configure step.  Additional files may be added to
the list of files on which replacement is done by setting REPLACE_LIBNAMES
in each package that needs it.

This should fix pkg/13402 by John Klos <john@sixgirls.org>.
2001-07-27 14:30:16 +00:00
hubertf
822fcf2541 work around HAVE_BUILTIN_MESA not set when USE_GLX is set. 2001-07-27 12:19:15 +00:00
hubertf
04f42d0486 ZOULARISBASE: If there's no $LOCALBASE/bsd, try $LOCALBASE 2001-07-26 16:13:52 +00:00
wiz
e786e881f0 Force move new file over old one in REPLACE_PERL (at least one package
needs that).
2001-07-26 08:39:35 +00:00
hubertf
f93ab578be Close a quote.
Noted by Will Andrews <will@physics.purdue.edu> in private mail.
2001-07-26 08:33:02 +00:00
jlam
a16dfdacab If USE_BUILDLINK_ONLY is defined, then use f2c/buildlink.mk instead of
directly adding a dependency on f2c.
2001-07-25 23:49:41 +00:00
abs
12ca9cd123 Note sun-jdk is a valid PKG_JVM, plus correct PACKAGE_JVM to PKG_JVM ref 2001-07-25 12:12:54 +00:00
jlam
9d08dcf929 Change the EVAL_PREFIX logic so that if
EVAL_PREFIX=    FOODIR=foo

is defined, then FOODIR's value is only saved if the package foo was
found.  This causes FOODIR to keep being reset until the package foo
is installed, which makes EVAL_PREFIX work properly with buildlink.mk
files.  This should fix various problems people have been having with
files not being linked in when a dependency is built via a "make build"
in a package that uses that dependency further up the chain.
2001-07-25 07:36:40 +00:00
jlam
c762959d80 Add more debugging code to note when a file to be linked can't be found. 2001-07-24 11:47:28 +00:00
jlam
081ae6de6b Only create <sys/soundcard.h> if <soundcard.h> exists. 2001-07-24 10:13:38 +00:00
wiz
77d1591c0a Add variable to make navigator/communicator _not_ depend on flash, and
document it in mk.conf.example. Adresses pkg/13343.
2001-07-23 18:30:24 +00:00