Commit graph

2439 commits

Author SHA1 Message Date
chris
6fca61c3f5 Sync config.guess and config.sub to the latest.
Still have local diffs for sh5, so I'm not sure if sh5 still works (I've
reapplied the patches).
2003-07-11 10:11:33 +00:00
grant
6790bfa9bc minor style nit 2003-07-10 23:12:40 +00:00
grant
d6cada760d define user-visible variable PTHREAD_LDFLAGS that contains options
to link pthreaded code, ala PTHREAD_CFLAGS.

this adds support for systems which have no libpthread, but rather,
have pthreads functions in libc_r, such as FreeBSD 5.x.

export PTHREAD_CFLAGS and PTHREAD_LDFLAGS via MAKE_ENV.
2003-07-10 23:10:07 +00:00
salo
21b6a8eb80 Use proper compiler test.
(the former was unreliable anyway, there could be GCC installed as cc == no
*gcc* pattern in path)
2003-07-09 20:07:46 +00:00
agc
dfea60511f Append perl to the list of interpreters to be replaced if ${REPLACE_PERL}
is set, rather than a straight assignation.
2003-07-09 16:18:06 +00:00
agc
8338c82ca3 Make REPLACE_PERL more general, so that it will work with any interpreter,
and also with multiple interpreters.

Keep REPLACE_PERL for backwards compatibility.
2003-07-09 16:07:29 +00:00
salo
d750aba607 More support bits for native Sun compilers (on Solaris).
Sun's C++ compiler (CC) doesn't support passing arguments to ld via -Wl flag,
remove this flag from the buildlink2 environment.
2003-07-09 16:07:21 +00:00
agc
1303652d68 In pre-config-override, don't trumpet the fact that we're doing nothing. 2003-07-09 14:23:56 +00:00
abs
4107ad2a64 Handle blank MACHINE_ARCH on Linux (as seen on 20030630 bootstrap kit) 2003-07-09 11:38:17 +00:00
salo
0eb8222777 Don't insist on using/compiling GCC if different compiler is in use. 2003-07-09 08:25:04 +00:00
salo
bf262a9684 Introduce few new variables for (mostly) non-GCC compilers use with pkgsrc
so compiler-dependent settings can be set later.

USE_GCC2    - GNU Compiler Collection 2.x	(default)
USE_GCC3    - GNU Compiler Collection 3.x	(used already)
USE_MIPSPRO - Silicon Graphics, Inc. MIPSpro Compiler
USE_SUNPRO  - Sun Microsystems, Inc. WorkShop/Forte/Sun ONE Studio
              Compiler Collection

(Intel compilers on Linux, anyone? :) )
2003-07-09 08:22:22 +00:00
agc
a0a34c21ee Fix a typo in a comment 2003-07-08 11:48:37 +00:00
chris
95ae206c22 Fix for _CONFIGURE_PREREQ targets not being run when a package defines a
do-configure target.  To do this I've introduced a new target,
pre-configure-overrides, that depends on ${_CONFIGURE_PREREQ}.   It's run
after pre-configure but before do-configure.

This fixes pkg/22077, and allows benchmarks/benchfft to build correctly on
a -current cats box.

Reviewed by wiz@
2003-07-08 09:20:30 +00:00
jmmv
c7fd765c70 When extracting a .zip archive, overwrite existing files without promping.
Fixes PR pkg/21732 by reed at reedmedia.net.
2003-07-02 23:02:23 +00:00
seb
ddfc49b652 Use "$@" when it matters. 2003-07-02 21:19:09 +00:00
grant
84205e4308 patch from seb@ to pass --split-size to gtexinfo >= 4.6.
thanks seb :)
2003-07-02 16:07:01 +00:00
seb
7cbf83dab0 Only consider as makeinfo's version the first version number looking word
in `makeinfo --version'.

This is needed for older makeinfo which output thing like:

makeinfo (GNU texinfo 3.12) 1.68
Copyright (C) 1998 Free Software Foundation, Inc.
....

This should fix the problem encountered by Thorsten Frueauf on 1.5.4_ALPHA
(I reproduced it on stock 1.5.3) and reported in private email via
jschauma@.
2003-07-01 14:56:25 +00:00
jlam
b48f0f9468 XLOCK_LIGHT is deprecated, but we still support it in xlockmore/Makefile
until users figure out to install xlockmore-lite instead.
2003-06-30 07:34:37 +00:00
jschauma
16b6beba8f Introduce a variable called "MAKEINFO_ARGS", which may be used to pass
arguments to makeinfo(1).  This was made necessary by the fact that under
IRIX64 makeinfo(1) does not use a default split-size of 50000, which breaks
our PLISTs.  After feedback from seb@, initialize MAKEINFO_ARGS per default
to _OPSYS_MAKEINFO_ARGS, which is set in defs.<OPSYS>.mk (currently only
for IRIX using 64-bit ABI).
2003-06-29 21:25:49 +00:00
seb
8c50b1beff Using GNU missing script as makeinfo seemed like a good idea
when a package use the buildlink2 framework but does not define
USE_MAKEINFO. Well it was not after all.

This caused annoying messages because missing's commands emit annoying error
messages when the script is invoked with only 'makeinfo' as argument
(typically run this way by configure scripts). And more it does not
handle makeinfo's '--output=...' argument.

I first thought that it could be used as a nice way to get ride of the need
for makeinfo when it was only dubiously run during build or installation
of a package. But it also has the annoying behavior of creating empty files
because of the typical automake generated Makefile target for info file
build.

Making the buildlink2's makeinfo hiding script only logging an error
and doing 'exit 1' is actually a better tool to spot the need for makeinfo.
2003-06-25 22:48:02 +00:00
seb
58a5818ee0 Better error handling. 2003-06-25 22:45:14 +00:00
seb
082b66be00 At DEINSTALL time after un-registering info files from the Info
directory file remove it if it is empty i.e. if it contains only one
menu/entry line i.e. only one line starting with '*'.

This allow INFO_DIR to be set to a package specific directory while
not registering in the PLIST the Info directory file (${INFOR_DIR}/dir).

Registering such an Info directory file in the PLIST is not really
possible as a md5 signature of it holding the registered info entries
would be stored in PKG_DBDIR. At deinstall time this signature would not be
matched because the DEINSTALL script would have modified it by
un-registering the info files from it. Hence the package removal would
be reported as incomplete...

You are probably right if this looks like a hack to you...
2003-06-25 20:51:25 +00:00
jlam
5b02a8a8c4 Only change the owner/group/mode of a directory tree if it's not
pre-existing.  This should fix pkg/21975 by Matthias Scheler.
2003-06-25 08:26:51 +00:00
jschauma
f033db9a55 Hand ABI to CONFIGURE_ENV and MAKE_ENV on IRIX. 2003-06-23 21:36:29 +00:00
salo
6fcb841a50 Introduce MPLAYER_USE_MEDIALIB.
It's used to enable optional support for Sun mediaLib library.  (only takes
effect on Solaris).
2003-06-23 15:46:22 +00:00
salo
cf2eb06cb1 Remove DOVECOT_USE_LDAP in favor of generic USE_OPENLDAP.
Correct USE_OPENLDAP comment accordingly.
2003-06-23 15:10:44 +00:00
jschauma
54f06d5eb9 default MAINTAINER is tech-pkg@ 2003-06-23 14:26:32 +00:00
seb
5ab8be8066 Introduce a new framework to handle info files, install-info and
makeinfo commands.

The goal of the new framework is twofold:
        - reduce the number of '@exec' and '@unexec' in PLIST by
using INSTALL/DEINSTALL scripts to handle entries addition/removal
Info directory file.
        - achieve lighter dependencies by avoiding unnecessary run-time
dependency on the gtexinfo package and if needed with the help of the
standalone install-info command provided by the recently imported package
pkgtools/pkg_install-info.

A package must be sightly updated to use this new framework and
must define the variable USE_NEW_TEXINFO. This variable will
be removed from the pkgsrc tree when all package would have been
updated.

For details see section 10.24 of Packages.txt, comments in
mk/{texinfo.mk,buildlink2/bsd.buildlink2.mk} and upcoming mail to
<tech-pkg at netbsd dot org>.
2003-06-19 21:41:13 +00:00
jschauma
07aec53fd8 Apply patch by Joachim Koenig-Baltes (joachim at handshake dot de) in
followup to PR pkg/20529:

Some libraries (in this example, a given Linux's native libpthread) don't
come with a version number at all and/or are in fact symlinks.  Test for
this and act accordingly in fake-la.

This allows packages that use pthread to buildlink under various Linuxen.

Should close PR pkg/20529 and PR pkg/21854.  Thanks, Joachim.
2003-06-19 17:20:41 +00:00
abs
6d2172ee27 Change uptodate-digest check from excluding digest on 'digest-* | pkgchk-*)'
to excluding when ! -f ${DISTINFO_FILE}.
Now packages without distinfo do not need to build digest before installing
(such as cpuflags)
2003-06-17 14:33:17 +00:00
grant
3a0c716e1e if defined, add CXX and CPP to the make environment, as per CC. 2003-06-14 21:13:13 +00:00
atatat
e239c6dd3a Add a ``show-needs-update'' target that checks each dependency to see
if it's up to date.  For dependencies (including the current package)
that are not up to date (or are not installed), a one line note is
printed thusly:

	% cd audio/xmradio/
	% make show-needs-update
	audio/mad => mad-0.14.2b => needs update to mad-0.14.2bnb1
	audio/xmradio => (none) => needs install of xmradio-1.2
2003-06-14 18:52:46 +00:00
agc
123b2a254d When setting up the lockfile, don't store whitespace printed by ps(1), so
that

% make
===> do-fetch [digest-20021220] ===> Checking for vulnerabilities in digest-20021220
=> Lock acquired on behalf of process  356
=> Lock released on behalf of process 356

becomes

% make
===> do-fetch [digest-20021220] ===> Checking for vulnerabilities in digest-20021220
=> Lock acquired on behalf of process 814
=> Lock released on behalf of process 814
2003-06-14 16:53:00 +00:00
grant
56f140feb6 add tab to list of separators for parsing BUILD_INFO.
fix from drochner@.
2003-06-13 11:29:09 +00:00
jschauma
7e75c9318a Initiate support for X11 apps under IRIX.
We introduce two new variables: ABI and IMAKEOPTS
ABI determines the correct ABI to use and is set during bootstrapping
from /etc/compiler.defaults.
IMAKEOPTS are the options passed to imake to allow it to set the right
definitions and find the right paths etc.  Use IMAKEOPTS with SunOS, too.

IRIX will always require xpkgwedge, since it's got a bogus X11BASE.

When linking against libXaw, make sure we get the right ABI.
2003-06-12 15:27:08 +00:00
grant
d60c936e59 make OBJECT_FMT test of installed packages work again. 2003-06-10 06:01:12 +00:00
grant
e7b8ced04f remove whitespace after '=' in the generated BUILD_INFO file, making
it more sane for parsing.
2003-06-10 05:21:42 +00:00
jmmv
86606c89e5 Add 'li' locale directory (used by glib2, version 2.2.2). 2003-06-09 23:04:19 +00:00
jschauma
5b2a23668d Use the public RPATH_FLAG in favor of the private _OPSYS_RPATH_NAME. 2003-06-08 22:47:28 +00:00
abs
a521d4d1a4 if CC is defined, add it to MAKE_ENV 2003-06-07 09:22:37 +00:00
drochner
b13a0cdbfe export LINK_ALL_LIBGCC_HACK into the environment, just like
OPSYS_WHOLE_ARCHIVE_FLAG
saves some lines in the pkg Makefiles
2003-06-06 19:30:47 +00:00
jschauma
03b2022e5c test, too, can be in /bin or /usr/bin. Apparently. 2003-06-06 19:07:42 +00:00
jschauma
435145eb16 If we want to try a bulk-build on a non-NetBSD platform, we need to take
care not to blow away our bootstrap-pkgsrc stuff in the initial phase.
Also mark devel/bmake and devel/mk-files as broken on non-NetBSD so as not
to blow away our precious files from the bootstrap process in the middle
of a bulk-build.  Now let's see if bulk-building works on Linux...
2003-06-06 18:28:47 +00:00
jschauma
066edded53 Found some more programs that may be in either /bin or /usr/bin depending
on what todays flavor of Linux is.
2003-06-06 17:57:36 +00:00
drochner
1afb6de11e Introduce a variable "LINK_ALL_LIBGCC_HACK" which
is "-Wl,--whole-archive -lgcc -Wl,--no-whole-archive" on
NetBSD-1.5* and empty otherwise.
This is needed on build of programs which dlopen() extension
libraries.
(Some pkgs do the libgcc linking already, but independantly
of the OS version.)
2003-06-06 17:13:31 +00:00
jmmv
80df38e928 Introduce the MASTER_SITE_DEBIAN variable. It currently contains a list of
all primary mirror sites, as listed in http://www.debian.org/mirror/list.
2003-06-05 17:20:04 +00:00
markd
2d4086d16a Add EMACS_USE_XAW3D. 2003-06-05 12:13:34 +00:00
jschauma
e8fa35b02c Use a better value as LOWER_OPSYS for IRIX. 2003-06-05 00:23:29 +00:00
jmmv
5f94f4937a Set the AWK environmental variable to the value of ${AWK} (as given by all
defs.*.mk files) when running the configure script.  Most of them look for
an awk parser, and this way they will always pick the right one without
having to check all the possibilities.
2003-06-04 09:39:17 +00:00
jmmv
c112e1c041 Add "gd" locale directory, used (at least) by gnome-pim. Pointed out by
Douglas Brebner in private mail.
2003-06-03 20:50:54 +00:00
jmmv
5ebed838a1 Add yi locale (used by libgnomeui). 2003-06-03 18:42:51 +00:00
jmmv
fb2818516a Add the be locale directory. 2003-06-03 14:51:40 +00:00
jmmv
a2fd2c7b2d Add ee locale directory, used by xmule. 2003-06-03 09:20:16 +00:00
hubertf
d95e3cbf12 more wording tweak for missing vulnerability file. 2003-06-01 23:59:07 +00:00
hubertf
0324de6b5d Improve message when vulnerability file is not there. 2003-06-01 23:56:50 +00:00
grant
392ba6fb3d include gcc.buildlink2.mk if USE_GCC_SHLIB is defined. this replaces
the (now deprecated) USE_CXX.
2003-05-29 23:08:01 +00:00
agc
72de6a586b Now that we're checking more thoroughly for vulnerabilities in the "do-fetch"
target via "check-vulnerable", there's no need to use "show-vulnerabilities"
target when installing a package.
2003-05-29 11:39:22 +00:00
jschauma
b35d09294d Add some, per default undefined, variables for the blender package. 2003-05-28 15:53:12 +00:00
grant
5776b4fd75 add pulling in buildlink includes/libraries from lang/gcc, or gcc3
when USE_GCC3 is defined.

ok'd by jlam@.
2003-05-27 07:01:56 +00:00
jlam
a4b2a82c02 Define user-visible variable "PTHREAD_CFLAGS" that contains compiler
options to compile/link pthreaded code.
2003-05-25 19:02:32 +00:00
jlam
3372f12ca0 Clarify comments to more explicitly note how to _not_ add the dependency
on the JDK.
2003-05-25 18:39:12 +00:00
jmmv
d2f81924bd Add ml and sr@Latn locale directories, used by libgnome. 2003-05-25 08:00:15 +00:00
salo
0ca23e301d Remove MPLAYER_USE_REALMEDIA, used by default on i386, powerpc and alpha. 2003-05-24 17:32:02 +00:00
salo
89b4d8b5ab Add es_ES locale dir (initially for sysutils/mc). 2003-05-22 16:57:24 +00:00
salo
8028257820 Convert MTOOLS_ENABLE_FLOPPYD to YES/NO from defined/undefined. 2003-05-22 16:53:40 +00:00
wiz
8e181d3f3c Add USE_LIBCRACK variable for PAM. 2003-05-22 14:36:31 +00:00
wiz
b0d9aa8b0f In case license is not acceptable per /etc/mk.conf, tell user to view license
with "make show-license". Addresses PR 21616.
2003-05-19 06:02:10 +00:00
agc
6f3c5aef75 Check for the existence of the vulnerabilities file before telling people
that we're checking for vulnerabilities. If the vulnerabilities file can't
be found, display a warning.

Addresses PR 21572 from Robert Elz.
2003-05-18 20:52:28 +00:00
wiz
e6869911af Add aleron, easynews, and heanet sourceforge mirrors. 2003-05-18 13:06:56 +00:00
tron
7032df1c90 Remove "belnet.dl.sourceforge.net" from sourceforge master site list
because it doesn't work for weeks now.
2003-05-18 12:35:16 +00:00
salo
6d737e4095 Add couple of missing .., oops. 2003-05-15 20:47:00 +00:00
salo
d0649c5caf Forgot pl in previous. 2003-05-15 20:34:17 +00:00
salo
e1b06da6b7 Add few more subtrees for localized man pages (initially for editor/lpe). 2003-05-15 20:28:30 +00:00
salo
cc3e81c2f7 Add GOLEM_WITH_SOUND, default NO. 2003-05-15 11:31:49 +00:00
salo
81429e399a Add DOVECOT_USE_{GNUTLS,LDAP,PGSQL} defaults. 2003-05-14 04:11:48 +00:00
salo
0bcbcab267 Add no_NO (for xdialog). 2003-05-13 23:00:04 +00:00
jmc
a2a3feb0bb Wrap EXTRACT_COOKIE like all others that could have an interactive step
and check for it if doing a batch build
2003-05-11 07:06:23 +00:00
abs
886543ff0c sun-jdk defaults to sun-jdk14, but sun-jdk14 does not work reliably
on NetBSD/i386 1.6. I_believe_ it started working around the point
scheduler activations were imported, so give sun-jdk14 to 1.6M and
later, otherwise sun-jdk13.
2003-05-09 11:31:46 +00:00
jmmv
8e87e036cf Update wmthemes to 0.80.0 (matches current windowmaker version):
- Themes must be fetched through freshmeat.net now, which maintains a
  different directory layout and file naming than themes.org.
- The WINDOWMAKER_THEMES variable now requires the version number of the
  package.
- Add two NetBSD related themes to the default list.
2003-05-08 14:55:13 +00:00
seb
ae6b3e4ee2 TEXINFO_OVERRIDE tweak: '(install-info ' is also a pattern that can be
encountered in Makefile.ins generated by automake.

XXX Hopefully this is going to be the last modification for this
file's avatar.
2003-05-06 23:43:53 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
uebayasi
02e864d2b5 Fix "Default:" line of MPLAYER_ENABLE_RUNTIME_CPU_DETECTION; it's
default is "YES".

Noticed by Kouichirou Hiratsuka <hira at po6 dot nsk dot ne dot jp>.
2003-05-06 08:40:08 +00:00
seb
489db0bfb1 PKGVULNDIR entry was duplicated. Only keep the more recent one
which is allow the more fully documented.
2003-05-05 21:45:41 +00:00
grant
753144ce3c commented block for BITCHX_WITH_GTK. 2003-05-05 06:06:56 +00:00
rh
3d1c3b18b4 Default DEPENDS_TARGET to replace if UPDATE_TARGET == replace. This avoids
multiple rebuilding attempts for prerequisite packages.
2003-05-04 02:59:15 +00:00
rh
5263b93abf Make UPDATE_TARGET=replace somewhat useful: don't remove the original
package in this case.
2003-05-04 01:20:13 +00:00
wiz
80c4ff07e8 Bump pth dependency here too. 2003-05-02 15:11:46 +00:00
agc
8417adcc99 Escape the wrappee name in an error message, since a user faced with an
error message of "Unable to create as wrapper script: no such file" could
get confused.
2003-05-02 08:32:26 +00:00
jmmv
ceeb8c0900 Add en_AU locale. 2003-04-30 17:07:01 +00:00
atatat
925c851209 Actually, Mesa's Makefile.common seems like a much better place for
MESA_REQD, and it works much better, too.  :)
2003-04-30 04:05:48 +00:00
atatat
de4d36d9e7 Move MESA_REQD from bsd.pkg.defaults.mk to bsd.pkg.mk, since the
latter appears to be a much better place to put something like that.

Also, remove a ) from the awk expression in the check-vulnerable
target, since it is extraneous and only causes awk to die.
2003-04-30 03:05:06 +00:00
agc
7ec0debf3a Speed-ups for the check-vulnerable target, from Jeremy Reed in PR 21393. 2003-04-29 20:31:52 +00:00
agc
004fc67e75 Provide the command to remake package tools which are out of date in a
format which can be cut and pasted.
2003-04-29 20:27:50 +00:00
agc
726138526b Use the full pathname for the pkg_install package directory when
giving instructions on how to get up-to-date pkg_install tools.

Fix from Jonathan Perkin in PR 21277.
2003-04-29 14:34:19 +00:00
jmmv
92e726795a Make the PKGVULNDIR variable more generic, so one can choose where to
store the vulnerabilities file.  This variable was already recognized by
audit-packages but not by bsd.pkg.mk which hardcoded DISTDIR.
2003-04-25 20:05:18 +00:00
jmmv
3a77850e7b s/SILIENT/SILENT/ 2003-04-25 15:36:43 +00:00
jmmv
4784ad8f69 Add the locale/es_MX directory, used by lmule. 2003-04-25 15:27:50 +00:00
jmc
d9a2327baa Fix typo with use of _EMACS_VERSION_FIRSTACCEPTED 2003-04-24 18:22:07 +00:00
hubertf
fdd884a853 now REALLY use the right dir... doh 2003-04-22 14:35:57 +00:00
hubertf
7da5db08da Make sure binary pkgs are found :) 2003-04-22 14:31:18 +00:00