Commit graph

2439 commits

Author SHA1 Message Date
grant
46d3d2155b comment: clarify and describe why USE_GNU_TOOLS+= must be used. 2003-08-02 04:49:14 +00:00
grant
850eaa604f handle platforms with broken tools in the base system, such as sed
and awk. as proposed on tech-pkg@, with some changes to set the
appropriate tool variables and handle OSs which provide GNU tools
in the base system (ie. do nothing).

this allows packages or users to force the use of pkgsrc GNU tools
when they are not present in the base system by defining e.g.
USE_GNU_TOOLS="awk sed".

Solaris' sed is marked as incompatible, as even the XPG4 sed is too
limited for a number of packages (especially large ones which use
libtool, as libtool calls blind 'sed'), so GNU sed is always used
on Solaris.
2003-08-02 03:46:34 +00:00
seb
2fdc2dd1cb Revert previous. USE_MAKEINFO is initialized in bsd.pkg.mk.
The problem jmc encountered in textproc/groff and leading
him to add it here was fixed in groff package itself.
2003-07-31 22:05:38 +00:00
jmc
38347ced5c Need to define USE_MAKEINFO before testing against it 2003-07-31 20:09:41 +00:00
seb
788f48db9a Sync comments with reality (Trilogy, volume 5). 2003-07-31 13:55:24 +00:00
seb
16437cbe4c Make it possible to have a package requiring makeinfo but not install-info.
INFO_FILES is now defined by default to the empty value.
If it is not empty it means that install-info -or a suitable
replacement like pkg_install-info- is required.

USE_MAKEINFO is now defined by default to the 'no' value.
If it has any other value it means that makeinfo is required.
Note that as before simply defining USE_MAKEINFO in a package
Makefile is enough to trigger the use of makeinfo. I.e. it is not
required to be '[yY][eE][sS]'.

As a side effect when using buildlink2 always create install-info and
makeinfo wrappers in ${BUILDLINK_DIR}/bin. This could help
package maintainer to catch spurious/hidden install-info and makeinfo
usage.

Note that for now this nice feature is not really enabled as the relevant
part of bsd.buildlink2.mk is still conditional upon USE_NEW_TEXINFO.
It will really be when USE_NEW_TEXINFO will be removed from pkgsrc.
2003-07-31 13:50:11 +00:00
jmmv
38dd4422e2 Let a package override the name of the automatically generated rc.d script
files inside the WRKDIR.  This is done by setting RCD_SCRIPT_WRK.<name> to
the requested filename, like:

	RCD_SCRIPT_WRK.foobar=	${WRKDIR}/foobar.sh

This fixes a problem (rc.d script not beeing generated) when there is a name
conflict in the WRKDIR (i.e., the file already exists or WRKSRC has the same
basename).
2003-07-31 10:36:03 +00:00
grant
529668ce7c include bsd.prefs.mk, since we use ${ECHO}. 2003-07-31 08:58:24 +00:00
jmmv
210c5d84be Modify the build-defs-message target so that it is only printed once, in the
pre-fetch stage.  Do this by creating a cookie file inside the WRKDIR.

Also let the user override the target from mk.conf to disable these messages.
This fixes PR pkg/22305 by Robert Elz.
2003-07-30 15:04:21 +00:00
jlam
ca8050d834 If a HEADER file exists in the package directory, then assume it's meant
for the HEADER_EXTRA_TMPL variable.
2003-07-30 10:31:20 +00:00
jlam
6a9e4d3fe5 Allow package Makefiles to insert a supplementary header to the
INSTALL/DEINSTALL scripts via HEADER_EXTRA_TMPL, that is meant to contain
variable definitions to be used by the various actions.
2003-07-30 10:27:05 +00:00
seb
95c657b976 Rename sandboxDirs to sandboxMountDirs.
Introduce sandboxEmptyFiles a list of files to create empty in the
sandbox if they exist on the hosting system. Hence put /var/run in
sandboxEmptyDirs list.

Use $cppprog instead of cp.
2003-07-30 09:25:13 +00:00
seb
4a21457080 Whitespace. 2003-07-30 09:14:04 +00:00
seb
ac47c58a83 Introduce sandboxEmptyDirs a list of directories to create empty
in the sandbox if they exist on the hosting system: put /var/spool/mqueue
as it was already created before and add /var/log for now (needed
for various packages, like security/ssh2).

Only create /var/run/utmp(x) if they exist on the hosting system.
XXX this may better be an opsys dependent action.
2003-07-29 20:31:05 +00:00
seb
3f203cfe95 Follow the trend started by jmmv@. Thanks Julio!
Remove IRCD_HYBRID_DPATH from bsd.pkg.defaults.mk and BUILD_DEFS,
set PKG_SYSCONFSUBDIR to 'ircd-hybrid' instead: the package builder is
now expected to adjust Ircd Hybrid configuration directory with
PKG_SYSCONFBASE(.${PKG_SYSCONFVAR}).

Replace local DOC_SUBST stuff with FILES_SUBST from bsd.pkg.install.mk.

Go with the previous PKGREVISION bump.

XXX Having the log files as SUPPORT_FILES is not optimal.
XXX I really should update this package.
2003-07-29 20:21:37 +00:00
jmmv
f4e532253d Go one step further: turn CANNA_GROUP and CANNA_USER build definitions and
handle the group and the user they specify with bsd.pkg.install.mk.  In fact,
these variables were already changeable.
2003-07-29 19:53:19 +00:00
jmmv
0b27543ed1 Use PKG_SYSCONFDIR when setting the default value for IRCD_HYBRID_DPATH. 2003-07-29 17:24:49 +00:00
wiz
dcf1d7f5a4 Apply pkgsrc-wip/wip/jdk1x_java-vm.mk.diff to add support for the
jdk12 and jdk13 packages from pkgsrc-wip.
2003-07-29 16:33:07 +00:00
agc
41305a0c9c Indent cpp-like statements properly 2003-07-28 20:01:54 +00:00
jmmv
784ad97939 Add the build-defs-message target, which shows a list of all variables that
can be customized for the package beeing built.  This list is extracted from
the contents of BUILD_DEFS, and the message is not shown if it's empty.
Each variable is printed together with its actual value.

The new target is called in the pre-fetch stage, so it's shown early to the
user.
2003-07-28 18:15:56 +00:00
jmmv
cc8cb1820a Introduce the MPLAYER_DISABLE_DRIVERS variable, which holds a list of "drivers"
that are not wanted in the binary program.  It is empty by default, so that all
drivers are linked in to get a full featured binary package.  Packages using
this variable include mplayer and gmplayer.  While building mencoder, disable
all of these drivers, as they are not needed.  Bump PKGREVISION.

arts is now a enabled if not present in the variable.  This detail closes
PR pkg/21775 by Marc Recht.
2003-07-27 19:59:40 +00:00
jmmv
d97f78df27 SDL_USE_NAS deprecated by the new audio/SDL-nas plugin. 2003-07-26 23:08:47 +00:00
dmcmahill
bcee7aab52 - fix bug that gave an invalid entry in the homepage field when there is
no listed homepage.  Thanks to Grant Beattie for noting this and providing a
  patch which I changed slightly.
- fix a bug which put extra stuff in the categories field.  Thanks to Grant
  for noting this.
2003-07-25 12:58:20 +00:00
dmcmahill
30b1a989cb replace the -u and -d options to tflat with 'up' and 'down' as the former
causes problems with some awks.  Patch provided by Jonathan Perkin in
PR pkg/22246
2003-07-25 11:29:33 +00:00
dmcmahill
981a376c35 - add HOMEPAGE as the last field in the INDEX file.
- make the paths be relative to PKGSRCDIR as opposed to absolute.
- some cleanup/simplification of the awk code.
2003-07-24 22:27:16 +00:00
jmmv
4634a89e73 Mark all targets that do not correspond to real files with the .PHONY
attribute.
2003-07-23 22:02:48 +00:00
jmc
d46e28d7a7 Use PKG_SKIP_REASON instead of PKG_FAIL_REASON here if qualifications aren't
met. The same message gets to the user but now it won't show a package as
broken on bulk builds that really is simply unavaiable on a given platform
2003-07-23 20:15:01 +00:00
jmc
0357645827 If CPP is set (via sys.mk) and not fully qualified in it's pathname, reset it
to the fully qualified path name to avoid rpcgen bugs with undocumented usage
of CPP.
2003-07-23 20:13:47 +00:00
dmcmahill
28fd31fa83 rework the INDEX file generation. The new approach speeds up things by
several orders of magnitude and 'make index' now takes 30 minutes or so
instead of several days on my test machine.  The approach now is to take
one pass through every package and extract some key information including
the explicitly listed dependencies.  After the data is extracted, the
dependencies are flattened in one step which avoids the extremely
inefficient recursive make that was previously used.
2003-07-23 09:41:23 +00:00
jmmv
6bf23df930 Add locale directories: af, tg, th; used by xmms. 2003-07-22 23:21:18 +00:00
agc
e25f89bf13 Ignore any errors from ldd when calculating reuires and provides 2003-07-22 13:48:48 +00:00
agc
1672441254 As part of the build information, record the full pathnames of the
shared object "provides" and "requires" information.  This is only
turned on just now if ${CHECK_SHLIBS} is set to "YES".

Example output:

% pkg_info -B libutf | grep '^PROVIDES'
PROVIDES=/usr/pkg/lib/libutf.so.2
% pkg_info -B ssam | grep '^REQUIRES'
REQUIRES=/usr/lib/libc.so.12
REQUIRES=/usr/pkg/lib/libutf.so.2
%
2003-07-22 10:12:47 +00:00
seb
751840e777 Sync comments with reality wrt to USE_MAKEINFO == "no". 2003-07-22 01:10:32 +00:00
kristerw
b154c252d9 Include "../../mk/bsd.prefs.mk" to make sure PKGPATH is defined. 2003-07-22 01:00:25 +00:00
jmmv
a468557543 Add locale directories: fo, nso, ven, xh, xx, zu; all used by kopete. 2003-07-21 17:50:05 +00:00
dmcmahill
5e93a64cfa - fix comment about what shows up in the index file.
- add ONLY_FOR_ARCHS and NOT_FOR_OPSYS to the list of variables that goes
  in the print-summary-data output.  This is the first step in speeding up
  the 'make index' process.
2003-07-19 02:50:22 +00:00
grant
31f433d64b only include gcc.buildlink2.mk if we are not using the MIPSpro or SunPro
compiler.

don't include the buildlink2.mk of the gcc package being built.
2003-07-18 04:21:16 +00:00
uebayasi
223429e75f Introduce CUE_USE_CANNA, which determines whether to enable Canna support.
Default is NO.

This addresses PR19010 by Takashi Yamamoto.
2003-07-17 09:09:58 +00:00
bad
d6973cf441 "make update" works fine for me with SPECIFIC_PKGS=1, so enable it and the "clean-update" target. 2003-07-14 23:23:21 +00:00
grant
a5caa515f7 move gcc selection back to bsd.pkg.mk as the top-level Makefile
includes bsd.prefs.mk.
2003-07-13 13:27:18 +00:00
grant
bbfe9c9c20 don't set USE_GCC2 by default as it implies the use pkgsrc gcc2, and
move handling of gcc shared libraries to bsd.prefs.mk.
2003-07-13 13:10:43 +00:00
grant
30373d0843 when creating the buildinfo file, set CC=${CC} without the version
information, and set CC_VERSION appropriately by trying -v and -V
args.

works for gcc2, gcc3 and SunPro, may need tweaking for MIPSPro.
2003-07-13 06:44:02 +00:00
wiz
dc934dad21 When generating a perl packlist, strip all leading slashes.
From Sergey Svishchev in PR 21754.
2003-07-12 15:34:37 +00:00
salo
67b59b1f25 Add PURE_FTPD_USE_PGSQL and use sane default for PURE_FTPD_USE_MYSQL. 2003-07-12 14:24:15 +00:00
wiz
7eb4802333 Create directories with mode 0755, since that is what the mtree
files expect.  Noted by Toru TAKAMIZU in PR 22007, patch from seb@netbsd.
2003-07-12 10:21:33 +00:00
grant
58657ac9cf portability fixes:
quote a shell test, and run ${AWK} -f tflat instead of using
#!/usr/bin/awk.
2003-07-11 23:54:32 +00:00
grant
4f52e90180 also set PTHREAD_LDFLAGS=-lpthread if we aren't using native threads. 2003-07-11 23:37:13 +00:00
jlam
b36d20c1c7 Use new _OPSYS_NEEDS_XPKGWEDGE to simplify the check for whether we need a
build dependency on xpkgwedge.
2003-07-11 20:22:11 +00:00
jschauma
b6fdd52c56 Rather than hardcoding IRIX into bsd.pkg.mk when checking if xpkgwedge is
needed let's use _OPSYS_NEEDS_XPKGWEDGE to be set in defs.${OPSYS}.mk
2003-07-11 15:40:18 +00:00
grant
102641b4be use /usr/xpg4/bin/expr 2003-07-11 14:33:45 +00:00