Commit graph

139 commits

Author SHA1 Message Date
jlam
6d92080aa2 Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links)
use the new format correctly.
2004-03-29 05:43:28 +00:00
jlam
326169077a USE_BUILDLINK3 must be set to "yes" or "no", not defined/undefined. 2004-03-23 04:40:59 +00:00
jlam
1a8b2d9d11 Typo: && should be || to get the correct test semantics. 2004-03-13 18:39:16 +00:00
jlam
d0b4c54eb6 Split out the code that deals with checking whether the software is
built-in or not into a separate builtin.mk file.  The code to deal
checking for built-in software is much simpler to deal with in pkgsrc.

The buildlink3.mk file for a package will be of the usual format
regardless of the package, which makes it simpler for packagers to
update a package.

The builtin.mk file for a package must define a single yes/no variable
USE_BUILTIN.<pkg> that is used by bsd.buildlink3.mk to decide whether
to use the built-in software or to use the pkgsrc software.
2004-03-10 17:57:14 +00:00
jlam
f1a928f873 If USE_GNU_READLINE is set, then actually use the builtin readline if it's
GNU and satisfies the dependency requirements.
2004-02-20 06:51:16 +00:00
jlam
bf6e059da4 Reorder some lines so that BUILDLINK_USE_BUILTIN.<pkg> set in the
environment overrides all other settings.
2004-02-18 16:35:27 +00:00
jlam
6b1c1ab605 Deal with built-in readline actually being GNU readline. 2004-02-17 15:57:55 +00:00
seb
0444ffc297 Remove info files entries from PLIST. 2004-02-16 16:55:43 +00:00
jlam
d2b62c66fb Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC.  Preferences are determined by the most specific
instance of the package in either PREFER_PKGSRC or PREFER_NATIVE.  If
a package is specified in neither or in both variables, then PREFER_PKGSRC
has precedence over PREFER_NATIVE.
2004-02-12 02:35:06 +00:00
jlam
1edfa505ed Reorganize code so that any dependencies are checked as part of deciding
whether the software is built-in or not.  This facilitates implementing
the forthcoming PKGSRC_NATIVE variable.
2004-02-12 01:59:37 +00:00
jlam
7c68eb548f Move the INCOMPAT_FOO checks to a more natural location within the
block that decides whether package FOO is built-in or not.  If the
platform is listed in IMCOMPAT_FOO, then treat FOO as being not
built-in.
2004-02-11 11:30:49 +00:00
jlam
7699290f10 If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
2004-02-06 19:04:24 +00:00
jlam
317cc72791 Make PREFER_PKGSRC just yes/no or a list of packages. This makes it
simpler to understand.
2004-02-05 07:17:14 +00:00
jlam
e7133cac25 Rename BUILDLINK_PREFER_PKGSRC to PREFER_PKGSRC so that we can use its
value outside of buildlink-related files.
2004-02-05 07:06:15 +00:00
jlam
07a9d8dfb2 Support a new global variable:
BUILDLINK_PREFER_PKGSRC
	This variable determines whether or not to prefer the pkgsrc
	versions of software that is also present in the base system.

	This variable is multi-state:
		defined, or "yes"	always prefer the pkgsrc versions
		not defined, or "no"	only use the pkgsrc versions if
					needed by dependency requirements

	This can also take a list of packages for which to prefer the
	pkgsrc-installed software.  The package names may be found by
	consulting the value added to BUILDLINK_PACKAGES in the
	buildlink[23].mk files for that package.
2004-02-05 06:58:02 +00:00
jlam
01a5abff01 Support BUILDLINK_DEPENDS.<pkg> being a list of values. 2004-01-24 03:12:31 +00:00
jlam
1e60f2af54 Be a bit more accurate: we want to match a ".", not any character. 2004-01-10 08:40:07 +00:00
jlam
2c03f435c8 bl3ify 2004-01-05 11:17:10 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
a0cec7cb59 Check variable values for "no" as well as "NO". Also sprinkle some
double quotes.
2004-01-05 09:44:44 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
dent
c42a747a7f update HOMEPAGE 2003-09-19 05:18:35 +00:00
seb
8d15907ec2 USE_NEW_TEXINFO is unnecessary now. 2003-08-09 10:38:23 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
uebayasi
3fea780b5e Update to 4.3pl5. Incorporate 5 official patches.
[readline43-001]
Pressing certain key sequences causes an infinite loop in _rl_dispatch_subseq
with the `key' argument set to 256.  This eventually causes bash to exceed
the stack size limit and crash with a segmentation violation.

[readline43-002]
Repeating an edit in vi-mode with `.' does not work.

[readline43-003]
When in a locale with multibyte characters, the readline display updater
will occasionally cause a segmentation fault when attempting to compute
the length of the first multibyte character on the line.

[readline43-004]
When running in a locale with multibyte characters, the readline display
updater will use carriage returns when drawing the line, overwriting any
partial output already on the screen and not terminated by a newline.

[readline43-005]
Using the vi editing mode's case-changing commands in a locale with
multibyte characters will cause garbage characters to be inserted into
the editing buffer.

(Any maintainership taker?)
2003-06-30 10:26:45 +00:00
seb
9f8e82dd62 Convert to USE_NEW_TEXINFO. 2003-06-25 11:32:38 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
jmmv
e85877b913 Update readline to 4.3.
Changes in this version are mostly bugfixes; some new functionality
has been added as well. For an exhaustive list of changes, please
look at the CHANGES file included in the distribution.
2002-12-07 17:39:47 +00:00
wiz
7ce36b610d Unused. 2002-10-25 19:00:57 +00:00
jlam
56adc9ad03 Be more precise about which files need to be moved into the readline
subdirectory in ${BUILDLINK_DIR}/include.
2002-10-09 21:46:56 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
jlam
f21ae53323 Add a catch-all for SunOS to force using the pkgsrc versions of the
software instead of any base system version.  This match is probably too
broad, but better to err on the safe side.  We can narrow down the match
when we have better information.

Closes pkg/17775 by Julien T. Letessier <julien.letessier at sun dot com>.
2002-08-07 19:29:29 +00:00
jlam
d88554c247 Create new variables INCOMPAT_ZLIB, INCOMPAT_BZIP2, INCOMPAT_READLINE,
INCOMPAT_GETTEXT that are analogous to INCOMPAT_ICONV and contain lists of
shell wildcards intended to match against ${MACHINE_PLATFORM}.  These
variables are used to note those platforms that have the named packages in
the base system but are incompatible in some way from the pkgsrc version
of the same package.  Change INCOMPAT_CURSES to have the same sematics as
above.  These variables allow much greater precision in specifying which
platforms have broken (for the purposes of pkgsrc) versions of software in
the base system that must be ignored.

The buildlink.mk files for these packages define private _INCOMPAT_*
versions of these variables, and they contain the default lists of
platforms that are known to have incompatible software bits.

This addresses pkg/17775 submitted by Julien T. Letessier
<julien.letessier at sun dot com>.
2002-08-07 06:10:32 +00:00
abs
51a6f96764 Re-Introduce Linux packages to the wonders of readline 2002-04-02 14:28:28 +00:00
seb
66111c6d15 Introduce new framework for handling info files generation and installation.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
2002-02-18 15:14:00 +00:00
zuntum
c72c1cf5f9 Move pkg/ files into package's toplevel directory 2001-11-01 00:57:41 +00:00
jlam
1118eb7b66 Update readline to 4.2. Major changes from version 4.1:
*   bug fixes
*   improve linking with C++ code
+   a new file, rltypedefs.h, contains the new typedefs for function pointers
+   several minor additions to the API to customize look of readline
+   more complete documentation for public functions and variables
2001-08-06 14:20:46 +00:00
jlam
8383ce3c1a Set REPLACE_LIBNAMES_SED in cases where BUILDLINK_TRANSFORM will be invoked
to replace buildlinked library names with the true library names.
2001-07-27 14:31:44 +00:00
jlam
d2eb68d2a6 Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the default
installation directory in case the package isn't installed.
2001-07-27 13:33:18 +00:00
jlam
7b1d3cb465 Mechanical changes to buildlink.mk files to use EVAL_PREFIX to set
BUILDLINK_PREFIX.<pkgname>.  This allows buildlink to find X11BASE packages
regardless of whether they were installed before or after xpkgwedge was
installed.  Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-20 01:54:31 +00:00
jlam
cb76bd5efc Move inclusion of bsd.buildlink.mk to start of file. 2001-07-01 22:59:08 +00:00
jlam
34d11d8a0f Generalize how the dependency pattern may be specified. Instead of just
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify
the dependency pattern as FOO_DEPENDS=foo>=1.0.  This allows things like
JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib.
Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
2001-06-23 19:26:48 +00:00
jlam
04b1ef36a6 Remove libtool archive target and related variables -- buildlink.mk doesn't
like libtool archives.
2001-06-20 23:24:39 +00:00
jlam
401120d634 Mark as USE_BUIDLINK_ONLY and remove -I$(includedir) from the header
search path.
2001-06-19 08:48:57 +00:00
jlam
2666e93809 Use bsd.buildlink.mk more fully. 2001-06-11 03:21:24 +00:00
jlam
072be2ad69 Use bsd.buildlink.mk instead of duplicating code all over the place. 2001-06-11 01:59:33 +00:00
jlam
5d02f04b3a Use cookies (.*_done) to determine whether headers and libs have been
linked from a particular package, and add a pre-configure target to
the buildlink.mk file to more painlessly use buildlink.mk files.  A
${BUILDLINK_TARGETS} variable still exists in case a package _must_
define NO_CONFIGURE.
2001-06-10 00:09:29 +00:00
jlam
03b7fe024b Modify target that generates the libtool archive for libedit to not use
libtool internals.  Fix from Nick Hudson <skrll@netbsd.org>.  Conditionalize
visibility of target on USE_LIBTOOL, since it's useless otherwise.
2001-06-05 22:15:01 +00:00
jlam
7e12d8528b Add a target to generate a libtool archive file for libedit. 2001-05-29 18:00:05 +00:00
jlam
da4256c3ee No functional change...just simplify the code. 2001-05-26 07:33:57 +00:00
jlam
20edd3082f Protect against multiple inclusion. 2001-05-26 05:44:09 +00:00
jlam
e1fc187824 No functional changes, only slight recoding to make it easier to cut-and-
paste into new buildlink.mk files.
2001-05-25 04:49:15 +00:00
jlam
d1c6bb07b5 Make instructions for use more explicit, and correct a typo in the
comments (WRKSRC should be WRKDIR).
2001-05-24 08:58:24 +00:00
jlam
54718a4db7 Standardize name of file to include for build-links to be "buildlink.mk".
Use BUILDLINK_INCDIR, BUILDLINK_LIBDIR for locations of linked headers
and libraries.  Create a variable BUILDLINK_TARGETS whose value is the
list of build-link targets to execute.
2001-05-24 08:53:54 +00:00
jlam
d97bb82a1d Tell the user when we're linking the readline files. 2001-05-22 16:46:37 +00:00
jlam
a01649af1c Use READLINE_REQD for required version of GNU readline, and use
USE_GNU_READLINE to force the use of GNU readline over editline's
readline emulation.
2001-05-22 05:57:04 +00:00
jlam
2b1572b5ee Fix this up so it actually works (tested with www/cadaver) on installations
without readline emulation in the base system.
2001-05-16 05:05:48 +00:00
jlam
39e4577f8c Add a Makefile.readline (copied from databases/postgresql) that is intended
to be usable by packages that use readline() functionality:

# If readline() is not present in the base system through libedit, then a
# dependency on devel/readline is added, the appropriate headers are linked
# into ${WRKINCDIR} (${WRKSRC}/include), and the appropriate libraries are
# linked into ${WRKLIBDIR} (${WRKSRC}/lib).
2001-05-16 04:39:12 +00:00
wiz
dfb2d5edc6 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 00:44:09 +00:00
agc
5092342d3d + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
+ include distfile filesizes in distinfo
2001-04-17 09:56:50 +00:00
wiz
94dc65fbec Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:38:16 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00
jlam
5dd380774f Update readline to 4.1. Closes PR#10615 by Damon Brodie.
Relevant changes from 4.0:

e.  The history library tries to truncate the history file only if it is a
    regular file.
f.  A bug that caused _rl_dispatch to address negative array indices on
    systems with signed chars was fixed.
g.  rl-yank-nth-arg now leaves the history position the same as when it was
    called.
m.  The quoted-insert code will now insert tty special chars like ^C.
n.  A bug was fixed that caused the display code to reference memory before
    the start of the prompt string.
p.  A bug was fixed in readline's signal handling that could cause infinite
    recursion in signal handlers.
q.  A bug was fixed that caused the point to be less than zero when rl_forward
    was given a very large numeric argument.
r.  The vi-mode code now gets characters via the application-settable value
    of rl_getc_function rather than calling rl_getc directly.
t.  Fixed a bug in the redisplay code for lines with more than 256 line
    breaks.
u.  A bug was fixed which caused invisible character markers to not be
    stripped from the prompt string if the terminal was in no-echo mode.
v.  Readline no longer tries to get the variables it needs for redisplay
    from the termcap entry if the calling application has specified its
    own redisplay function.  Readline treats the terminal as `dumb' in
    this case.
w.  Fixes to the SIGWINCH code so that a multiple-line prompt with escape
    sequences is redrawn correctly.
b.  Parentheses matching is now always compiled into readline, and enabled
    or disabled when the value of the `blink-matching-paren' variable is
    changed.
e.  history-search-{forward,backward} now leave the point at the end of the
    line when the string to search for is empty, like
    {reverse,forward}-search-history.
f.  history-search-{forward,backward} now leave the last history line found
    in the readline buffer if the second or subsequent search fails.
g.  New function for use by applications:  rl_on_new_line_with_prompt, used
    when an application displays the prompt itself before calling readline().
h.  New variable for use by applications:  rl_already_prompted.  An application
    that displays the prompt itself before calling readline() must set this to
    a non-zero value.
i.  A new variable, rl_gnu_readline_p, always 1.  The intent is that an
    application can verify whether or not it is linked with the `real'
    readline library or some substitute.
2000-07-19 09:31:44 +00:00
jlam
3fa889bd4a USE_LIBTOOL instead of pkglibtool. 2000-06-09 07:06:34 +00:00
rh
74add3b300 s/USE_LIBTOOL/USE_PKGLIBTOOL/
Add a new USE_LIBTOOL definition that uses the libtool package instead of
pkglibtool which is now considered outdated.
USE_PKGLIBTOOL is available for backwards compatibility with old packages
but is deprecated for new packages.
2000-06-01 11:23:11 +00:00
agc
682ae23548 Remove patch-aj, which creates an rlman.texinfo file, which already
exists in the distribution. Update patch-sum file accordingly.
1999-07-26 15:12:23 +00:00
jlam
6b79251d17 * Update "devel/readline" to 4.0.
* Libtoolize library build.
1999-07-13 00:56:12 +00:00
agc
a910a6fd62 Add package patch-sum files 1999-07-09 13:50:05 +00:00
tron
9c4c0c2b50 Remove unnecessary slash from master site list. 1999-04-14 21:39:01 +00:00
bad
fa9c2f3760 Catch up with MASTER_SITE_GNU reorganization. 1999-03-22 16:08:30 +00:00
agc
9d1623c92c s/make/${MAKE}/g 1999-03-08 14:26:13 +00:00
agc
1bb3007c04 s/make/${MAKE}/g 1999-03-08 10:53:55 +00:00
sommerfe
4d54e8c85d Fix for arm (and anywhere else chars are unsigned by default)
(should not cause problems on systems with signed chars.)
1999-02-23 18:56:59 +00:00
tv
111c4f44b0 Use install-info in $PATH, so that systems with it in base will work too. 1999-02-11 19:17:28 +00:00
agc
05b88260d7 Add NetBSD RCS Ids. 1998-08-07 13:16:49 +00:00
agc
86db14e819 Add NetBSD RCS Ids. 1998-08-07 10:35:47 +00:00
agc
6da110286c Make it safe to use the readline library in C++ programs. 1998-07-24 08:56:18 +00:00
agc
ac1591c0d0 Use an ``extern "C"'' style block in case the history.h file is included
in a C++ application.
1998-07-23 12:10:14 +00:00
agc
6c9f24c0c1 Use automatic shared object handling. 1998-07-14 15:55:38 +00:00
frueauf
46c3219ef7 This patch is no longer needed as the direntries are already in the orig files. 1998-07-02 14:01:46 +00:00
agc
8157ff7bcf Update package Makefiles for automatic manual page handling. 1998-06-22 11:19:40 +00:00
hubertf
cd7d51ee24 Update to V2.2 1998-04-21 08:36:12 +00:00
agc
5201e68497 Introduce USE_GTEXINFO and INFO_FILES definitions to bsd.pkg.mk, and use them. 1998-04-17 09:37:21 +00:00
agc
258b808c9f Use the bsd.pkg.mk and bsd.pkg.subdir.mk files in the pkgsrc tree.
Remove redundant (and sometimes erroneous) comments.
1998-04-15 10:38:15 +00:00
frueauf
9174075412 portlint: use ${VARIABLE}, instead of $(VARIABLE); ldconfig->${LDCONFIG};
true->${TRUE}.
1998-03-28 21:24:40 +00:00
agc
9f1bce34f5 Jaromir Dolecek's readline package (PR 4915) is better than the one
in tree, so take the necessary elements from Jaromir's package:

+ build and install libhistory

+ build and install shared history and readline libraries.

+ install readline and history info pages with the correct names

Preserve change from the original package:

+ don't assume that the Makefile SHELL is Bourne shell - set it
explicitly, so that Bourne shell scripts aren't run by the csh(1)
1998-03-19 13:02:19 +00:00
frueauf
7566535e2c portlint: add default MAINTAINER. 1998-03-10 13:47:35 +00:00
agc
528bc18ca5 Initial import of the GNU readline library (version 2.1) into the
NetBSD packages collection.  This is because some other packages play
dirty and muck about with the internals of the readline structures, so
our libedit-based emulation won't suffice for that.  A pity.
1998-03-08 01:40:39 +00:00