Commit graph

4708 commits

Author SHA1 Message Date
rillig
8506e905d6 pkglint does not output any "OK" lines by default, so there's no need to
filter them out.
2005-06-27 16:25:43 +00:00
rillig
63d76b7f93 Fixed the quoting. The shell is hard-coded to /bin/sh instead of relying
on which(1). Correctly pass all arguments (even the first one) to the
build script. This fixes PR 30362.
2005-06-27 16:04:08 +00:00
wiz
2baa8b4a15 Improve English in warning. From Rhialto in PR 30610. (second occurrence) 2005-06-27 13:34:41 +00:00
wiz
6328437570 Improve English in warning. From Rhialto in PR 30610. 2005-06-27 13:33:55 +00:00
minskim
af252c5f04 Darwin>=7.0 does not need devel/dlcompat. 2005-06-26 13:11:22 +00:00
minskim
1766fa83af Fix another typo (TOOLS_READ_CMD -> TOOLS_REAL_CMD). 2005-06-24 21:21:31 +00:00
minskim
b27f349884 Fix a typo. 2005-06-24 21:17:01 +00:00
jlam
73e8531006 Teach the tools framework about csh, and replace with tcsh if necessary. 2005-06-24 20:59:59 +00:00
jlam
237d39908a Create TOOLS_LDCONFIG and LDCONFIG variables that contain the actual
command that can be embedded into packages.  Calling a bare "ldconfig"
will still call the one in the tools directory, which always does the
right thing.
2005-06-24 20:40:53 +00:00
jlam
aa8ce0eb27 Remove unused variable _TOOLS_VARNAME.ldconfig. 2005-06-24 20:33:52 +00:00
minskim
36a63b2df7 Darwin may have bzcat. 2005-06-24 20:15:06 +00:00
minskim
317318f0f0 Support bash as a tool, so that packages containing bash scripts
(e.g. graphics/netpbm) use native bash if available.
2005-06-24 19:39:10 +00:00
sketch
4228902141 Use ${PERL5} instead of `perl' and relying on $PATH order. 2005-06-24 13:37:51 +00:00
dillo
334a53f8dc lang/perl58 has been renamed to lang/perl5 (hi johnny!) 2005-06-24 08:29:59 +00:00
jlam
c2fb31ba79 Drop the perl-5.6.x package from pkgsrc. Remove lang/perl58 and update
lang/perl5 to perl-5.8.6nb4.  Modify packages that referred to
lang/perl58 to point to lang/perl5 instead.
2005-06-24 06:43:43 +00:00
kristerw
9768a1614a CHECK_FILES is not ready for prime time, so do not enable it by
default for PKG_DEVELOPER yet...
2005-06-23 21:34:01 +00:00
jlam
31379eace1 Put back behavior that was lost in the initial split of the check-files
implementation out of bsd.pkg.mk -- if NO_PKG_REGISTER is defined,
then don't bother with the file-checks because we don't care about
cleaning up afterwards if we can't uninstall the package.
2005-06-23 21:06:56 +00:00
jlam
1cae80d83e Add a PKGSRC_USE_TOOLS definition to bsd.pkg.check.mk that notes the
tools that are used in the targets.  Also, replace "diff" with ${DIFF}.
2005-06-23 20:51:00 +00:00
jlam
df8c47b2f2 Note locations for native diff tools. 2005-06-23 20:45:34 +00:00
jlam
805d6d300a Teach the tools framework about "diff". 2005-06-23 20:39:39 +00:00
jlam
9b5d98e50b "cmp" can be "gcmp" if we use the one from pkgsrc. 2005-06-23 20:35:55 +00:00
jlam
6efbd72779 Clean up some clutter in pkgsrc/mk: move the ${OPSYS}.*.dist mtree
files into mk/platform, where they now live with the ${OPSYS}.mk files.
2005-06-23 18:41:57 +00:00
jlam
03f3fae54f Drop CHECK_WRKREF_IS_TEXT_FILE and modify the semantics of CHECK_WRKREF
so that it's a list of options, or "no".  The valid options are:

	work	check files for ${WRKDIR}
	tools	check files for ${TOOLS_DIR}

where "work" supersedes "tools".  The default CHECK_WRKREF is "no"
unless PKG_DEVELOPER is defined, in which case it's "tools".
2005-06-23 18:12:20 +00:00
wiz
085d1a2044 Back out previous -- committed by mistake. 2005-06-23 12:12:11 +00:00
wiz
e95f3821fb Add missing line continuation backslashes.
Noted by Jukka Salmi.
2005-06-23 12:11:07 +00:00
wiz
050e29dbc5 Sync with today\'s sourceforge mirror list. 2005-06-23 10:28:54 +00:00
jlam
5d1e8de6bc Split out the check-wrkref implementation and related variables from
bsd.pkg.mk into bsd.pkg.check.mk file.
2005-06-23 09:02:46 +00:00
jlam
6ae4606464 Split out the check-files implementation and related variables into
a new bsd.pkg.check.mk file.  This new file will eventually collect
all of the various "check" targets that are run at install-time.
While here, change the implementation of check-files so that it is
not so monolithic.

Change the meaning of the CHECK_FILES variables so that if it's not
"no", then the file checks are run.  Also, allow these checks to be
run if the user explicitly sets CHECK_FILES in /etc/mk.conf, even if
PKG_DEVELOPER is not defined.
2005-06-23 08:31:20 +00:00
jlam
8d486b1ebd Reverse the checks for the value of CHECK_WRKREF so that if it's value
isn't "no", then we run the checks.  This allows for possibly making
CHECK_WRKREF a more multi-valued option or list in the future.
2005-06-23 04:15:47 +00:00
heinz
2c81ca4213 Updated list of Apache mirror sites, according to
http://www.apache.org/mirrors/.
2005-06-22 21:14:42 +00:00
jlam
4149dcc90e We were writing the wrong directory path for the location to the
uninstalled libtool archive in the case where we build it into some
place other than the current directory.  Older versions of libtool
didn't allow you to build a *.la file anywhere other than the current
directory, and libtool-fix-la made use of this assumption in libtool's
behavior.  More recent versions of libtool *do* let you build a *.la
file anywhere you'd like, so instead of blindly assuming it's the
current directory, use the path to the argument of the -o option.
This embeds the proper directory path into the uninstalled libtool
archive.

This has no impact on packages that just build libtool archives into
the current directory.  The packages that *are* impacted are the ones
that:

   (1) pkgsrc converted to use libtool, and,
   (2) build shared libraries that are linked into other things
       as part of the build, and,
   (3) builds the libtool archives in some place other than the
       current directory.
2005-06-22 21:08:37 +00:00
jlam
ab6733f9ca x11.version.mk doesn't necessarily provide a definition for
BUILTIN_X11_VERSION.${X11_TYPE}.  Clarify this in the comment header.
2005-06-20 20:59:45 +00:00
jlam
b81dff43e1 Until pkgsrc gets a databases/db1 package, we must always prefer the
native db1 package because the alternative doesn't yet exist.
2005-06-20 07:20:40 +00:00
jlam
809759a4de Allow for explicit PREFER.<pkg> settings to override PREFER_NATIVE and
PREFER_PKGSRC.
2005-06-20 05:44:17 +00:00
jlam
7357eef2ae The OpenBSD chgrp and chown can be in different places depending on the
OpenBSD release, so check for the right location.
2005-06-17 20:58:58 +00:00
jlam
873398634f Pull out the LS and TR definitions from algae/Makefile and place them
in tools/defaults.mk where they can be more widely used.
2005-06-17 17:05:18 +00:00
jlam
c49a0c735b PERL_PATH is also a common GNU configure script variable for the path to
the perl interpreter.
2005-06-17 16:24:51 +00:00
salo
b26c32d51a Use tabs, not spaces. 2005-06-16 17:40:56 +00:00
grant
3bfb445a35 provide defaults for bzcat and tbl to avoid unnecessary build
dependencies on archivers/bzip2 and textproc/groff when they are
available in the base system.
2005-06-16 04:30:46 +00:00
jlam
b9ac1b57c0 Avoid generating a blank line as the first command of a target as that
isn't understood by some make programs, e.g. /usr/ccs/bin/make.
2005-06-15 17:54:59 +00:00
jlam
ccd8fe4d4c Allow the test for whether the file is a text file to be overridden via
CHECK_WRKREF_IS_TEXT_FILE.
2005-06-14 22:02:00 +00:00
jlam
bdead8cfd3 Require xpkgwedge>=1.14 so that the correct make is always invoked on
Solaris and Linux, regardless of whether we use the same make to build
the software or not.
2005-06-14 20:14:50 +00:00
jlam
b3c6a77a03 We need xpkgwedge whenever we use imake. 2005-06-14 20:04:36 +00:00
jlam
33a4d9397c Require xpkgwedge>=1.13 when used as a build dependency so that the
correct make(1) program is invoked by pkgxmkmf.
2005-06-14 07:25:24 +00:00
jlam
226567f45c Make IMAKE_TOOLS into a publicly-readable variable so that it can be
used by pkgtools/xpkgwedge.
2005-06-14 07:12:23 +00:00
jlam
baa963cd7c We only need to set USE_X11BASE, run install.man, and override the
compiler (CC/CXX) if we're actually using imake to generate Makefiles
for building and installing software.  This fixes errors in various
KDE-3.x packages that use imake for other purposes.
2005-06-14 02:09:38 +00:00
jlam
1ffcef48db In the check-wrkref target, change the algorithm so that text files
are checked for ${WRKDIR}, but all files are checked for ${TOOLS_DIR}
(assuming that ${TOOLS_DIR} is in ${WRKDIR}).  Also, let CHECK_WRKREF_PKG
set the name of the package to check.
2005-06-13 02:25:50 +00:00
jlam
55c85320ca Separate the message from the do-distribution-patch and do-pkgsrc-patch
targets so that if they're overridden in the package Makefile, the
message is still printed.
2005-06-12 03:59:42 +00:00
jlam
7969727e46 Rename "apply-distribution-patches" and "apply-pkgsrc-patches" targets
to "do-distribution-patch" and "do-pkgsrc-patch", respectively, and
allow them to be overridden by the package Makefile.  This allows for
more fine-grained overriding of the patch process.
2005-06-12 03:38:04 +00:00
dillo
91ba937bb4 Allow this file to be included even if no options are supported
(as may be the case if all options are platform specific).  In that
case set PKG_OPTIONS to empty and skip the rest of the file.

Okayed by jlam.
2005-06-11 16:12:13 +00:00
jlam
9a2b543ac3 Remove unnecessary .undef lines after .for loops as the loop variables
are automatically undefined after the loop exits.
2005-06-11 05:22:03 +00:00
jlam
df53a167da Add a default fall-through for the shell case statement (portability
issue).
2005-06-11 04:26:17 +00:00
jlam
d8e783d924 check-wrkref is a make target that greps through the installed files
for a package and looks for references to the build directory.  If
any such references are found and PKG_DEVELOPER is defined, then exit
with an error.  This target is automatically run after a package is
installed if CHECK_WRKREF is "yes".  The default value for CHECK_WRKREF
is "no".

You can specify certain files to be skipped during the check by setting
CHECK_WRKREF_SKIP to a list of shell globs.  Installed files that
match these globs are skipped when running the check-wrkref target.

The original implementation was from Dan McMahill sent to me in private
email.  I've added a few more bells and whistles for this commit.  This
target will be helpful for catching any unwrapped files or mis-embedded
tool paths.
2005-06-10 23:38:00 +00:00
jlam
d9ac2e54e4 Force an autoconf "cache" override for tools that are likely to be
shell builtins, e.g. echo, false, test, true, since those tools don't
have a full path.
2005-06-10 20:53:54 +00:00
sketch
e2eb7e8270 mk.conf needs to be backed up as part of the bootstrap files. 2005-06-10 13:09:07 +00:00
rillig
54682e7ad9 Fixed a typo. 2005-06-09 19:49:48 +00:00
jlam
c285ef536b Fix harmless typo. 2005-06-09 18:44:26 +00:00
jlam
fe40930572 Forgot the strip the comma when removing "-Wl," from the the next
argument during argument merging.
2005-06-09 17:06:21 +00:00
jlam
29ef35e288 General improvements to the changes-entry target:
* Improve the documentation.
* Avoid running commands during Makefile processing by using the :sh
  modifier instead of defining variables using !=
* Add a new variable PKGSRC_CHANGES that holds the path to the CHANGES
  file to be modified.
* Use ${ID} and ${DATE}, which are provided by the tools framework and
  avoid PATH issues.
2005-06-09 16:26:23 +00:00
jlam
94f3443509 Don't reinvent PKGPATH, which already contains just the "category/package"
portion of the path.
2005-06-09 16:09:58 +00:00
jlam
1ad3a3bdd6 Add a documentation block above the changes-entry target. 2005-06-09 16:08:27 +00:00
wiz
16b3e5b4cc Delay running of id until it is needed. Fixes PR 30477 by Neil Hoggarth. 2005-06-09 10:09:58 +00:00
jlam
4f7957a874 Rewrite the USE_BUILTIN.pthread section a bit so that it more closely
matches the template in bsd.builtin.mk.  This causes USE_BUILTIN.pthread
to be cached, which is useful at least for debugging purposes.
2005-06-09 06:03:40 +00:00
jlam
b753b0d414 Clarify why dlopen.builtin.mk ignores PREFER_* values. 2005-06-09 05:59:51 +00:00
wiz
c209ba29cb Add changes-entry target, which adds an entry for the current package
into pkgsrc/doc/CHANGES.
The type of the entry depends on what CTYPE is set to, which defaults
to "Updated".  Other possible values are "Added", "Renamed", "Moved",
and "Removed". An example usage would be:
	cd /usr/pkgsrc/category/package
	make changes-entry CTYPE=Added
after you added a new package, and similar for the others.
If NETBSD_LOGIN_NAME is not set in /etc/mk.conf, it defaults to
your local login name.
2005-06-08 22:44:08 +00:00
wiz
774ace527b Fix variable name in comment: it is PKG_OPTIONS_VAR, with an S. 2005-06-08 22:36:52 +00:00
jlam
c6f8fbdaa0 Print the full path to broken or modified patches that aren't applied.
This also fixes the problem where the names of broken local patches
(in ${LOCALPATCHES}) weren't printed correctly in the error message.
2005-06-08 17:52:50 +00:00
dillo
db9aee67d2 fix variable name in example comment 2005-06-08 16:19:08 +00:00
markd
c2c2d866b6 Add description for emacs-xaw3d. 2005-06-08 14:43:43 +00:00
markd
eda80c44bb Remove obsolete EMACS_USE_XAW3D. 2005-06-08 14:42:47 +00:00
jlam
2499370d92 The USE_BUILTIN.dl code got too complex in the previous commit.
Simplify it so that USE_BUILTIN.dl is simply IS_BUILTIN.dl except for
Darwin's special case.  This makes PREFER_PKGSRC=yes work again on
NetBSD instead of causing USE_BUILTIN.dl=no to be set, which is
impossible.
2005-06-08 08:13:05 +00:00
jlam
532553f653 Properly turn:
-Wl,-rpath -Wl,/dir1:/dir2:/dir3
into:
	-Wl,-rpath,/dir1 -Wl,-rpath,/dir2 -Wl,-rpath,/dir3

Do the same for -Wl,-R and -Wl,-rpath-link.  This makes the wrapper
scripts pass the test in regress/buildlink-transform/rpath-merge.mk
and fixes PR pkg/27702.
2005-06-08 05:54:17 +00:00
jlam
ce74a9adee Update comment to reflect implementation. 2005-06-08 05:02:50 +00:00
jlam
53c57e3bf6 Remove part of comment that is no longer true. 2005-06-08 04:54:27 +00:00
wiz
96a491edb7 Add description for mjpegtools-cmov, from Geert Hendrickx in PR 30366. 2005-06-07 21:23:35 +00:00
jlam
816e616b23 Add another common name for the GNU configure variable name used for the
"env" tool.
2005-06-07 16:57:37 +00:00
jlam
034f0336eb Add a few more GNU configure variable names that are commonly used.
Also, some configure scripts use "ENV" to represent the path to the
"env" tool, which is probably bad since ENV has a special meaning to
/bin/sh.  To workaround this, set ac_cv_path_ENV.
2005-06-07 16:33:12 +00:00
dillo
a55c83b93b make legacy variables external:
PKG_LEGACY_OPTIONS
	PKG_OPTIONS_DEPRECATED_WARNINGS
2005-06-06 13:54:51 +00:00
tv
c887a4516b Force libtool-base-1.5.18nb3 on DragonFly. 2005-06-05 18:05:54 +00:00
rillig
16d303a282 Fixed a typo in a comment. 2005-06-05 04:35:45 +00:00
markd
3fdb9ff461 IMAKE_FILEMAN_SUFFIX is 4 on Solaris and (as I read it) OSF1 and UnixWare. 2005-06-04 23:33:50 +00:00
rillig
e3aa46eedc Added a leading underscore to the names of the *_COOKIE variables, as they
are not part of the public interface.
2005-06-04 20:56:47 +00:00
wiz
4d151e342c Describe new xterm options, from Jeroen Ruigrok van der Werven 2005-06-04 17:43:18 +00:00
dillo
dff8372404 Improve the way option groups are displayed in show-options.
While here, rename _cls_ to _grp_, as they are called groups.
2005-06-04 16:30:19 +00:00
seb
5feada633d Fix variable names in usage example. 2005-06-04 10:11:24 +00:00
jlam
c55f2fb319 Teach the tools framework about mktemp. Replace explicit tests for
mktemp with USE_TOOLS+=mktemp in the samba packages.
2005-06-03 22:54:44 +00:00
jlam
dd2b1cf653 Teach the tools framework about bdftopcf and remove
x11-clients.buildlink3.mk.  Packages that need bdftopcf should say:

	USE_TOOLS+=	bdftopcf
2005-06-03 21:11:06 +00:00
jlam
a741f4ed26 Back out revision 1.1684. MAKEFLAGS was being propagated incorrectly
through to dependencies, which caused dependencies to have improper
lists of tools required.

XXX This whole mess with MAKEFLAGS and which ones are passed along when
XXX running the install-depends target needs to be fixed for real.
2005-06-03 20:22:59 +00:00
jlam
08c60ab83d Coalesce the common makefile code in the builtin.mk file that inspect
the X11 distribution using imake into mk/buildlink3/imake-check.mk.
imake-check.mk calls out to a helper shell script mk/buildlink3/imake-check
that generates the required Imakefiles and runs imake.  Remove the
now extraneous builtin-imake.mk files as the builtin.mk files can now
contain the name of the imake symbol to check.
2005-06-03 19:12:49 +00:00
dillo
5fa9d959f6 don't requrie PKG_SUPPORTED_OPTIONS to be set when groups are in use 2005-06-03 14:25:47 +00:00
wiz
97ad9a77e1 Remove obsolete USE_GIF variable. 2005-06-03 13:54:49 +00:00
uebayasi
2132936af4 Describe options used in inputmethod/uim and www/w3m. 2005-06-03 13:50:38 +00:00
wiz
a7d52b044d Describe idea option. 2005-06-03 13:27:47 +00:00
wiz
27c865846e Remove obsolete USE_IDEA variable. 2005-06-03 13:26:40 +00:00
wiz
1c3a46e98b Remove USE_ESOUND, all users have been converted. 2005-06-03 13:20:50 +00:00
wiz
625b87ac7c "socks" option has been removed, remove it here too. 2005-06-03 10:29:23 +00:00
wiz
b94b207c3b Remove gtk2 options description now that option has been removed :) 2005-06-03 10:24:47 +00:00
wiz
cff21637ae Add gtk2 option description. 2005-06-03 08:57:36 +00:00
wiz
3e573b0295 Fix USE_SOCKS=5 case. 2005-06-02 22:20:37 +00:00
dillo
f91dd9c279 add group options to PKG_SUPPORTED_OPTIONS before includeing
mk/defaults/obsolete.mk so socks and kerberos work when listed in
groups
2005-06-02 21:55:05 +00:00
wiz
03d0222157 Document socks4 and socks5, and mention that socks should not be used. 2005-06-02 21:50:21 +00:00
wiz
935ea1a5e9 Fix a typo, and remove package names from
descriptions for package-specific options.
2005-06-02 21:25:56 +00:00
jlam
493a44f926 Back out previous change, and correct the surrounding check -- we need
to see if _USE_TOOLS contains "perl", not USE_TOOLS.
2005-06-02 21:03:32 +00:00
wiz
0303df72aa Whitespace nit. 2005-06-02 20:43:55 +00:00
dillo
7f874cf6f0 add support for groups of mutually exclusive options via
PKG_OPTIONS_REQUIRED_GROUPS and PKG_OPTIONS_OPTIONAL_GROUPS.
2005-06-02 20:38:09 +00:00
wiz
efadf7d13f Improve quoting. 2005-06-02 19:33:56 +00:00
wiz
b5070a4fd2 Remove obsolete PINFO* variable. 2005-06-02 18:30:42 +00:00
wiz
041e760873 Document pinfo options. 2005-06-02 18:30:25 +00:00
wiz
359d40ead8 Remove obsolete W3M* variables. 2005-06-02 18:24:56 +00:00
wiz
e8b75f2a7d Document w3m options. 2005-06-02 18:24:29 +00:00
wiz
5c086d4305 Remove obsolete GOLEM_WITH_SOUND variable. 2005-06-02 18:10:48 +00:00
wiz
bcc7ade370 Add an article. 2005-06-02 18:10:13 +00:00
wiz
e36bf04565 Remove obsoleted MPLAYER_* variables. 2005-06-02 16:10:53 +00:00
wiz
7f0aa6e905 Remove obsolete blender options. 2005-06-02 14:16:02 +00:00
wiz
5f6c56480d Describe blender options, and sort. 2005-06-02 14:15:19 +00:00
abs
4c051b2ece Allow USE_JAVA2 to (optionally) be set to 1.4 or 1.5, and use in tomcat55 2005-06-02 10:07:48 +00:00
tron
286d96e77f Test whether "_TOOLS_USE_PKGSRC.perl" is defined before checking its value.
This makes "make fetch-list" in "pkgsrc/meta-pkgs/kde3" work again.
2005-06-02 09:31:25 +00:00
dillo
496c3feff5 remove obsolete variable BATTLEBALL_USE_MESA 2005-06-01 21:30:18 +00:00
wiz
29e4dbe4d2 Remove two obsolete QPOPPER variables. 2005-06-01 21:14:46 +00:00
wiz
74bb463639 Document some more options. 2005-06-01 21:13:24 +00:00
wiz
7454574067 Remove USE_MMX section; all USE_MMX users have been converted
to the mmx option.
2005-06-01 20:19:21 +00:00
jlam
fcb7da800b Remove mk/autoconf.mk and mk/automake.mk and replace their usage with
USE_TOOLS and any of "autoconf", "autoconf213", "automake" or
"automake14".  Also, we don't need to call the auto* tools via
${ACLOCAL}, ${AUTOCONF}, etc., since the tools framework takes care
to symlink the correct tool to the correct name, so we can just use
aclocal, autoconf, etc.
2005-06-01 20:07:59 +00:00
wiz
339d39213e Document mmx. 2005-06-01 19:43:29 +00:00
wiz
cdf354a376 Remove obsolete ATERM variables. 2005-06-01 19:40:22 +00:00
wiz
d4eccad746 Document aterm options. 2005-06-01 19:39:58 +00:00
wiz
8aaaeb0bb0 Describe lprng-* options. 2005-06-01 18:54:20 +00:00
wiz
5b1d5367f3 Remove obsolete LPRNG* options. 2005-06-01 18:52:32 +00:00
jmmv
cbe4100202 Convert the mplayer* and mencoder* packages to the options framework.
This means that the MPLAYER_ENABLE_RUNTIME_CPU_DETECTION,
MPLAYER_DISABLE_DRIVERS and MPLAYER_USE_MEDIALIB become deprecated
(although still recognized).

Visible changes in the resulting binary packages should be minimum by
default (everything that was enabled before still is, and the same
dependencies are kept).  A notable addition, though, is the support for
user-defined menus, closing PR pkg/29784.

Also note that (almost) all dependencies have now a corresponding option
to disable them in case you want to get a minimalist mplayer package.
'make show-options' is your friend ;)

With thanks to wiz@ and dillo@ for their comments and help.
2005-06-01 18:45:45 +00:00
wiz
596cf2a5ae Remove ipv6 -- use inet6 instead. 2005-06-01 18:23:57 +00:00
wiz
96a7a5307e Recognize inet6 in PKG_SUPPORTED_OPTIONS as an indicator
that a package support IPv6 (for the README-IPv6.html generation).
2005-06-01 18:16:20 +00:00
jlam
05db0b4f12 Turn IMAKE_MAKE into a public variable that may be set via /etc/mk.conf. 2005-06-01 18:14:23 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
jlam
d811860c7b *.makevars.mk doesn't exist until after ${WRKDIR} is created, which
doesn't happen until after the package is extracted.  Prior to
extraction, cache the variables named in MAKEVARS using MAKEFLAGS
instead.  This avoids invoking each expensive computation up to four
times before it gets cached.  For packages that include lots of
buildlink3.mk files, this saves a lot of CPU time.
2005-06-01 17:27:22 +00:00
jlam
a72cd1c453 Include bsd.makevars.mk in bsd.prefs.mk instead of bsd.pkg.mk. This
allows the saved make variables to be re-set whenever bsd.prefs.mk is
included, and is a shortcut for the common case where a Makefile
includes both.
2005-06-01 17:05:19 +00:00
wiz
fdfab0ae03 Remove obsolete DELIVER_SUID. 2005-06-01 14:45:35 +00:00
wiz
eaf372f7d1 Document deliver-suid. 2005-06-01 14:45:25 +00:00
markd
81c0cfd0d0 OpenWindows imake installs manual pages to different locations than
where the XFree86/xorg ones do.
2005-06-01 14:27:12 +00:00
markd
8ddab030e4 On NetBSD, OpenBSD and BSDOS imake always installs man/catN pages with
a "0" suffix.
2005-06-01 14:23:07 +00:00
dillo
b05a793493 fix bug in legacy vars handling for option names containing `-',
found by jmmv.
2005-06-01 13:40:14 +00:00
jlam
4631a73a95 Separate out the logic to include the correct <phase>.makevars.mk file
into a new file bsd.makevars.mk that can be included by other Makefiles.
2005-06-01 03:04:16 +00:00
wiz
baee768fc0 Remove obsolete GIMP_HELPBROWSER option. 2005-05-31 22:26:45 +00:00
wiz
85b5f6a9e1 Describe gimp1-helpbrowser 2005-05-31 22:26:28 +00:00
wiz
ec9d5ddd47 Document irssi-perl. 2005-05-31 21:58:45 +00:00
jlam
54de37e60e Convert USE_GNU_TOOLS into USE_TOOLS as the former is no longer supported
in pkgsrc.
2005-05-31 21:53:26 +00:00
wiz
76c821aa28 Suggest pam instead of PAM as USE_PAM replacement. 2005-05-31 21:50:56 +00:00
wiz
dcdac2f761 Remove some obsolete variables. 2005-05-31 20:01:00 +00:00
jmmv
33a592167e PKG_FAIL_REASON must be (double-)quoted to achieve the correct output. 2005-05-31 18:25:37 +00:00
wiz
9091e5cb6a Remove obsolete BITCHX_WITH_GTK variable. 2005-05-31 16:37:30 +00:00
wiz
ea4137d54e Describe inet6 option, and standardize oss description a bit. 2005-05-31 16:28:29 +00:00
wiz
cf1cb4f409 Add oss and its description. 2005-05-31 16:13:04 +00:00
wiz
e313f31d70 Remove legacy lame option. 2005-05-31 16:05:09 +00:00
wiz
985d98eb1c Describe gtk option. End gqmpeg options with a dot,
like the others.
2005-05-31 16:04:20 +00:00
wiz
8dfa9a3aa9 Show a deprecated warning even if the deprecated variable is set to
something other than [yY][eE][sS].
If a deprecated warning is defined, interpret it as YES (because some
variables in defaults/mk.conf have defined/not defined as yes/no).

Reviewed by dillo.
2005-05-31 16:03:41 +00:00
drochner
c443a4ee63 add a variable "GECKO_PROVIDER" which tells whether firefox or mozilla
is to be preferred when a pkg wants to embed the browser
defaults to "firefox" because this is smaller and better maintained
per jmmv's recommendation
2005-05-31 15:42:04 +00:00
wiz
4bc0019fe0 Add option descriptions for gqmpeg-* 2005-05-31 15:11:48 +00:00
wiz
bd14bb74a1 Remove obsolete GQMPEG_NO_* variables. 2005-05-31 15:11:40 +00:00
rillig
66c9dd0de7 The available options are shown before the dependencies are installed.
Many package options influence the dependencies, so this order is more
likely to be useful.
2005-05-31 15:05:13 +00:00
salo
38a9c4ca3f DragonFly patch(1) can do backups, using -z flag:
-z, --suffix
      Causes the next argument to be interpreted as the backup extension,
      to be used in place of ".orig".

From Joerg Sonnenberger via private mail.
2005-05-31 12:31:21 +00:00
dillo
8cda012601 Rename describe-options to show-options, replacing the old show-options
target.
2005-05-31 12:10:07 +00:00
dillo
d6bfbe8582 Rename option PAM to pam (so all options are lower case). Backwards
compatibility provided via PKG_OPTIONS_LEGACY_OPTS.
2005-05-31 11:24:32 +00:00
dillo
42816a484c To ease cleanup of the options namespace, add code to support legacy
option names:

PKG_OPTIONS_LEGACY_OPTS+=	old:new

If PKG_DEFAULT_OPTIONS or PKG_OPTIONS.foo contains option old (or
-old) it is rewritten to new (or -new) and a warning is issued by
the supported-options-message target.
2005-05-31 11:05:31 +00:00
shannonjr
671529f3f6 Updated _GCC_DIST_VERSION from 3.4.3 to 3.4.4 to reflect recent update
to lang/gcc34.
2005-05-31 10:51:36 +00:00
dillo
f81ae835ad Packages have no business modifying PKG_DEFAULT_OPTIONS -- it's a
user settable variable.  Set PKG_SUGGESTED_OPTIONS instead.  Also,
make use of PKG_OPTIONS_LEGACY_VARS.

Reviewed by wiz.
2005-05-31 10:01:36 +00:00
jmmv
d5789c138e Simplify unprivileged builds by adding a new variable, UNPRIVILEGED, that,
when set to YES, changes multiple defaults to let this work properly.
2005-05-29 17:12:15 +00:00
dillo
7940fef51d set PKG_FAIL_REASON if any unsupported option is listed in PKG_OPTIONS.xxx 2005-05-28 12:14:34 +00:00
jlam
21f60837bd Don't use buildlink framework just to do a conditional dependency for a
binary tool.  We can now use the tools framework for this.  Remove the
various nroff/groff buildlink3.mk/builtin.mk files as editors/jove was
their only user in pkgsrc.
2005-05-26 21:49:39 +00:00
jlam
72f6164581 Teach the tools framework about nroff. 2005-05-26 21:46:13 +00:00
rillig
c7b8094edd Fixed the output of show-tools. 2005-05-26 11:15:30 +00:00
dillo
a60e646ed0 fix typo in documentation
add support for negative options in PKG_OPTIONS_LEGACY_VARS (NO_FOO:-foo)
undef temporary variables after for loop
2005-05-25 11:18:35 +00:00
dmcmahill
93521480a1 Add more error checking. PACKAGES must exist. No extra command line args taken. 2005-05-24 21:48:22 +00:00
dmcmahill
2d0657da0e improve the message when an invalid cache file version is found 2005-05-24 20:56:47 +00:00
dmcmahill
8512f22e60 Improve error checking. Specifically, after a new cache file is
created in a temp directory, issue a warning if we fail to install
it in the package directory.  If the error happens on the top
level (master) cache file, then error out.  For a subdirectory,
issue a warning and drop that directory from the master cache.
2005-05-24 20:49:41 +00:00
xtraeme
b433ad3e49 Add BUILTIN_PACKAGES, this will contain all builtin dependencies used
in packages, e.g on my NetBSD system:

$ cd pkgsrc/graphics/gimp && make show-var VARNAME=BUILTIN_PACKAGES
bzip2 heimdal openssl db1 gettext iconv zlib pthread
$

Ok'ed by jlam.
2005-05-24 15:41:05 +00:00
rillig
f5fcc97bca Added a variable PGSQL_VERSION that identifies the PostgreSQL version used. 2005-05-24 10:01:25 +00:00
jlam
80f5031e99 Add a new file find-libs.mk that can be included by builtin.mk files
to detect the presence of libraries in the base system.

The input variable is BUILDLINK_FIND_LIBS, which is a list of library
names, e.g. ncurses, iconv, etc., that will be sought in the base
system.  BUILDLINK_LIB_FOUND.<lib> is set to "yes" or "no" depending
on the result of the search.

An example use is:

BUILDLINK_FIND_LIBS:= intl iconv
.include "../../mk/buildlink3/find-libs.mk"
# ${BUILDLINK_LIB_FOUND.intl} and ${BUILDLINK_LIB_FOUND.iconv} are now
# either "yes" or "no".
2005-05-24 03:44:04 +00:00
jlam
780794d4c1 Work around brokenness in GNU configure scripts generated by autoconf-2.59a
-- the checks for grep and egrep are broken because when passed GREP
and EGREP in the environment, the script causes GREP and EGREP to be
set to empty strings, which causes GNU configure scripts to hang or
break.  Pass the real paths to grep and egrep through using ac_cv_path_GREP
and ac_cv_path_EGREP as well to avoid the brokenness.  This fixes the
build of textproc/gsed.
2005-05-23 17:07:22 +00:00
rillig
1809039339 Fixed the bug that I introduced with the last commit. I confused -n and -z. 2005-05-23 10:24:35 +00:00
rillig
c549cfb7a8 Fixed quoting in show-comment. 2005-05-23 07:57:02 +00:00
jlam
19ef841612 Teach the tools framework about "flex" so that packages can specify
that they require flex instead of any old lex.
2005-05-23 01:20:50 +00:00
rillig
04222ada9c Replaced three instances of $s with ${s} to make it consistent with the
three instances that were already ${s}.
2005-05-22 21:52:49 +00:00
rillig
17dffae007 USE_X11=yes instead of USE_X11=#defined. 2005-05-22 21:44:07 +00:00
jlam
163b6e6c2b Remove USE_TBL from pkgsrc and replace with USE_TOOLS+=tbl. 2005-05-22 21:04:41 +00:00
jlam
ea6e7a716b Don't add "INSTALL" to CONFIGURE_ENV as bsd.pkg.mk adds special values
for INSTALL by itself during the configure stage.  This fixes problems
with GNU configure scripts using the wrong value of INSTALL.
2005-05-22 20:58:27 +00:00
jlam
6a44e12a0b Finish removing instances of _USE_NEW_TOOLS from pkgsrc. 2005-05-22 20:15:40 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
jlam
9f94b112f0 Remove the old tools framework and references to _USE_NEW_TOOLS. 2005-05-22 19:11:12 +00:00
rillig
aeb4d04119 Fixed some quoting issues. 2005-05-22 15:31:03 +00:00
minskim
9e8f5af260 Do not enable _IMAKE_TOOLS unless imake is used. Otherwise, packages
would always be built with gmake on Linux.
2005-05-22 05:21:15 +00:00
jlam
63e891437c Some packages want to embed the path to the perl tool in scripts but
don't want to depend on perl, e.g. devel/cvs.  Provide values for
TOOLS_PERL5 and PERL5 even if the package doesn't ask for the perl
tool.
2005-05-22 02:30:53 +00:00
jlam
ce40410af8 The path to perl is now passed via CONFIGURE_ENV as of revision 1.9 of
mk/tools/replace.mk.
2005-05-22 02:05:24 +00:00
jlam
b3ff0bed40 Allow a tool to be passed to GNU configure scripts under more than
one name.
2005-05-22 01:56:27 +00:00
jlam
edef76fb93 Add a few more tools for GNU configure scripts: grep, env, xmkmf. 2005-05-22 01:53:55 +00:00
dmcmahill
78adb68b24 pass down FIND to genreadme.awk and binpkg-cache 2005-05-22 01:37:31 +00:00
dmcmahill
6806d580c9 use find ${DIR}/ -name \*${SUFX} instead of ls ${DIR}/*${SUFX} when
generating a list of possibles packages.  Avoids proglems with too long
of a command line for ls.  While here change find to ${FIND}.
2005-05-22 01:36:49 +00:00
jlam
5792714269 For packages that use GNU configure scripts, pass the real command
paths for the tools that the package uses through the shell environment.
We do this since these paths may be hardcoded into package scripts,
and if they're not pre-specified, then they'll be searched for in the
PATH, which would find the ones in ${TOOLS_DIR}.

The variable names that GNU configure scripts expect are named in
_TOOLS_VARNAME_GNU.* for the various tools.
2005-05-21 23:09:36 +00:00
jlam
2fdd3b1275 Make a bad patch cause a fatal error again. This fixes a bug introduced
in revision 1.5 and fixes PR pkg/30297.
2005-05-21 21:40:45 +00:00
jlam
3b3b871622 Grammar 101 -- sentences should end in a period. 2005-05-21 04:53:17 +00:00
jlam
6cb4436e71 Add TNF copyright to the new tools framework makefiles. 2005-05-21 04:46:52 +00:00
jlam
1cfa811f1b In computing _REPLACE_LOCALEDIR_PATTERNS_FIND_cmd, make sure the :sh
operator does not result in an empty string as make(1) doesn't like
them.  Also, rewrite the variable substitution for the find(1) command
to be more readable, and get rid of the extra grep(1) in favor of
using :N.
2005-05-21 01:55:53 +00:00
rillig
50085b3e47 Made sure the :sh operator does not result in an empty string. Rewrote the
variable substitution for the find(1) command to be more readable.
2005-05-20 22:40:36 +00:00