Commit graph

1367 commits

Author SHA1 Message Date
xtraeme
3ac6ad1ffd Add some new variables for manual pages when using imake.
They are:

	o IMAKE_KERNMAN_DIR (man4 or cat4)
	o IMAKE_MISCMAN_DIR (man7 or cat7)
	o IMAKE_KERNMAN_SUFFIX
	o IMAKE_MISCMAN_SUFFIX

Ok'ed by Hubert Feyrer in private email.
2004-01-31 16:52:16 +00:00
jlam
e9dde6bfe9 It's GNU_CONFIGURE_PREFIX, not CONFIGURE_PREFIX. 2004-01-31 07:07:33 +00:00
grant
be21271b07 let tools.mk decide whether GNU patch is needed. 2004-01-29 10:22:01 +00:00
grant
01b9c194a6 add GNU gnu patch(1), to override patch(1) on some platforms. 2004-01-29 09:38:10 +00:00
jschauma
1cce0bd065 Some licenses are pretty long, so use $PAGER instead of $CAT, if $PAGER
is set.
2004-01-28 20:29:46 +00:00
agc
c156ab5d49 Replace all occurrences of the "MAIL" definition with MAIL_CMD, since
some shells can set MAIL to be the mailbox of the user, and
environment variables will override assignments in make when using
conditional assignments.
2004-01-27 16:11:47 +00:00
jlam
2116fcb603 "fetch" is also a distinct build phase. 2004-01-27 02:36:59 +00:00
heinz
4d478bb0cf Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248 2004-01-26 21:10:31 +00:00
grant
d85f19a094 show-needs-update target: run ${MAKE}, not "make". 2004-01-25 16:12:40 +00:00
grant
57eb61a5d6 run GNU configure scripts with ${CONFIG_SHELL}, which defaults to
${SH} when GNU_CONFIGURE is defined.

fixes problems on Solaris and BSDI with some GNU configure scripts.
2004-01-25 10:36:15 +00:00
xtraeme
7c90204834 Removed XFree86-libs dependency if we are trying to use XFree86
packages from pkgsrc, it's not really needed with the latest change
to x11-links.
2004-01-25 07:47:00 +00:00
grant
677c8663d9 g/c USE_GMAKE. nothing uses it anymore. 2004-01-25 02:37:49 +00:00
xtraeme
c0f8903bb6 Added a new variable for XFree86 packages:
USE_PKGSRC_XFREE86

By default it is disabled, if you want to use XFree86 packages from
pkgsrc, please add "USE_PKGSRC_XFREE86=YES" in /etc/mk.conf.
2004-01-24 09:23:22 +00:00
jlam
018df25438 Move all of the code that sets USE_XPKGWEDGE from bsd.pkg.mk into
bsd.prefs.mk as it's needed in setting X11PREFIX to the correct value,
which is also done in bsd.prefs.mk.  This is the follow-through to the
temporary fix in previous revision (1.141) of bsd.prefs.mk.
2004-01-23 17:55:17 +00:00
jmmv
cd39cfd5a5 Add http://osdn.dl.sourceforge.net/sourceforge/ as a master site for
Sourceforge.
2004-01-23 17:04:55 +00:00
xtraeme
582b323b23 Add three additional mirrors to MASTER_SITE_SUSE. 2004-01-22 10:19:58 +00:00
jlam
3306fc00c1 Introduce concept of the "phase" that we're in as we progress through
fetching, extracting, configuring, building, etc. of a package.  We
can check what phase we're in by examining the value of ${PKG_PHASE}
and comparing against PHASES_AFTER_<phase>, which list phases that
are "greater than or equal to" <phase>.

One useful example of how to use PKG_PHASE is:

.if !empty(PHASES_AFTER_EXTRACT:${PKG_PHASE})
#
# Some variable settings or targets here that rely on dependencies to
# already be installed, or ${WRKDIR} to be created, etc., as these are
# things that should have happened by the time "make extract" is
# completed.
#
.endif
2004-01-21 18:13:27 +00:00
snj
e0220ad330 s/it's/its/ 2004-01-20 22:15:21 +00:00
jlam
eb35df0213 Fix PERL5_REQD=5.8 to mean that we want to install lang/perl58. Before,
we were expecting PERL5_REQD=5.8.0.
2004-01-19 23:47:41 +00:00
jlam
cebb84d3d5 Allow CONFIG_STATUS_OVERRIDE to override config.status scripts generated
by GNU configure scripts at CONFIGURE_POSTREQ time.  The new config.status
scripts merely return success.  This prevents newer Makefiles from
re-running the configure script with the wrong shell environment if we've
touched some GNU autotool-related files during the patch stage.

We might want to always do this, i.e. make this opt-out instead of opt-in.
However, we start with opt-in so that no existing packages can break.
2004-01-19 15:04:05 +00:00
jlam
69bbf64eeb Remove some extraneous commands and switch some targets to be conditionally
defined.
2004-01-19 14:54:26 +00:00
jlam
c5bccee28b We only need the special PLIST info-file handling if we're using static
PLISTs.  Dynamic PLISTs automatically list the installed info files in the
PLIST.
2004-01-18 00:51:30 +00:00
rh
8c4d9ffa48 Add *RECOMMENDED variables as discussed on tech-pkg@ to allow for a more
fine-grained distinction between required versions of pre-requisites
(DEPENDS) and versions that are recommended for security or library ABI
consistency reasons (RECOMMENDED).

  The contents of ${RECOMMENDED} are added to DEPENDS unless
IGNORE_RECOMMENDED is set to YES, in which case a warning will be printed
and IGNORE_RECOMMENDED will be added to BUILD_DEFS.

  Add a corresponding BUILDLINK_RECOMMENDED.<pkg> variable for use with
buildlink2 and buildlink3.
2004-01-14 06:57:45 +00:00
jlam
3e34cdfbed Differentiate between MAKE_FLAGS passed to the build, test and install
targets by using BUILD_MAKE_FLAGS, TEST_MAKE_FLAGS, and INSTALL_MAKE_FLAGS
in the respective targets.  All of the new variables default to
${MAKE_FLAGS} to preserve the current behaviour.
2004-01-13 00:40:25 +00:00
grant
1ab78e5ed0 show-shlib-type: use return(0) instead of exit(0). eliminates a
warning from non-gcc. ok'd by agc.
2004-01-12 10:08:37 +00:00
grant
a46210a1a2 backout previous until it can be done a better way. 2004-01-10 09:52:56 +00:00
grant
b508fcf350 make shared library handling more efficient by nuking the
show-shlib-type target and instead defining SHLIB_TYPE using
similar semantics show-shlib-type, but on non-dylib and non-AIX
platforms, use ${OBJECT_FMT} instead of compiling a dummy binary
and running file(1) over it.

with archivers/bzip2 on my Solaris 9 box, this shaves 1.6sec, 92
fork()s and 956 stat()s from creating ${WRKDIR}/.PLIST and the
do-shlib-handling target.
2004-01-10 08:38:43 +00:00
salo
20800615bd Resurrect ftp.cz.NetBSD.org MASTER_SITE_BACKUP, the machine is up and running
again.
2004-01-07 15:30:54 +00:00
jlam
e9a249e705 Create a variable USE_XPKGWEDGE that determines whether or not pkgsrc will
use xpkgwedge to install X11 packages into ${LOCALBASE}.  It defaults to
"no" to preserve the current behaviour.

Also make pkgviews imply USE_XPKGWEDGE=yes, as xpkgwedge is a requirement
for making X11 packages install properly using pkgviews.
2004-01-06 23:00:51 +00:00
wiz
f35aaaa301 Fix awk warnings in MASTER_SORT* code.
From Stoned Elipot (seb@).
2004-01-06 14:43:02 +00:00
jlam
7af97f217d Fix comment for generate-plist after removal of PERL5_GENERATE_PLIST. 2004-01-06 09:30:41 +00:00
jlam
30ecab1579 PERL5_GENERATE_PLIST is defined properly in perl5/module.mk, and all
perl5 modules have been converted to use module.mk, so nuke the duplicate
code in bsd.pkg.mk.
2004-01-06 09:27:40 +00:00
jlam
704f0f9e04 If xpkgwedge is installed, then _always_ add it to BUILD_DEPENDS. Also
comment the section that sets the PREFIX.
2004-01-06 09:24:14 +00:00
grant
bab65643ff fix a bug in the extraction of shlib dependencies on Darwin which
caused non-shared objects to be mistakenly added to the buildinfo
REQUIRES.
2004-01-05 07:15:39 +00:00
seb
194162c720 Introduce dynamic registration of info files in PLIST.
For each file listed in INFO_FILES the installed files matching
${PREFIX}/${INFO_DIR}/filename(-[0-9]+)? are registered as belonging
to the package.

Also ignore the same files in print-PLIST target.

Info files should not be listed in PLIST files anymore but the awk code
snippet (_PLIST_AWK_INFO) in charge of actually dealing with info files for
the plist target will strip any it finds in them.

Now for the reason behind this...

Older makeinfo command (before pre-release version 4.5.90 or before release
version 4.6) had SPLIT_SIZE_THRESHOLD: when an info file size was
>= SPLIT_SIZE_THRESHOLD then the info file was split in chunks of
DEFAULT_SPLIT_SIZE size.

DEFAULT_SPLIT_SIZE in older versions of makeinfo was 50000 (bytes)
and SPLIT_SIZE_THRESHOLD was 70000.

So if an info file has a size < 70000 and is processed by makeinfo < 4.6
it is not split in chunks. But if it is processed by makeinfo >= 4.6
texinfo.mk to emulate older version automatically adds `--split-size=50000'
to makeinfo's command line and this time the info file is split in chunks...

This can lead to PLIST inconsistency from platform to platform or more
exactly from version to version of makeinfo.

Now we don't have to care about this problem and the info files removal
from PLIST files can happen.
2004-01-02 12:28:05 +00:00
salo
df34cdeb5c Remove ftp.cz.NetBSD.org from MASTER_SITE_BACKUP.
There are problems with the hosting and the machine will be offline for
unknown time period..
2003-12-31 12:29:16 +00:00
grant
b6d06d7642 trim whitespace from a message. 2003-12-30 05:07:41 +00:00
tron
99f07b62b1 Use "${LS}" instead of "${FILE_CMD}" to find out the target of softlink
when (de)compressing manual pages. This fixes problems caused by the
output format of NetBSD-current's and shouldn't hurt any other platform.
2003-12-28 21:20:02 +00:00
seb
cbb836f2c9 print-PLIST target pipeline modifications:
- reduce the number of components with pervasive awk usage.
 - handle Info directory file when it is not `info/dir'.

Notice that print-PLIST substitutions are now made globally (awk's gsub())
when previously the sed substitution commands did not have the 'g'lobal
flag.

While here fix PKGVERSION substitution just like PLIST_SUBST's PKGVERSION
element is handled in ${PLIST} target i.e. without considering
the 'nb${PKGREVISION}' suffix.

While here give COMMON_DIRS variable a more "internal type" name:
_PRINT_PLIST_COMMON_DIRS.
2003-12-26 17:43:24 +00:00
seb
ddf672e1b8 print-pkg-size-this target:
- properly quote any filenames in ${PLIST} before feeding them
   to xargs. This allows latest textproc/docbook-xsl package
   to be registered with its correct size because it contains a file with
   a single quote in its name.

   XXX pkg_add does not like this filename anyway.

 - fix the awk script that parse ${PLIST} so pathname containing space
   (hence awk's NF > 1) are not removed from size calculation.

Many thanks to atatat@ to remind me the proper way to quote a shell
word.
2003-12-25 16:18:48 +00:00
heinz
7e1c676d35 Use MAIL variable from defs.OPSYS.mk instead of hard-coded 'mail'.
This should (really, this time) close pkg/23682.
2003-12-24 15:22:00 +00:00
seb
abe5cf8688 Move message/${MESSAGE} target around, out of plist target and its
supporting code.
While here comment the message target a bit.
2003-12-23 18:27:24 +00:00
tron
1b228334a0 Remove "ftp.tu-darmstadt.de" from "MASTER_SITE_XEMACS" because it doesn't
have the packages any more.
2003-12-23 11:14:20 +00:00
agc
78b16985e1 Make SMART_MESSAGES work again by passing _PKGSRC_DEPS through the
environment into sub-makes for pre-requisite packages, rather than
using ${MAKEFLAGS} and the command line.
2003-12-21 14:19:12 +00:00
grant
cbfe3f9632 revert previous; it is not needed. 2003-12-18 03:32:50 +00:00
grant
7f491dd188 subst PKG_SYSCONFDIR in the PLIST, avoiding having to do it manually
in every package which uses it.
2003-12-18 03:24:49 +00:00
seb
9063c05285 Rewrite most of the pipeline generating ${PLIST} as a single awk script. 2003-12-16 12:36:54 +00:00
seb
3b040a1943 Improve, move around and bring up to date comments about print-PLIST
target.
2003-12-13 22:15:11 +00:00
seb
7ce6fc4e22 Properly fix meta-characters quoting in awk regexp specified as strings:
`\' needs to be quoted in a string.
Also remove some unnecessary `\' in awk strings.
2003-12-13 00:34:39 +00:00
grant
e793e95d56 remove ftp.progsoc.uts.edu.au from MASTER_SITE_GNU as it has been
unreachable for weeks. replace with public.planetmirror.com.au.
2003-12-11 22:27:40 +00:00