Commit graph

2887 commits

Author SHA1 Message Date
jlam
9c46ce5946 Missing trailing $ to only match whole words. 2004-01-06 18:10:06 +00:00
wiz
f35aaaa301 Fix awk warnings in MASTER_SORT* code.
From Stoned Elipot (seb@).
2004-01-06 14:43:02 +00:00
jlam
44d8a8971f Add FreeBSD to _BLNK_CACHE_ALL (matches bsd.buildlink2.mk). 2004-01-06 09:45:31 +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
jlam
3a61d3a908 Try to convert GCC's optimization flags to SunPro optimization flags.
From Jonathan Perkin in private email.
2004-01-06 08:48:29 +00:00
jlam
fe15b75845 Fix bug where "!empty" was missing from a .if test. 2004-01-06 04:29:33 +00:00
jlam
636660df39 Do the right thing for pkgviews if we do binary package upgrades of
package dependencies by inserting the right default view directories into
the run-time library search path as well.
2004-01-05 21:50:13 +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
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
jlam
6236fdd401 When checking the value of yes/no variables using the the
!empty(...:M[yY][eE][sS]) construct, always use !empty(...) instead of
empty(...) just for some consistency.
2004-01-05 07:01:43 +00:00
jlam
048ceab425 Of course I really meant buildlink*3*.mk. 2004-01-05 05:59:29 +00:00
jlam
4b39019c6c We don't need to escape "+" if we're using the :M variable operator. 2004-01-04 23:30:04 +00:00
jlam
c705b8fe80 Rearrange some of the lines in the buildlink3.mk example so that it's a bit
shorter to write.
2004-01-04 22:01:18 +00:00
jlam
b840f07908 BUG FIXES:
* Don't add any dependencies (via BUILDLINK_DEPENDS) unless
  buildlink3.mk files add them.  This fixes case where the software
  existed both in the base system and in /usr/pkg, we used only the
  built-in software, but we still recorded a dependency on the one in
  /usr/pkg.

* Re-structure the code that populates ${BUILDLINK_DIR} so that we
  don't bump into ARG_MAX limits in the shell.  This should fix the
  problem present in the buildlink2 framework noted in:

	http://mail-index.netbsd.org/tech-pkg/2004/01/03/0005.html

CHANGES:

* Define a new yes/no variable BUILDLINK_USE_BUILTIN.<pkg> that
  determines if we should use the built-in software or not.  This
  should probably replace the various USE_NCURSES, USE_GNU_READLINE,
  USE_GNU_GETTEXT, etc. variables with something whose naming is a
  bit more consistent and is integrated directly into the buildlink3
  framework.

* Garbage-collect "$$pkg_prefix", which was used exclusively in
  BUILDLINK_FILES_CMD.<pkg>.  It no longer exists in the
  buildlink3/pkgviews world.  Packages _should_ _no_ _longer_
  directly set the PREFIX variable in the package Makefile.  As a
  consequence, the various Java VM packages will need some changes
  when they're converted to use buildlink3.
2004-01-04 20:57:31 +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
jlam
24f7929dc2 Extend the "l" command by allowing changing "-lfoo" into "-lbar -lbaz" by
saying "l:foo:bar:baz".
2004-01-03 20:23:51 +00:00
ben
3054737f99 Add license information for fp-netbsd-ws, and note new package in Makefile
and CHANGES.
2004-01-02 18:45:44 +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
gavan
fe7e08a748 Remove libraries from the output if they don't exist.
ok'd by grant.
2003-12-30 12:09:27 +00:00
grant
b6d06d7642 trim whitespace from a message. 2003-12-30 05:07:41 +00:00
kim
9f554b136c Reinstate the fix in revision 1.6 2003-12-29 02:55:22 +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
jmmv
d5e6f16ff4 Add el_GR and sq_AL locale directories, used by xcdroast. 2003-12-28 19:30:44 +00:00
kim
03373c1334 Revert revision 1.5 as binaries and directories are now being substed
unintentionally.

Also revert revision 1.6 as part of the overall change, as I suspect
the change might be unnecessary.  While I'm not 100% sure, this does
just revert to the previous behaviour.
2003-12-28 17:28:26 +00:00
jmmv
f559aca387 The generated target is subst-<class>, not <class>-subst. Fix comment
accordingly.
2003-12-28 15:57:29 +00:00
agc
1569239e9f Indent to make nested blocks easier to distinguish. 2003-12-28 11:23:28 +00:00
tron
428a4e388c Fix back ".endif" logic which breaks "USE_INET6" on many platforms. 2003-12-28 10:09:38 +00:00
tron
547b3a4996 Override predefined "USE_INET6" if "USE_SOCKS" is defined. 2003-12-27 13:39:01 +00:00
tron
569a11b533 If "USE_INET6" is already defined (e.g. by NetBSD-current's "bsd.own.mk")
convert it to uppercase to make checks in packages like "bind9" work.
2003-12-27 13:28:46 +00:00
grant
c331d66fa1 bomb to prevent silent failure if we're unable to rename a file
before subst'ing it.

previously, only a warning would be printed and the .subst_done
cookie(s) would be created, indicating that the subst target was
successful when it really was not.
2003-12-27 03:05:53 +00:00
grant
74f8aaa8f9 remove somewhat bogus test for text files, which was dependent on the
output of file(1) which reports too many false negatives (not
detecting a file as a text file when it really is).

package developers are aware of which files the subst operation
applies to, since they need to specify the filenames, so this test is
not really required.

it's also not inconceivable that one would want to subst over a
non-text file, which is now possible.
2003-12-27 03:02:11 +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
xtraeme
74bf6a9285 Added default values for jabberd package. 2003-12-23 10:21:53 +00:00
jmmv
0ed51e919d Add en@boldquot and en@quot locale directories, used by openbox 3.x. 2003-12-23 09:02:24 +00:00
grant
7cd5a15287 hide aclocal-1.8 and automake-1.8 after automake update to 1.8. 2003-12-23 01:38:12 +00:00
grant
bf369f629d fix a comment. 2003-12-23 01:32:58 +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
8b74d578fa tweak a message and some formatting. 2003-12-21 01:21:52 +00:00
jmmv
4b596947d5 Handle removal of fonts databases properly if the package is using
{MAKE,OWN}_DIRS (i.e., the .pkgsrc file exists in them).
2003-12-20 10:04:32 +00:00
jmmv
a58b3e0738 Define LS in install scripts (needed by install/fonts). 2003-12-20 09:45:55 +00:00
jmmv
456a588def Handle font (de)installation before bsd.pkg.install.mk handles OWN_DIRS.
This way font directories are not automatically removed; the package must
define OWN_DIRS if it wants them to be deleted during deinstallation.
This is done to avoid removal of standard font directories (those that
appear in *.dist files).
2003-12-19 23:46:41 +00:00
jmmv
fccf139b9f Use ${CD}, ${GREP}, ${RM} and ${RMDIR} instead of directly calling commands. 2003-12-19 23:18:49 +00:00
veego
aacddadd1d Update for the latest x11-links 0.19. 2003-12-19 19:22:28 +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
keihan
69873c7f3b http://www.netbsd.org/Sites/net.html is no more, use /mirrors/ instead.
From Dave B <netbsd-current (at) dberg (dot) net> to www@

While there, s/netbsd.org/NetBSD.org/g.
2003-12-17 13:48:02 +00:00
grant
d62359d2c4 add a template and comments for MOZILLA_USE_LINUX. 2003-12-17 03:00:11 +00:00
heinz
e33964c819 Introduce command MAIL. It will be used to send messages like this:
echo "message" | ${MAIL} -s"subject" add@ress.example
2003-12-16 23:07:42 +00:00
heinz
640b53c8dd Allow _PATCH_BACKUP_ARG to be overridden in /etc/mk.conf (in order to use different patch programs). Ok by agc 2003-12-16 22:54:13 +00:00
seb
9063c05285 Rewrite most of the pipeline generating ${PLIST} as a single awk script. 2003-12-16 12:36:54 +00:00
jmmv
5a82b689af Add 'br' locale, needed by upcoming gnome-desktop upgrade. 2003-12-14 22:30:51 +00:00
jmmv
70469fcfa2 Add 'mr' locale directory, needed by upcoming gnome-vfs2 update. 2003-12-14 16:02:27 +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
erh
c092d839cc Escape any ':' characters when using ${FLAG} as a match pattern. 2003-12-12 21:37:55 +00:00
wiz
8b816e0fa9 Support the automake17 package, and for now,
default to it until all packages have been fixed.
2003-12-12 19:06:34 +00:00
wiz
3cc75358a2 Sync for automake update to 1.8. 2003-12-12 07:12:38 +00:00
xtraeme
986e1fda57 Enable _BLNK_CACHE_ALL in FreeBSD (approved by silence in tech-pkg@). 2003-12-12 04:26:36 +00:00
reed
ff44319b91 Increase base version of libtool required for BSD/OS.
(1.4.20010614nb18 has support for bsdi* instead of just bsdi4*.)
2003-12-11 22:42:17 +00:00
reed
9355da422e For BSD/OS, the customized libtool uses "bsdi", so set
LOWER_OPSYS to that.
2003-12-11 22:35:50 +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
grant
c92303d6f2 add missing }.
from Aidan Kehoe in PR pkg/23676.
2003-12-11 13:51:28 +00:00
grant
f4677e4cb8 only print SUBST_MESSAGE if it's defined. 2003-12-11 00:05:36 +00:00
grant
33ac0ad0c8 override bootstrap-pkgsrc's incorrect OBJECT_FMT on NetBSD 1.4. from
krister.

XXX this should also be fixed in bootstrap-pkgsrc and bmake's
mk-files.
2003-12-10 13:59:07 +00:00
sketch
122c819022 Replace hardcoded '/usr/pkgsrc' in comments. 2003-12-10 13:59:06 +00:00
grant
cf0008987b handle older NetBSD systems where bootstrap-pkgsrc is needed, and
therefore the pkgtools are in ${LOCALBASE}/sbin. patch from krister.
2003-12-10 13:37:48 +00:00
sketch
8248226076 Ensure CPP is defined to use the Sun compiler when building packages
under USE_SUNPRO, to avoid the possibility of picking up "cpp" from a
local GCC installation.
2003-12-10 09:08:24 +00:00
grant
6370668b49 make the "update your package tools!" failure message more accurate
and friendly.
2003-12-09 13:14:02 +00:00
salo
404fee3611 Use BUILDLINK_SHELL, do not hardcode /bin/sh.
From PR pkg/23685 by Adam C. Migus.
Addresses PR pkg/23691 by Rob Quinn.
2003-12-08 13:38:19 +00:00
grant
ad9e917ad4 g/c FIX_RPATH, it is broken and no longer required for Darwin, which
was the only platform where it was being used.
2003-12-07 22:47:16 +00:00
agc
09c5eb4c93 Make the cvs update work for all shells, not just csh. 2003-12-07 11:43:22 +00:00
cube
8b39758d4f When DIST_SUBDIR is set, make sure various download variables don't get
changed when they're defined but empty.  Although it might sound weird
to have DISTFILES empty and DIST_SUBDIR set, it makes sense for wrapper
packages such as graphics/Mesa.

Fixes PR 23658 from Aaron J. Grier.
2003-12-06 18:47:45 +00:00
jdolecek
7314a7d02c add ftp.cz.NetBSD.org as another MASTER_SITE_BACKUP prior to ftp.netbsd.org 2003-12-05 08:38:15 +00:00
reed
1b646f871d For BSD/OS, get rid of that libtool work-around of
renaming LOWER_OPSYS to match. I will fix ltconfig to work
with "bsdos" too instead.
2003-12-05 05:33:17 +00:00
agc
e54f178502 Whitespace fixes, no functional changes. 2003-12-04 11:17:40 +00:00
veego
5fa7a10bc4 Add IRSSI_USE_SSL?= YES to be used in the coming update of irssi 0.8.8. 2003-12-04 10:28:31 +00:00
grant
82ce6d0efc set _OPSYS_RPATH_NAME=-L, as proposed by danw@ in
<1062867125.27063.26.camel@frotz.local> on tech-pkg.

Darwin has no rpath, but many packages pass "-Wl,${RPATH_NAME}..." to
the linker, breaking the build of these packages on Darwin. using -L
essentially makes these arguments a no-op, and fixes packages which
were solely broken by this.
2003-12-04 06:07:49 +00:00
jschauma
ec521567f8 Congratulations, we've found our first incompatible awk: Irix!
Pointed out by Bas van Oostveen in PR pkg/23514.
2003-12-04 04:33:19 +00:00
xtraeme
2e74689b43 Fix breakage in show-shlib-type introduced in last changes.
Thanks to Jeremy C.Reed and Soren Jacobsen, this also closes PR pkg/23641.
2003-12-03 21:59:00 +00:00
reed
5ac3d68c8d In bsd.prefs.mk, get rid of possible "/" in OPSYS name and define
LOWER_OPSYS for libtool use under BSD/OS.

Add initial support for using pkgsrc under BSD/OS.  This was tested
under BSDI BSD/OS 4.3.1. (Thank you D. Hege.)

(Need to add BSDOS.x11.dist later.)
CVS ----------------------------------------------------------------------
2003-12-03 21:48:33 +00:00
erh
97e8a744ee fake-la also needs @AR@ replaced now. 2003-12-03 18:38:04 +00:00
erh
619cf5c083 Shared libraries on AIX have a ".a" extension. Handle those by either looking
for an existing libtool ".la" library, or looking inside the archive for the
.so file.
Also, fail immediately if passed a library that isn't handled.
2003-12-03 18:37:35 +00:00
erh
12e024f7e7 Add another shlib type "aixlib".
Handle this in do-shlib-handling: turn *.so into *.a.
Pull out the inline awk scripts into variables to make the actual
target a little bit clearer.
2003-12-03 18:31:06 +00:00
erh
b43041a271 Pay attention to the setting of $ROOT_USER when checking whether we're root. 2003-12-03 18:25:05 +00:00
erh
5522ce89d0 If PKGMAKECONF is defined, use it to set MAKECONF instead of "/dev/null". 2003-12-03 18:13:28 +00:00
erh
8a217f07c8 Add initial support for AIX to pkgsrc. Tested with AIX 4.3 2003-12-03 17:57:33 +00:00
sketch
4324dba117 Missing terminating quote. 2003-12-03 17:49:33 +00:00
sketch
fed8dd643d Make sure programs compatible with pkgsrc are used, rather than relying
on the first in path.  Fixes possible issues with Solaris.
2003-12-03 17:13:02 +00:00
grant
da25d8ca48 conditionally set LIBTOOL and SHLIBTOOL, as proposed by Michal
Pasternak on tech-pkg.

[first commit after pkgsrc meltdown ;)]
2003-12-02 23:08:24 +00:00
hubertf
472520bfe8 Catch if the user given to "su" is bogus/non-existing, but if
the "cvs" command inside the su returns an error, that should be ignored.
(Aparently cvs returns "1" even if it's done a successful update but if
there were some files removed on purpose).
2003-11-28 22:46:48 +00:00
taya
192cab73c6 update directory structure of ftp.mozilla.org in MASTER_SITE_MOZILLA 2003-11-27 13:02:38 +00:00
jlam
29055be6b7 Do as buildlink2 and _append_ extra flags instead of prepending them.
Prepending caused everything in ${BUILDLINK_DIR} to be found first, which
was bad when you built something like MesaLib where the X11R6 headers
conflict with the ones provided in the source.
2003-11-26 12:52:30 +00:00
jlam
087d9e1669 If we're linking a shared library by "cc -shared -o /srcdir/shlib", we
need to protect the full path after "-o" from being transformed from
"/srcdir/shlib" to "-L/srcdir -lshlib".  This fixes building
graphics/freetype2, which uses lots of full paths to sources and objects.
2003-11-25 14:44:39 +00:00
jlam
35657e5e7f libtool.sh should also supply a definition for "$expr", used by the
buffer script.
2003-11-25 14:43:23 +00:00
jlam
8c6a703c0b Don't write conflicts into the binary packages unless they're "overwrite"
packages.  All pkgviews packages are safe to install into the same tree,
and we rely on more dynamic file collision detection through linkfarm(1)
rather than just using CONFLICTS.
2003-11-25 12:01:31 +00:00
jlam
c3a1661459 Support buildlink3. 2003-11-25 11:42:09 +00:00
jlam
b0727d41d2 Make the value of VIEWBASE available in more settings. 2003-11-23 07:31:18 +00:00
jlam
62fd86d085 In the overwrite package case:
* Ensure that VIEW-INSTALL is called after _all_ POST-INSTALL actions
     (including any in the INSTALL_EXTRA_TMPL file) by moving the call to
     a file that is included after all other INSTALL templates.

   * Ensure that VIEW-DEINSTALL is called before _all_ DEINSTALL actions
     (including any in the DEINSTALL_EXTRA_TMPL file) by moving the call to
     a file that is included before all other DEINSTALL templates.
2003-11-23 07:14:43 +00:00
jlam
546d3e35e4 Add some whitespace. 2003-11-23 07:03:07 +00:00
jlam
f2379fe5a0 Don't be fooled into thinking that the "-c" in "install -c" means to
interpret the libtool mode as "compile".
2003-11-23 06:06:02 +00:00
jlam
854f85f7f9 Add public variables EXTRACT_CMD_OPTS.{zip,lha,lhz,zoo} that may be set in
package Makefiles to customize the options passed to the extraction
commands when the defaults don't suffice.  Patch from Michal Pasternak with
additions by me.
2003-11-22 23:47:47 +00:00
jlam
9cc646256d Back out part of rev. 1.20: rc.d scripts aren't really view files. 2003-11-21 10:54:14 +00:00
jlam
9eaf96b23a Back out part of rev. 1.24: we don't need to add config files to the view
if only rc.d scripts are present.  rc.d scripts always live in ${PREFIX}
regardless of the setting for ${PKG_SYSCONFBASE}.
2003-11-21 10:32:25 +00:00
grant
ca400a8282 apache6 has no buildlink2.mk as it is handled automagically by
apache/buildlink2.mk, so include that instead.

makes this actually work with apache6.
2003-11-21 07:04:43 +00:00
grant
c78963b8b5 don't build HTML man pages. 2003-11-21 00:14:00 +00:00
cube
680b0aaaaa Forgot a \ to make line continue. Sorry for breakage. 2003-11-20 16:59:02 +00:00
cube
f02636860d When there is no distinfo file, do not apply patches we would not
normally apply: treat them as if the distinfo file was empty.

This solves the reason why pkgtools/pkg_install/distinfo was resurrected,
and allows us to remove it again, since it had the side effect of
introducing a dependency on digest, which is not acceptable when updating
pkg_install: it made it impossible to use the pkgsrc tree, as reported
by several people.
2003-11-20 15:07:53 +00:00
hubertf
8d6cbb6f70 Catch errors from pre-build, and abort if it's not 0. 2003-11-20 00:04:12 +00:00
hubertf
6c4ff55ea4 Catch error from su, and report it to the calling script (pkgsrc/mk/build) 2003-11-20 00:02:59 +00:00
agc
bfd8042a08 After some discussion, default BSDSRCDIR to /usr/src if it's not
already set in /etc/mk.conf, and default BSDXSRCDIR to /usr/xsrc if
it's not already set in /etc/mk.conf.
2003-11-12 17:24:38 +00:00
grant
6b5bf9ca71 backout previous, it is no longer needed. 2003-11-12 13:13:43 +00:00
agc
23ec0f4203 Add explanations (and commented-out defaults) for BSDSRCDIR and BSDXSRCDIR. 2003-11-11 14:32:06 +00:00
danw
0cb5c0e13f add LIBXAW to FIX_RPATH 2003-11-11 00:48:44 +00:00
dmcmahill
1971dd4108 add USE_TETEX2 configuration variable and modify dvipdfm to use this
to allow it to work with teTeX2 or teTeX instead of requiring only
teTeX (1).
2003-11-07 13:55:02 +00:00
wiz
4bb8270747 Depend on pkgtools-20030918 again; http support is not really a requirement. 2003-11-02 14:36:46 +00:00
grant
0623c2ac77 implement the change in rev. 1.1296 (which was backed out in rev.
1.1298) properly by using single quotes instead of double quotes
around the PKGNAME_REQD value, ensuring that the shell does not
interpret the > character as a redirect.

confirmed that no "=1.0.43" files are created on NetBSD and
Linux when a pre-requisite package has a wildcarded version
number eg. ">=1.0.43", and that the original problem is fixed.
2003-10-30 12:36:01 +00:00
wiz
30e14c5453 Bump PKGTOOLS_REQD to 20031003, per a suggestion from agc. 2003-10-30 10:32:45 +00:00
agc
162529e660 Revert the change in 1.1296 which was causing problems on NetBSD when
installing a pre-requisite package with a wildcarded (e.g. '>=1.0.43')
version number.  The problem manifested itself by creating a file
called '=1.0.43' in the pre-requisite package's directory, and a
coupld of "dc: stack empty" spurious messages appeared.

If this needs to be fixed by an OS-dependent variable, we'll address
that in the future.
2003-10-30 07:42:23 +00:00
grant
bedd85d206 don't build HTML man pages. 2003-10-26 00:07:31 +00:00
cube
c803330a12 Remove '-' from the version part of _GCC_IN_USE so that pkg_admin can deal
with the installed gcc when it has a localized version (such as our
gcc-3.3.2-nb1).
2003-10-24 12:07:14 +00:00
fredb
ce8785b76c The "elf" goes after "netbsd", the version number after that. 2003-10-23 18:11:49 +00:00
grant
64acec9a80 style/whitespace fixes 2003-10-19 07:46:50 +00:00
grant
81bb0f58da whitespace fixes 2003-10-19 07:43:24 +00:00
grant
491de176a8 more whitespace fixes 2003-10-19 07:38:31 +00:00
grant
2fc767f768 fix some cut'n'paste whitespace 2003-10-19 07:09:32 +00:00
grant
c24b8d44e6 tell imake not to build HTML man pages. 2003-10-19 06:54:17 +00:00
tron
ef247410ff Bump minimum required version of "x11-links" package. 2003-10-18 18:24:56 +00:00
agc
8a94a2a19b Fix PR 17883 by adding code to perform just-in-time su(1) functionality
for the bin-install target.
2003-10-18 12:29:26 +00:00
grant
29952c062d move the libstdc++ fake libtool archive stuff out of
!defined(COMPILER_MK) for now.

some packages include bsd.prefs.mk before defining USE_BUILDLINK2,
which resulted in the libstdc++ fake-la target being missed.

XXX the real fix is to include compiler.mk from both bsd.prefs.mk and
XXX bsd.pkg.mk, and have compiler.mk make the right decisions based on
XXX where it was included from.
2003-10-18 09:14:47 +00:00
grant
362aa4e7b9 properly quote the value of PKGNAME_REQD when calling ${MAKE} to
build a dependency so that the shell does not attempt to do
interpret the value of PKGNAME_REQD.

noticed on Linux building graphics/mplayer where the build of
audio/nas was broken because ${MAKE} was being called with
PKGNAME_REQD=nas>=1.4.2 instead of PKGNAME_REQD="nas>=1.4.2"
2003-10-18 05:23:48 +00:00
salo
e809a25d8c Set default for SILC_CLIENT_WITH_PERL here. 2003-10-16 12:36:29 +00:00
veego
4d271b3397 Update pkgtools/x11-links to 0.16.
Changes include supporting XFree86-4.3.99.14 aka XFree86-current.
Added some new library versions and some freetype2 include files.
And bump the required version number in the bsd.buildlink mk's.
2003-10-13 15:55:11 +00:00
jschauma
8c394acac4 Add a dot before the 'if' statement.
Pointed out by Bas van Oostveen in PR pkg/23141.
2003-10-13 00:23:49 +00:00
grant
30e601d197 fix logic error introduced in last, sync comments about CC_VERSION
with reality.
2003-10-12 03:05:37 +00:00
grant
1e6dc66ad0 use 'solaris2' instead of 'solaris' in MACHINE_GNU_PLATFORM to
fix breakage in some GNU configure scripts.

based on patch from Jonathan Perkin in PR pkg/20701.
2003-10-11 06:46:45 +00:00
grant
bd1a3a58f0 add a BUILD_DEPENDS on devel/patch if no suitable patch(1) is
available.

fixes my PR pkg/18380, with hints from jschauma.
2003-10-11 05:09:39 +00:00
grant
8031c4141d set CC_VERSION for non-gcc and use it in the BUILD_INFO file. 2003-10-11 03:43:14 +00:00
grant
beb87586be don't hardcode the -DHasGcc2... flags to imake, pass them only if
we're actually using gcc on Solaris.

fixes building of imake PIC code when the compiler is not gcc.
2003-10-11 02:44:17 +00:00
grant
93835fcfa7 find the right GREP and SED programs and use them. 2003-10-11 02:39:24 +00:00
hubertf
bba9c15fbd This patch addresses three problems:
1) When checking if any of the required binary pkgs is newer, it's
   not good to look into the (already existing) binary pkg, as that
   might be unchanged. Instead, look at the DEPENDS.

   In the context of the recent jpeg changes, the gd package itself was
   not changed, but the DEPENDS were (via buildlink files). Now looking
   into the existing gd binary pkg still said it wanted jpeg-6b instead
   of the now-wanted jpeg>=6b, which was only available via the DEPENDS.

   That's the first chunk of the patch below.

2) While debugging this, I found that the change in rev. 1.48 was
   wrong, as can be seen throughout the last bulk build, search for errors
   like:

	find: "/usr/cvs.local/pkgsrc/packages/i386/All/gd-2.0.15.tgz": No such file or directory

   As the whole operation is really on two files (as assured by "pkg_admin
   lsbest" for pkg and REFS by definition), the quotes can be ommitted.

   Why this wasn't caught when that change was tested is beyond me - maybe
   different sh(1) behaviour? (The error happened on 1.6.1_STABLE, see
   e.g. http://smaug.fh-regensburg.de/~feyrer/ftp/pub/NetBSD/pkgstat-i386/last/www/p5-Template-Toolkit/.broken.yui.html).

   Anyways, that's addressed in the second part of the patch below, too.

3) Use ${FIND} while there.
2003-10-10 21:45:55 +00:00
jschauma
dbf59fa554 Follow Dan Winships solution from the teTeX-bin package to check for
OS_VERSION >= 6.0 by using
${OS_VERSION:R} >= 6
2003-10-10 15:46:08 +00:00
jlam
9118eddb47 Change the way in which arguments are processed by the wrappers. We
know read the arguments by first placing them in a buffer and taking
the argument in the first non-empty buffer as the argument to process.
The buffer is there to allow "splitting" an argument into multiple
arguments (currently up to five arguments), e.g. "-Wl,-R/path1:/path2"
is split into "-Wl,-R/path1" and "-Wl,-R/path2".  Each split argument
is placed into a buffer.  Using a buffer lets us read and process all
of the arguments in a single pass despite "pushing" more arguments
onto the front of the argument array.
2003-10-09 12:15:15 +00:00
jlam
52539db8bd It's "skipargs", not "skip". 2003-10-09 08:19:47 +00:00