Commit graph

4515 commits

Author SHA1 Message Date
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