Commit graph

4016 commits

Author SHA1 Message Date
jlam
643b26af82 We need to check that IS_BUILTIN.<pam> is "yes", not just that it's empty. 2005-01-14 07:37:39 +00:00
jlam
151f14b269 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk. 2005-01-14 06:29:55 +00:00
jlam
1b5734f517 Create a pam.buildlink3.mk file that is used by PAM-using packages.
It includes the correct buildlink3.mk file from either Linux-PAM
(security/PAM) or OpenPAM (security/openpam) and eventually will
support solaris-pam.  pam.buildlink3.mk will:

	* set PAMBASE to the base directory of the PAM files;
	* set PAM_TYPE to the PAM implementation used.

There are two variables that can be used to tweak the selection of
the PAM implementation:

PAM_DEFAULT is a user-settable variable whose value is the default
	PAM implementation to use.

PAM_ACCEPTED is a package-settable list of PAM implementations
	that may be used by the package.

Modify most packages that include PAM/buildlink3.mk to include
pam.buildlink3.mk instead.
2005-01-14 05:15:39 +00:00
tv
089aec77ed Add $NetBSD$. 2005-01-14 00:10:50 +00:00
tv
f8b3f96fb6 Add override for uncommon "config.rpath" GNU config snippet. Use platform
file to indicate that override logic should be turned on.  (AFAICT, only
Interix is afflicted at the moment.)
2005-01-14 00:10:01 +00:00
tv
609eec1da7 Put back the proper variable construct for LIBTOOL_REQD that was borken in
previous.  (_OPSYS_LIBTOOL_REQD is only defined on some platforms, so the
:U clause provides the next best choice if that's not defined.)
2005-01-13 20:19:57 +00:00
tv
e4cc383421 * Clean up syntax ambiguities, e.g. (my $foo = $bar) =~ ....
* Add optional verbosity to show most commands as they are being executed.

* "use strict" and "use warnings".

* Slurp in the varables from build.conf and bmake in one shot (amazing
  startup speed boost with nfs pkgsrc); put them in a hash to make
  "use strict" much happier with the namespace.

* Fix a bunch of undef-dereference errors evidenced by "use warnings".

* Exclude PKG_DBDIR from leftovers list if it is inside LOCALBASE.

* Convert some <a name="..."/> constructs to <a name="..."></a> to make
  non-XHTML-compliant browsers happier.
2005-01-13 19:29:28 +00:00
seb
680703690d Add TNF copyright. 2005-01-13 09:49:06 +00:00
grant
7240d7d5bd add my copyright/license. 2005-01-12 22:58:29 +00:00
jlam
1fc74ae68e Correct my name to what I legally use. 2005-01-12 22:56:41 +00:00
tv
7ac5f2db44 Fix checking of up to date binary packages. The problem with DEPENDS
containing constructs of the form

    {perl>=5.8.3nb1,perl-thread>=5.8.3nb1}

is that a Bourne shell "for" interprets this as two separate items in the
list, nuking the {}s.  The above will never succeed and thus always cause
Perl-dependent packages to be rebuilt unconditionally.

Just adding more \s isn't enough -- the parsing of the depends list has to
be moved out of the "for" clause.  So, echo them one per line and use "read"
to pull them in without allowing the shell to peek at those characters.
2005-01-12 22:51:54 +00:00
recht
e03832caa6 set _PATCH_CAN_BACKUP=no to avoid problems with DragonFly's native patch.
Patch by Todd Willey in PR 28947
2005-01-12 21:11:41 +00:00
jlam
d6dfee8415 Use ${AWK} instead of a bare "awk". 2005-01-12 18:42:42 +00:00
jlam
ffd5ad15de Rearrange how LANGUAGES.<compiler> is set so that we can more flexibly
detect when only parts of a compiler toolchain are present, e.g. the
SunPro C compiler is installed, but not the Fortran-77 compiler.
2005-01-12 18:37:52 +00:00
jlam
c39637ec68 Put a TNF copyright on files that I authored. 2005-01-12 18:36:11 +00:00
jlam
d9168be817 Whitespace. 2005-01-12 17:40:48 +00:00
jlam
61c4d07ad0 Even more whitespace. 2005-01-12 17:40:01 +00:00
jlam
44a745628d Whitespace. 2005-01-12 17:39:34 +00:00
jlam
5f768fe677 Prepend the CCC compiler dir to the PATH so that they're found by the
wrapper scripts.
2005-01-12 17:39:18 +00:00
jlam
9e296c8b45 Backout part of previous commit that was unrelated. 2005-01-12 17:30:34 +00:00
jlam
9d72ec1985 Remove explicit overrides for CC and CXX that prevented using the
definitions supplied in /etc/mk.conf.  It should now be possible to
pass optimization flags directly using CC and CXX when using CCC and
xlC compilers.
2005-01-12 17:27:50 +00:00
tv
4a31c315e7 Disable win32-jdk for now. It doesn't play well with bulk builds yet. 2005-01-12 17:23:46 +00:00
jlam
a81bf92f7d Remove explicit overrides for CC and CXX that prevented using the
definitions supplied in /etc/mk.conf.  It should now be possible to
pass optimization flags directly using CC and CXX when using SunPro
and MIPSpro compilers.
2005-01-12 16:41:14 +00:00
jlam
b6b853727d Nuke USE_FORTRAN and bring the f2c handling within the mk/compiler
framework.  The list of changes include:

  * Modify compiler.mk so that "c" is always prepended to USE_LANGUAGES,
    so we no longer need to say it in package Makefiles.  Packages
    should now append to USE_LANGUAGES instead of setting it.

  * Create mk/compiler/f2c.mk which implements another pseudo-compiler
    "f2c" that may be used with any C compiler backend, e.g.

	PKGSRC_COMPILER= f2c ccache gcc

  * Teach the various "real" compiler files, e.g., sunpro.mk, mipspro.mk,
    etc., to use f2c if the native Fortran compiler isn't present.

Packages that use Fortran should now simply include the line:

	USE_LANGUAGES+=	fortran

in the package Makefile.
2005-01-12 15:31:58 +00:00
jmmv
7edd340747 Add MONOTONE_GROUP and MONOTONE_USER, used by the monotone-server package. 2005-01-12 12:54:45 +00:00
jmmv
012b4db0a7 Redo previous because it had a chance to cause serious problems, and was
already demonstrated by imake failing.

So, instead of fiddling with PATH's value in multiple places, rely on
PREPEND_PATH to get things right.  Hopefully this will DTRT.  At least
several local tests have worked without problems.
2005-01-11 20:09:14 +00:00
tv
1b0eb440fd nfs-pkgsrc friendliness change:
Add a knob to relocate all the global bulk state files in one setting.
BULKFILESDIR; defaults to PKGSRCDIR as before.
2005-01-11 18:44:10 +00:00
tv
71b0501db3 Some shells can cache * lookups, so do all the rm -f's of */*/<something>
on one line.  Add a message prior to doing the leftover log cleanup, as
it will take a while if pkgsrc is on nfs.
2005-01-11 18:33:16 +00:00
jlam
03469252ea Really skip the transformations for imake. This shows the danger in
having variables that take a "yes" value to turn off behavior.
2005-01-11 18:08:20 +00:00
jmmv
c69a629c0c Reverse PATH order in many places: instead of appending ${LOCALBASE}/bin
and ${X11BASE}/bin to the current PATH, _prepend_ them.  This way we will
pick our own binaries in favour of the system ones, in the cases where
conflicts exist.  Also add a PREPEND_PATH for ${LOCALBASE}/bin.

This should fix several packages on non-NetBSD systems.  For example,
ispell-spanish under Linux comes to mind, as it was using the 'ispell'
binary from /usr/bin instead of the one in /usr/pkg/bin to get its
configuration information.

Ideally, buildlink could handle this as it does for libraries, hidding
unexpected binaries ;-)

No objections in tech-pkg@ (or packages@; I don't remember the exact
list where I asked).
2005-01-11 13:39:19 +00:00
hubertf
d2b3d61718 rc is in /usr/pkgsrc/, even in sandboxes 2005-01-10 20:00:30 +00:00
jlam
27f0c5d4c2 _ALIASES.<wrappee> should be cumulative. 2005-01-10 19:38:53 +00:00
hubertf
8f1c2afbd1 Upload pkgs built in sandbox
(wrapper to 'upload' script, similar to do-sandbox-build).
2005-01-10 18:52:25 +00:00
jlam
d67a649768 Allow the creation of error handlers for shell commands in make targets.
PKG_ERROR_CLASSES is a list of error handlers, PKG_ERROR_HANDLER.<class>,
to create.  The default error handler will rethrow the exit code after
emitting an error message that may be specified per-class with
PKG_ERROR_MSG.<class>.

Create error messages for the configure and build phases that inform
the user of places to go looking for why the build didn't complete.
2005-01-10 18:34:48 +00:00
jlam
bde2c8d1b9 Fix error in previous that turned off all transformations in all
wrappers.  "Oops".  We now do transformations by default, and turn
them off explicitly for wrappers that don't want them, e.g. IMAKE.
2005-01-10 17:16:35 +00:00
jlam
9451157a8f Sort the compiler list in the comments. 2005-01-10 09:05:01 +00:00
jlam
f563b96808 Whitespace nits. 2005-01-10 08:59:07 +00:00
jlam
b73353dae2 Remove redundant CONFIGURE_ENV lines (they're already present in the
shell environment passed in the do-configure target.
2005-01-10 08:30:43 +00:00
jlam
fe94a16933 Avoid the silly optimization in the make logic and push it into the
shell script instead.  We can't avoid invoking sed at least once since
we need to protect the arguments against shell expansion, but we avoid
invoking sed for transformations unless there actually are transformations
to perform.  The code is simpler, more straightforward, and logically
correct now.

This fixes problems with using a non-GCC compiler with packages that
haven't been converted to use buildlink3, noted in PR pkg/28896.
2005-01-10 03:40:25 +00:00
jlam
c1a8410ae8 Modify krb5.buildlink3.mk so that we choose a single, well-known
package (heimdal) for all Kerberos 5 dependencies instead of choosing
the best installed Kerberos 5 package by default.  This can be overridden
with the following variables:

KRB5_DEFAULT is a user-settable variable whose value is the default
	Kerberos 5 implementation to use.

KRB5_ACCEPTED is a package-settable list of Kerberos 5 implementations
	that may be used by the package.
2005-01-09 23:59:26 +00:00
jlam
691395aa89 Modify bdb.buildlink3.mk so that we choose a single, well-known package
for all Berkeley DB dependencies instead of choosing the best installed
DB package by default:

1. BDB_DEFAULT is set in /etc/mk.conf for the life of pkgsrc and
   represents the package we use when either (1) a db-1.85 interface
   isn't required, or (2) a db-1.85 interface *is* required, but it's
   not builtin.  It defaults to "db4" but can be any of db[234].

2. BDB185_DEFAULT is set in /etc/mk.conf for the life of pkgsrc and
   represents the package we use when a db-1.85 interface is required.
   It defaults to "db1" if it's builtin, or to ${BDB_DEFAULT}
   otherwise.[**]

3. If we want db1, then we use the package named in BDB185_DEFAULT.
   If we don't want db1, then we use the package named in BDB_DEFAULT.

4. If ${BDB_DEFAULT} isn't listed in BDB_ACCEPTED for a package, then
   that package will be marked with PKG_FAIL_REASON as "${BDB_DEFAULT}
   not a supported Berkeley DB type for ${PKGNAME}."

Using the above scheme, on NetBSD, the default of BDB_DEFAULT=db4 and
BDB185_DEFAULT=db1 will cause db1 to be used whenever we want a db-1.85
interface and db4 to be used for all other packages.
2005-01-09 23:56:21 +00:00
jlam
840bee35ba If we fail the user/group existence test, then don't proceed to the
directory creation, which often need to create directories owned by
a particular user.
2005-01-06 23:44:35 +00:00
jmmv
5baeaac432 Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
seb
ae6f41a73d Apache6 package was removed on 2004/11/22: remove code to support it in
mk/apache.mk and references to it in mk/defaults/mk.conf.

It is now only referenced in some CONFLICTS specifications and some
dependencies specifications (for www/ap-dav and www/ap-jserv; should theses be
removed too?)
2005-01-03 13:20:28 +00:00
minskim
1d36b321d6 Make IS_BUILTIN.dl work on Interix. Patch provided by Hiramatsu Yoshifumi
in PR pkg/28836.
2005-01-03 04:57:51 +00:00
minskim
472c0e0fe2 Add the perl path to CONFIGURE_ENV here, so that we don't have to fix
every package using perl.
2004-12-31 13:13:56 +00:00
minskim
90e4fe3699 Create a symlink to the pkgsrc perl executable in ${TOOLDIR}/bin so
that native perl is never used.

Suggested by jlam@.
2004-12-30 09:47:01 +00:00
minskim
dcc78c4962 Use GNU make on Linux when USE_IMAKE=yes, because Makefile generated
by imake on Linux requires GNU make.
2004-12-29 23:19:42 +00:00
wiz
bc871f8be3 Fix ttf/type1 handling in fonts.mk:
Previously, ttmkfdir's output was redirected to fonts.dir,
while the correct behaviour is to let it create fonts.scale
and then let mkfontdir merge fonts.scale into fonts.dir.
type1 handling had a similar problem.
Get the wanted behaviour by automatically appending the contents of
FONTS_TTF_DIRS and FONTS_TYPE1_DIRS to FONTS_X11_DIRS.
Also, save a subshell in install/fonts while there.

Bump PKGREVISION for all affected packages.

jmmv@ says ok.
2004-12-28 14:38:03 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
jlam
25b0d4a59c OpenBSD uses the NetBSD user/group management tools, so re-add back
support for USERADD/GROUPADD on OpenBSD.
2004-12-27 08:38:09 +00:00
jlam
25b81680be Remove USERADD and GROUPADD definitions from OSes where the useradd
and groupadd commands won't follow the calling conventions of the
NetBSD useradd/groupadd.  Modify the INSTALL scripts to *never* create
users or groups if there is no available ${USERADD} or ${GROUPADD}
command, but will warn the user of users and groups that need to be
created before the package can be installed.
2004-12-27 06:41:50 +00:00
jlam
25ecd0385c It's "modules/by-module". 2004-12-26 23:15:48 +00:00
jmmv
7bfa622ee9 Set default values for MLDONKEY_{GROUP,HOME,USER} and document them. 2004-12-25 19:16:29 +00:00
jlam
d8184c92cf Back out CPAN_MODULE_DIR change. Due to the way make variables are
evaluated, this broke MASTER_SITES in many p5-* packages.
2004-12-25 03:43:33 +00:00
jlam
687d5dc611 Rename to "CPAN_MODULE_PATH" to "CPAN_MODULE_DIR". 2004-12-25 03:22:37 +00:00
jlam
eeecb05048 Create CPAN_MODULE_PATH which points to the location of Perl modules at
a CPAN mirror.  By default, it is "modules/by-module".
2004-12-25 03:20:33 +00:00
jmmv
22c78c78fb Add 'as' locale, initially used by atk 1.9.0. 2004-12-24 12:28:58 +00:00
jmmv
eb0c4759ca Enable theme-dirs. 2004-12-24 10:06:41 +00:00
jmmv
77acc28001 Add rw locale, initially used by GTK+ 2.6.x. 2004-12-23 22:42:08 +00:00
jlam
1a36b3b670 Don't remove library options from the command line quite so aggressively.
Allow the configure process a chance to detect on its own whether the
named library exists or not by allowing those library options to pass
through to the compiler on a test compile.  A package that *needs*
those library options to be removed can add the appropriate rm:
BUILDLINK_TRANSFORM command to its package Makefile.
2004-12-23 14:27:04 +00:00
jlam
650b62997d Remove support for some variables that are supposed to go away after
pkgsrc-2004Q4 is branched.
2004-12-22 21:46:24 +00:00
jlam
bf4e0b5a64 On NetBSD, rpcgen must *always* be invoked with "-b":
-b      Compile stubs in "backwards compatible" mode, disabling
             support for transport-independent RPC.  The -b should always
             be specified when generating files for NetBSD, since there is
             no transport-independent RPC support in NetBSD.

Therefore, force "-b" to be the first argument whenever rpcgen is invoked
via the wrapper.
2004-12-22 21:39:25 +00:00
agc
429fdd9cb8 Whitespace police - no functional change 2004-12-21 17:30:07 +00:00
grant
2ba54e3789 libtool>=1.5.10nb9 actually works on DragonFly, so require at
least that version.
2004-12-21 13:52:26 +00:00
schmonz
18d08b239f Introduce QMAIL_QFILTER_TMPDIR, the temporary directory for
qmail-qfilter. Defaults to ${VARBASE}/tmp/qmail-qfilter.
2004-12-21 00:19:40 +00:00
grant
80e7ac22fb Darwin 7.7.x has poll() in libc, but no poll.h. Address this in GNU
configure packages by testing for poll.h and sys/poll.h and pretending
that there is no poll() if neither exist.
2004-12-20 13:09:04 +00:00
grant
8e83f3f367 fix MASTER_SITE_GNOME .au example. 2004-12-19 00:45:19 +00:00
grant
40a1b4637f transform -fPIC to -qnocommon and clarify the related comment. 2004-12-19 00:38:59 +00:00
jlam
8b2040b409 Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
The wrapper will correctly set the CPP environment variable to a
stat((2)able path to a C preprocessor, then rely on the PATH to
find and invoke the real rpcgen.

Remove NO_EXPORT_CPP in package Makefiles where it was used just to
avoid problems with rpcgen.  The build system now just does the right
thing automatically without needing package-specific knowledge.

This fixes PR pkg/27272.
2004-12-18 19:24:26 +00:00
grant
7bbc828ce7 document QPOPPER_SPOOL_DIR. 2004-12-18 04:03:16 +00:00
jlam
651a4a40fd Ensure that libtool-base>=1.5.10nb7 is required for packages that set
USE_FORTRAN.
2004-12-18 00:14:04 +00:00
jlam
88648515a2 Rewrite func_infer_tag in the libtool script so that it's easier to
specify (hardcoded) compilers from which we can infer the correct tag
(CC, CXX, F77).  Use the following patterns to match compilers to
tags:

	CC:	*cc *xlc
	CXX:	*++ *CC
	F77:	*77 *fort

Bump the PKGREVISION to 1.5.10nb7 since we now infer the F77 tag from
likely Fortran compilers.  Also require at least this version of
libtool when building packages that set USE_FORTRAN.  This should fix
PR pkg/28661.
2004-12-17 16:24:22 +00:00
tron
ecdfaff3a2 Remove "http://aleron.dl.sourceforge.net/sourceforge/" once more because
it still doesn't work.
2004-12-15 14:38:53 +00:00
grant
22c75b5b2f fix perl modules path in cpan.pair.com URL. 2004-12-14 10:06:16 +00:00
kristerw
4b4db9826b Make bulk builds mark packages failing due to "no acceptable JVM found"
as unavailable instead of broken.
2004-12-14 00:08:57 +00:00
kristerw
fdb6419bd5 The documentation claims you can use -m as an alias for --mirror_only.
Make it so.
2004-12-11 02:49:57 +00:00
jlam
bda6801430 Create directories before putting files in them. This should fix
PR pkg/28480.
2004-12-11 00:32:16 +00:00
jlam
82d866954b Nuke bsd.perl.mk... we compute these values where they're needed in
perl5/buildlink3.mk already, so no need to include this file in
bsd.pkg.mk anymore.
2004-12-10 04:25:09 +00:00
jlam
452e77d799 From inspecting configure scripts, it seems FreeBSD wants "-D_THREAD_SAFE"
as part of the CPPFLAGS when building threaded apps.
2004-12-09 15:27:13 +00:00
wiz
cc53e3582a ftp2.sf.net is much more responsive than ftp3; replace the latter with the former. 2004-12-08 16:21:00 +00:00
schmonz
c0b159de2e In the show-options target, ensure that PKG_OPTIONS and friends
are non-empty before shelling out to xargs. Silences spurious output
from "pkg_chk -i" and probably others.
2004-12-05 23:23:50 +00:00
grant
c463b8b491 make sure some variables are initialized before using them. 2004-12-05 22:38:06 +00:00
grant
748314ae90 add handling for some required -Wl, transformations for packages that
assume Apple gcc on Darwin. thanks, Johnny :)

this allows perl to build with xlc.
2004-12-05 09:29:26 +00:00
grant
273a47a3d8 whitespace fix 2004-12-05 09:27:23 +00:00
grant
71232b1911 transform -dynamiclib and -fno-common to the appropriate arguments
for xlc.
2004-12-05 09:26:59 +00:00
grant
e221a993eb add show-options target which displays the options available, default,
and enabled for the current pkg, eg. mail/sendmail:

available: db2 db4 inet6 ldap sasl sasl2 socketmap starttls tcpwrappers
default: canna esound gif idea inet6 inet6 sj3 tcpwrappers wnn4
enabled: inet6 tcpwrappers
2004-12-05 09:20:48 +00:00
jlam
bd720de98f Allow the wrapper-specific transform scripts to replace one arg with
several args by setting split_arg="yes" as part of the transformation.
2004-12-05 03:43:18 +00:00
grant
17c0839438 don't throw away all "-Wl," arguments, they are needed to pass various
shlib options to the Darwin linker.
2004-12-05 02:47:52 +00:00
grant
b0797b36a4 fix typo 2004-12-05 02:41:31 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
dillo
36aee2a648 add MASTER_SITE_IFARCHIVE -- list of mirrors of the Interactive Fiction Archive 2004-12-02 21:56:06 +00:00
jlam
406700e994 Don't hardcode /usr/include/db.h and /usr/include/db1/db.h all over the
place.  Also, modify the buildlink-db1-db185-h target to use symlinks
instead of include <db.h> since several bdb implementations might be
buildlinked, and we need to be more precise about exactly which db.h
header is being used.
2004-12-02 17:40:49 +00:00
jlam
6c02e9e0aa If we're using the builtin dlopen(), and libdl.* doesn't exist, then
drop the "-ldl" option on the floor.  This "fixes" packages that
hardcode "-ldl" into the command line when linking software.
2004-12-02 15:04:16 +00:00
wiz
913b2647ad "the the" -> "the" 2004-12-01 09:52:59 +00:00
tv
29b0526b9b We already know that bsd.prefs.mk is included before this, so reduce make
parser churn by skipping a second include of it.

Use PKGDIR in preference to .CURDIR as in other .mk files.
2004-11-30 15:09:45 +00:00
jlam
28e0cb9288 Remove the trailing whitespace in the values of the toolchain variables
(CC, LD, CXX, etc.) if the default values have no arguments.  Now,
CC == "cc" and not "cc ".
2004-11-30 15:07:26 +00:00
jlam
eb9034727a Modify the way that the toolchain variables, e.g. CC, CPP, CXX, LD, etc.,
are handled.  The idea now is to simply remove the paths in the values
of these variables, leaving behind only the basename plus any arguments,
e.g.:

	CC= /usr/local/bin/gcc       becomes   CC= gcc
	CPP= /usr/local/bin/gcc -E   becomes   CPP= gcc -E

The wrapper scripts are generated for every unique executable mentioned
by the toolchain variables, so for the example above, only a "gcc"
wrapper script is generated for ${CC} and ${CPP}.  PKG_{CC,CPP,CXX,etc.}
are the paths to the executables wrapped by the wrapper scripts.

Note that it's now possible to set "CC" to something more than just the
path to the compiler, e.g.

	CC= cc -ffast-math -funroll-loops -fomit-frame-pointer

and the full value of ${CC} will be passed through via CONFIGURE_ENV
and MAKE_ENV.
2004-11-30 14:50:37 +00:00
seb
3e4e8e4fea Since last revision PTHREAD_AUTO_VARS defaults to 'no'. 2004-11-29 17:27:14 +00:00
tv
fbbc1e4cdf Remove anl.gov from _CYGWIN as it is either slow or dead most of the time. 2004-11-29 02:00:30 +00:00
jlam
c88ff0fa15 Set initial values for PKG_{CC,CPP,CXX,FC} which are used within the
${compiler}.mk files to discover the short names of the compilers.
This allows ccache.mk to properly create symlinks when CC is set
explicitly within /etc/mk.conf.
2004-11-28 21:32:47 +00:00
jlam
40377c791f Remove pre-buildlink and post-buildlink as part of getting pkgsrc ready
for pkgsrc-2004Q4.  The "buildlink" phase was removed for the last branch,
and this is the final cleanup.  "post-buildlink" is now "post-wrapper".
2004-11-28 19:19:51 +00:00
jlam
b87ac57b91 Don't show the currently selected options if there aren't any. 2004-11-28 08:00:51 +00:00
jlam
9636b9d697 Reverse the tests so that we actually check for the existence and not
the non-existence of the library -- this more accurately reflects what
we want to say.
2004-11-28 05:44:34 +00:00
grant
e71f192b37 CFLAGS+=-ma because most packages expect alloca to be available and
this makes it so with xlc.
2004-11-27 15:28:34 +00:00
xtraeme
ce8b80770c Remove "LYNX_SCREEN_LIB" option, not supported by the lynx package right
now, use PKG_OPTIONS.lynx+=foo bar instead.
2004-11-27 08:47:36 +00:00
jlam
add5eb0d1d Output the currently selected options after telling the user which
options are available.
2004-11-27 04:50:55 +00:00
jlam
172a3cdee1 Match NetBSD-2.x_RCn as well as NetBSD-2.x. 2004-11-26 21:04:46 +00:00
jlam
061ff7543b Move the section that defines DLOPEN_REQUIRE_PTHREAD outside of the
CHECK_BUILTIN.dl-protected section so that it's value can be usd after
dlopen.buildlink3.mk is included.  This should fix PR pkg/28422.
2004-11-26 17:42:42 +00:00
jlam
f96609e939 Check that USE_BUILTIN.dl is "yes", not that it's just defined. 2004-11-26 09:32:06 +00:00
jlam
bdbcf6f038 Don't auto-add -ldl to LIBS since most GNU configure scripts already
check for this condition.
2004-11-26 08:26:51 +00:00
jlam
96786425e0 Don't append BUILDLINK_CFLAGS.pthread to itself if pthread.builtin.mk
gets included multiple times.
2004-11-26 08:18:30 +00:00
jlam
b47bc866c0 Move all dlopen-handling code into dlopen.{builtin,buildlink3}.mk. 2004-11-26 08:15:25 +00:00
jlam
399f4ba496 More tightly integrate the OSF1 changes into pthread.builtin.mk by using
more feature tests instead of OPSYS tests.
2004-11-26 08:12:59 +00:00
jlam
825f6216b4 Split dlopen.buildlink3.mk into two files: dlopen.buildlink3.mk, which
is included by packages that use dlopen(), and dlopen.builtin.mk,
which checks for the presence of built-in dl*() functions.  On Darwin,
including dlopen.buildlink3.mk will cause the devel/dlcompat package
to be used if the base system lacks a dlcompat library.
2004-11-26 07:05:19 +00:00
jlam
67e7448da0 Fix the "MACHINE_PLATFORM" patterns by appending "-*". 2004-11-26 01:58:47 +00:00
jlam
a3af230352 Define DL_{CFLAGS,LDFLAGS,LIBS} as compiler/linker flags for building
or linking code that uses dl*() functions.  Also re-structure a bit to
pave the way for a future dlopen.builtin.mk that handles -ldl on some
platforms and dlcompat on Darwin.
2004-11-26 01:56:17 +00:00
jlam
f551f31daf Missing a make variable modifier. 2004-11-26 01:40:42 +00:00
jlam
72d942ad5a Add missing quotes. 2004-11-26 01:22:31 +00:00
jlam
cf6bd5fad8 Don't recursively define _DLOPEN_REQUIRE_PTHREADS. 2004-11-25 22:18:34 +00:00
jlam
b0427900c8 Perl is all about loadable perl modules, so include dlopen.buildlink3.mk.
If we include pthread.buildlink3.mk, then build with Perl ithreads
support.  Bump the PKGREVISION.

Nuke the perl58-thread package.  The perl package can now be forcibly
built with thread support by setting PERL5_USE_THREADS to "yes".
2004-11-25 22:02:49 +00:00
jlam
3c17831da9 Only include pthreads if we prefer native pthreads. This allows building
pkgsrc without any pthreads if we don't want to.
2004-11-25 21:43:19 +00:00
jlam
2e5e6fbf72 dlopen.buildlink3.mk should be added to packages that use dlopen() to
load shared objects.  Some platforms require pthreads to be linked
into the application if it uses dlopen() or else the applications will
core dump when they dlopen a shared module that _is_ linked with
pthread support.  Including dlopen.buildlink3.mk in a package Makefile
will cause pthread.buildlink3.mk to also be included.

It is up to the package to ensure that PTHREAD_{CFLAGS,LDFLAGS,LIBS}
(defined by pthread.buildlink3.mk) are passed to the compiler when
building/linking the applications, possibly by setting PTHREAD_AUTO_VARS
to "yes" in the package Makefile.
2004-11-25 21:33:36 +00:00
jlam
e2cc31acb2 Default USE_GIF to "yes". This affects graphics/tiff and x11/qt1,
which will now be built by default with the ability to write LZW-compressed
files.
2004-11-25 19:37:58 +00:00
jlam
3bbe73c68a Default PTHREAD_AUTO_VARS to the safer value of "no". Most packages
that use pthreads already implement their own probes for pthreads, so
we don't need to auto-add the compiler/linker flags.
2004-11-25 19:34:03 +00:00
wiz
c48a7167ce Sync MASTER_SITE_SOURCEFORGE with reality. 2004-11-24 15:36:34 +00:00
jlam
4952f1a79c Don't hard-code "lang/perl58". Instead, use the value of PERL5_PKGSRCDIR
which is computed based on whether perl or perl-thread should be the
default.
2004-11-23 19:44:02 +00:00
jlam
19c97f1019 Fix the find command used to print out all of the .broken* files. It now
prints out both the .broken.html and .broken.work.html files instead of
just the latter.
2004-11-23 19:31:46 +00:00
jlam
b72e03c8a5 Use CCPATH instead of referring to the C compiler by its full path in
multiple places.
2004-11-23 05:32:22 +00:00
jlam
539fa6a01b Whitespace changes. 2004-11-23 05:24:28 +00:00
dmcmahill
1efd592495 add {CC,CXX,FC,F77}PATH variables which give the complete path and
name of the {CC,CXX,FC,F77} compilers.  These will be used by pkgs
which need to know which compiler and where it is at run time.

Approved by jlam@
2004-11-23 00:46:26 +00:00
wiz
43de7f8bc0 Now that no package uses USE_GCC_SHLIB any longer, remove support
for it from compiler.mk.

Move the variable of the same name used by compiler/gcc.mk and
the gcc* buildlink3 files into private namespace (_USE_GCC_SHLIB).
2004-11-22 22:24:46 +00:00
wiz
1fdf9e5bd6 Remove a duplicate gnome mirror, and fix path on a second one. 2004-11-22 17:12:42 +00:00
wiz
1d2852cb72 Change perlfiles var to look for files from perl*,
not only perl, so that perl-thread files are not marked as leftovers.
2004-11-22 12:53:56 +00:00
grant
b4ba1b2d00 add OSF1 bits. 2004-11-20 23:30:22 +00:00
kim
f22d973c2f Add AMANDA_TMP 2004-11-20 23:09:48 +00:00
grant
4321a9c877 quieten spurious broken pipe output from cc. 2004-11-20 05:54:36 +00:00
grant
cda1ab8d17 add pthread glue for OSF1, patch from Tobias Nygren. 2004-11-20 05:19:12 +00:00
grant
c047f6663e backout cvs misfire 2004-11-20 04:38:09 +00:00
grant
919cb8bddb add framework support for Tru64 and the Compaq C compiler.
patches provided by Tobias Nygren <tnn at netilium dot org> with
minor changes by me.
2004-11-20 04:37:08 +00:00
tv
e281d8ed2c Remove PERL5_USE_THREADS setting now that the default is perl58-thread. 2004-11-19 13:10:05 +00:00
xtraeme
838274a29f OpenBSD's pax(1) doesn't support -O flag, so use the pkgsrc one. 2004-11-18 04:22:39 +00:00
xtraeme
78d6464808 OpenBSD was fork()ed from NetBSD, so this uses -lossaudio as well. 2004-11-18 04:00:50 +00:00
jlam
a96518e2b0 Remove some obsolete/deprecated variables that have been in this file
for over two years.  They're officially dead now for the upcoming
branch and beyond.
2004-11-17 23:28:12 +00:00
jlam
55ba984801 Move selection of the default perl58 (whether it is threaded or not) into
bsd.pkg.mk.  lang/perl58 now always builds perl58, while lang/perl58-thread
builds perl58-thread (POLS).  Fixes PR pkg/28343.
2004-11-17 22:55:14 +00:00
jlam
319f9f72eb PTHREAD_AUTO_VARS is "yes" or "no" for whether the values of the
variables PTHREAD_{CFLAGS,CPPFLAGS,LDFLAGS,LIBS} should be automatically
added to their respective variables.  Defaults to "yes".

Packages that only require some parts to be linked the the pthreads
compiler/linker options should set this to "no" and selectively add
those options via patches to the right makefiles..
2004-11-17 21:05:24 +00:00
jlam
b990d523e9 Generalize BUILDLINK_AUTO_LIBS.<pkg> to BUILDLINK_AUTO_VARS.<pkg>,
which is "yes" or "no" for whether the values of any of
BUILDLINK_{CPPFLAGS,CFLAGS,LDFLAGS,LIBS}.<pkg> should be appended
automatically to their respective variables.
2004-11-17 21:01:00 +00:00
jlam
9418b1ff37 BUILDLINK_AUTO_LIBS.<pkg> is "yes" or "no" for whether BUILDLINK_LIBS.<pkg>
should automatically be appended to LIBS.  It defaults to "yes".
2004-11-17 19:40:35 +00:00
tv
069c8dffba For some reason EVAL_PREFIX is not properly using the _DEFAULT values, so
re-add the ?= assignments.  (Will be fixed properly later.)
2004-11-17 17:18:33 +00:00
tv
f1b2b2d6a7 Don't check _*PREFIX/bin for the requested compiler hook program. If
PKGSRC_COMPILER requested it, assume that it's available, so that
compilation will (properly) fail if the hook program is somehow not
correctly installed.
2004-11-17 17:14:43 +00:00
jlam
81e4749b3f If we don't need to link against -ldb or -ldb1 (because the DB functions
are a part of libc), then remove "-ldb" altogether.  This should fix
GNU configure scripts that assume you need to at least link against
"-ldb".
2004-11-17 15:12:08 +00:00
jlam
b2320b8957 Preserve the .work.log file from a broken build as .broken.work.html
in the package directory, and add a link to it from .broken.html at
the point where the build fails.  Also adjust the auxilliary scripts
to handle/cleanup .broken.work.html files.

This should enhance the ability of developers to debug broken builds
by providing important information about what is happening as a build
progresses and fails.
2004-11-16 18:34:12 +00:00
tv
4b5d899ef8 Revert previous (re-add common CPP_PRECOMP_FLAGS). For consistency, also
move usage of _USER_DEPENDS and _OPSYS_MAX_CMDLEN to bsd.pkg.mk.
2004-11-16 18:04:00 +00:00
tv
2e3f2421db CPP_PRECOMP_FLAGS is a Darwinism only. Move its frobbing of CPPFLAGS to
platform/Darwin.mk (simplification).
2004-11-16 16:21:40 +00:00
jlam
d1152688ba If we're using db1, the create a compatibility header db_185.h that is
in newer Berkeley DB packages.
2004-11-15 18:23:40 +00:00
jlam
581bc42843 Whitespace nits. 2004-11-15 18:14:10 +00:00
jlam
9572207dcf Store the actual library options in BUILDLINK_LDADD.db1 and append that
to BUILDLINK_LIBS.db1.  This ensures that BUILDLINK_LDADD.${BDB_TYPE}
always resolves to the correct library options.
2004-11-15 18:01:58 +00:00
jlam
b67b0725c4 Rework the Berkeley DB detection in buildlink3:
* Add a db1.builtin.mk file that detects whether DB-1.85 functionality
    exists in the base system, and remove the distinction between
    "native" and the other Berkeley DB packages -- we now refer to
    db[1234].  This paves the way for any future databases/db1 package.

  * USE_DB185 shouldn't need to be set by any packages -- its correct
    value is now automatically determined by bdb.buildlink3.mk depending
    on whether we explicitly request db1 or not.  By default, if you
    include bdb.buildlink3.mk, you want DB-1.85 functionality and
    USE_DB185 defaults to "yes", but if you explicitly remove db1 from
    the list of acceptable DBs, then USE_DB185 defaults to "no".

  * Set BDB_LIBS to the library options needed to link against the DB
    library when bdb.buildlink3.mk is included.

  * We only add the DB library to the linker command automatically if
    we want DB-1.85 functionality; otherwise assume that the package
    configure process can figure out how to probe for the correct
    headers and libraries.

Edit package Makefiles to nuke redundant settings of USE_DB185.
2004-11-15 17:54:49 +00:00
tv
d1383b985f Set some _OPSYS_SHLIB_TYPE to precisely 'ELF' on platforms where a.out is
not being used by pkgsrc at all.  This saves some build time in
show-shlib-type.
2004-11-15 14:48:18 +00:00
jlam
4c79895c31 Add a mini-framework to centralise the handling of "hacks" for getting
particular packages to compile correctly.  bsd.hacks.mk auto-includes
the hacks.mk file in the current directory.  An example hacks file:

-------------8<-------------8<-------------8<-------------8<-------------
.if !defined(FOO_HACKS_MK)
FOO_HACKS_MK=	defined

### [Sun Nov 14 02:08:31 EST 2004 : jlam]
### arm GCC 2.95.x optimisation bug tickled when compiling
### lib/funkyfile.c.  Require a more recent version of GCC as a
### workaround and patch lib/funkyfile.c (patch-ae).
###
.if !empty(MACHINE_ARCH:Marm*)
PKG_HACKS+=	optimisation
GCC_REQD+=	3.0
.endif

.endif  # FOO_HACKS_MK
-------------8<-------------8<-------------8<-------------8<-------------

The comment which heads each individual hack should timestamp when the
hack was added and describe the bug that requires the hack.  By
separating out hacks to a separate file, we should be able to simplify
package Makefiles so that they are more readable.
2004-11-14 07:23:07 +00:00
jlam
3586ec85db Move PREFER_NATIVE_PTHREADS default setting to from pthread.buildlink3.mk
to defaults/mk.conf, where all defaults should live.
2004-11-12 22:34:15 +00:00
jlam
8a7d3d2ec6 Don't expand .la files in PLISTs that are symlinks. The expansion should
only occur with the real .la file.  This avoids the problem noted by
Greg Troxel in:

	http://mail-index.netbsd.org/tech-pkg/2004/11/12/0018.html
2004-11-12 21:21:08 +00:00
sketch
cc78d56bb6 Introduce LIBABISUFFIX for platforms which require ABI-dependant library paths. 2004-11-12 20:25:41 +00:00
jlam
92eea4d8e0 Insert the default values for WRAPPER_DEBUG and WRAPPER_UPDATE_CACHE as
defaults within the wrapper script.  This avoids requiring those two
variables to be defined in the shell environment for the correct defaults
to take effect.
2004-11-12 16:27:57 +00:00
jlam
d13b06f317 Bulk builds should be defaulting to building perl58. 2004-11-12 15:39:22 +00:00
jlam
af591191d2 Remove redundant uses of PTHREAD_{CFLAGS,LDFLAGS} now that they're added
automatically by pthread.buildlink3.mk.  Also, factor out the pthread
library out of PTHREAD_LDFLAGS into a standalone variable PTHREAD_LIBS
and use it in packages where necessary (usually the ones that don't
have a GNU configure script).
2004-11-12 06:39:19 +00:00
jlam
153b3f00b7 (1) Split out the native (built-in) pthread detection in
pthread.buildlink3.mk into a separate file, pthread.builtin.mk,
    that is handled using the usual builtin.mk logic.

(2) If pthread.buildlink3.mk is included by a package Makefile, then
    automatically add the necessary compiler and linker flags to
    compile and link pthread-enabled/reentrant code.  For native
    pthreads, this means passing -pthread to the compiler and linker.
    For the userland pthread replacement, we pass -D_REENTRANT and
    -lpthread instead.

(3) Add PTHREAD_{CFLAGS,LDFLAGS,LIBS} in both CONFIGURE_ENV and MAKE_ENV
    when pthread.buildlink3.mk is included so that the configure and
    build processes can use these values.  Remove these definitions
    from bsd.pkg.mk since PTHREAD_* variables are all declared within
    pthread.buildlink3.mk.

XXX For now, PTHREAD_LDFLAGS is a superset of PTHREAD_LIBS until
XXX packages that use use PTHREAD_LDFLAGS can be fixed.
2004-11-12 05:20:01 +00:00
jlam
e5817e65a2 Teach the native linker to accept "-pthread" by silently dropping it.
This allows "-pthread" to be added to LDFLAGS for use by both the
compiler and the linker.
2004-11-12 05:02:41 +00:00
jlam
88b9364ed3 Add a new variable BUILDLINK_LIBS.<pkg> which contains a list of -l...
options (library options) to be appended automatically to LIBS when
building against <pkg>.  LIBS is used by GNU configure scripts to note
the library options that are automatically added to the link command
line.
2004-11-12 04:57:31 +00:00
tv
6d01962e98 Well, the double libtool BUILD_DEPENDS is already annoying people and I'd
rather not force BUILD_DEPENDS through the (slow) reduce-depends dance, so
resurrect LIBTOOL_REQD (though in a bit more succinct manner).
2004-11-12 02:05:20 +00:00
tv
e8e85c8003 Bump that libtool version number back down to nb1 where it was in previous. 2004-11-11 22:34:12 +00:00
tv
d8c17c9d39 Change the way _OPSYS_LIBTOOL_REQD works slightly.
Rather than replacing the LIBTOOL_REQD value, add two BUILD_DEPENDS lines.
That way, the higher numbered BUILD_DEPENDS wins -- allowing the version
in bsd.pkg.mk to be bumped beyond the value in the platform .mk and still
be enforced properly.
2004-11-11 22:32:45 +00:00
tv
a09be89d5a NetBSD now needs libtool-base-1.5.10nb6. 2004-11-11 22:29:40 +00:00
tv
91907b6376 -pthread is invalid for Interix gcc. Add a failure for it so that
portability oopses can be caught earlier.
2004-11-11 00:49:01 +00:00
jlam
8f7405c2b5 Correct debugging output to show the actual script name. 2004-11-10 21:08:11 +00:00
jlam
2d6f90d42d Backout previous pending further testing. There are rumors of problems
with -pthread/-pthreads GCC options detection that may be difficult to
overcome.
2004-11-10 18:46:07 +00:00
jlam
45aebed3b7 Allow BUILDLINK_BUILTIN_MK.<pkg> to point to the builtin.mk file for the
specified package.  This defaults to the builtin.mk file in the pkgsrc
package directory.
2004-11-10 17:39:03 +00:00
jlam
0d1a6b1c29 If we are using native pthreads, then add "pthread" to BUILDLINK_PACKAGES
so that the buildlink3 framework knows to use the various
BUILDLINK_*.pthread variables.  This fixes a long-standing and long-
overlooked bug in pthread.buildlink3.mk that has existed since the
buildlink3 framework was initially committed.

As a result of this change, modifications to packages to introduce
PTHREAD_{CFLAGS,LDFLAGS} in various places to either the configure script
or into Makefiles are probably no longer needed.
2004-11-10 17:29:37 +00:00
sketch
94f891acb9 SunPro understands -Wl,* and passes to the relevant backend, so don't bin it.
Fixes at least graphics/netpbm.
2004-11-10 16:20:40 +00:00
shannonjr
7ce1b962f3 Update _GCC_DIST_VERSION to 3.4.3 2004-11-10 12:04:59 +00:00
jlam
17f45b2ca7 The "transform" file is used to transform arguments on the command line.
The "untransform" file is used to unwrap *-config files and *.lai files.

The transform file can be much stricter about what command line arguments
should look like, so take advantage of that to fix the "libpath" and
"libpath-in-define" regression tests.
2004-11-09 17:16:16 +00:00
jlam
8542f8be3d g/c unused variable _ws_sep. 2004-11-08 22:29:19 +00:00
jlam
a684410450 Whitespace fixes. 2004-11-08 22:26:31 +00:00
jlam
5deded3d41 Remove unnecessary argument checks. 2004-11-08 22:24:22 +00:00
tron
69a269a87e Remove "aleron.dl.sourceforge.net" from "MASTER_SITE_SOURCEFORGE"
because it keeps failing or more than a week.
2004-11-06 15:58:50 +00:00
wiz
e265fbd577 Add a switch SUSE_PREFER which can be set to 9.1 to get
suse91 packages by default.
2004-11-05 13:46:39 +00:00
wiz
6af35801a0 Some updates for DragonFly from Todd Willey via tech-pkg. 2004-11-02 22:24:35 +00:00
agc
ec3956e4aa Correct whitespace after UPDATE_RUNNING changes 2004-11-02 08:31:45 +00:00
erh
00d045e33b Set UPDATE_RUNNING=YES when deinstalling due to a update or replace target.
Use this to trigger appropriate args to pkg_delete so PKG_PRESERVE packages
can be upgraded.
2004-11-02 00:03:09 +00:00
wiz
e8cb326b9f Add DragonFlyBSD support, provided by Todd Willey on tech-pkg. 2004-10-31 22:05:02 +00:00
tv
2e2cb6b1ef Clarify previous (missing a word). 2004-10-29 15:15:50 +00:00
tv
6e04a29aad Add a block comment to track the base addresses of Interix shlibs as used
in pkgsrc.  (Since they are non-PIC, they require better than just default
base addresses in some fashion, or else face runtime text relocation.)
2004-10-29 15:15:10 +00:00
tv
ce5ae8b6ad Collapse ROOT_CMD a little; it's possible to make all invocations do the
$(id -un ...) dance for canonical naming.
2004-10-29 14:53:39 +00:00
darcy
9a93a222e9 Changed name of variable from file to cfile (config file) so that pkglint has
one less thing to complain about in every package that includes this file.
2004-10-29 12:30:20 +00:00
tv
2c8efb738f Fix shlib execute perm pattern (was broken after 1.1537).
Also, to address concerns raised on tech-pkg, only issue the warning about
execute permission if PKG_DEVELOPER is set.
2004-10-28 14:05:56 +00:00
xtraeme
3c76f3a70b mysql.bl3.mk suggested by Jaromir Dolecek (jdolecek@):
Default mysql package if there isn't any installed is mysql-4.1.7
(databases/mysql4-client)

You can choose a mysql package via MYSQL_VERSION_DEFAULT, it will
accept the following values:

MYSQL_VERSION_DEFAULT=41 # <- mysql-4.1.7
MYSQL_VERSION_DEFAULT=40 # <- mysql-4.0.21
MYSQL_VERSION_DEFAULT=30 # <- mysql-3.5.x
2004-10-28 11:28:27 +00:00
wiz
c3f7f45921 Fix path to CPAN on cloud9. 2004-10-28 09:53:44 +00:00
recht
b83ac5ddfa - Allow CXXFLAGS to be set on a per-OS basis (read added to OPSYSVARS).
- Set CXXFLAGS in the MAKE_ENV (if defined).
2004-10-27 21:45:53 +00:00
tv
28cb3985eb Don't chmod shlibs that are symlinks; fixes issue noted by <grant@netbsd.org>.
Also don't do the ldd-REQUIRES dance unless SHLIB_HANDLING=YES (because you
don't want to run a native ldd on a foreign binary).
2004-10-27 13:47:41 +00:00
grant
91c3a1ad95 whitespace police and tidyup of PLIST_SUBST. no functional change. 2004-10-27 10:41:43 +00:00