Commit graph

424 commits

Author SHA1 Message Date
tnn
a8cb923909 Revert previous, /bin/ksh appears to be even worse than /bin/sh.
(Need to consider installing a sane shell as part of bootstrap.)
2008-03-11 17:50:14 +00:00
tnn
672f077f7a Use /bin/ksh instead of /bin/sh on HPUX.
/bin/sh, the "POSIX.2 compliant" shell, is FUBAR:
$ echo {a,b}
a b
2008-03-11 17:01:07 +00:00
tnn
24f697ae48 Make chrpath(1) a tool. Intended scope is fixing up some Linux emulation
packages without having to do the LD_LIBRARY_PATH dance.
2008-02-29 00:23:09 +00:00
epg
b9daf18e55 Look for mktemp in /bin, too, where Debian systems keep it. 2008-02-19 03:03:08 +00:00
tron
f895dbe21c Don't use the bundled GNU Make on Mac OS X version older than Leopard.
Some packages (e.g. "openjade") require GNU Make 3.81 which is not
included in older versions of Mac OS X.
2008-02-13 23:09:24 +00:00
tnn
4636e6feaf Fix a recently introduced logic error. PR pkg/37998 from Stuart Shelton. 2008-02-13 18:33:39 +00:00
rillig
a10d392b19 Whenever a tool from TOOLS_FAIL is executed, print a useful error
message. This is much better than failing silently.
2008-02-13 09:11:01 +00:00
tnn
45f396330c Same as previous, but the line above. (Sigh) 2008-02-07 17:01:02 +00:00
tnn
9a5fda0288 Oops, make sure the variable is defined before testing it's value. 2008-02-07 16:53:14 +00:00
tnn
677ba266b7 Fix busted groff handling on SunOS.
Also, change the logic so that the construct:
USE_TOOLS+=     groff nroff
means:
"iff groff is to be provided by textproc/groff, then nroff is
also to be provided by textproc/groff".
This provides a sane mechanism to express need for GNU nroff.
This is part one of fixing packages that set USE_BSD_MAKEFILE=yes
on SunOS. (bsd.man.mk needs an nroff that understands -mandoc)
2008-02-07 12:10:36 +00:00
tnn
51ea1914a1 remove makedepend hack 2008-01-14 08:03:47 +00:00
rillig
d3624fdf10 Made the .include directives simpler, since the directory of the
including file is always the first in the search path.
2008-01-04 01:46:24 +00:00
markd
4767fe7dc4 Doing USE_TOOLS+=cmake in the configure stage is too late so move it
to tools.  Also cmake wants cpack to exist in the same directory so
toolise it and make cmake and cpack imply each other.
2007-12-18 10:18:39 +00:00
markd
ec09af76f0 Add support for cmake as a tool (USE_TOOLS+=cmake) and for using it in
the configure stage of a build (by setting USE_CMAKE=yes).
2007-12-12 01:00:38 +00:00
tron
c0a2ce4a12 Modern versions of Solaris include "/bin/bash". 2007-11-28 07:45:50 +00:00
tron
6c41167104 Define "TOOLS_PLATFORM.flex" to "/usr/bin/flex" not "/usr/bin/lex".
The later is shell script which tries to execute "<current-dir>/flex"
under Mac OS X Leopard. This resulted in an endless loop caused by
the buildlink wrappers.

This is backward compatible with at least Mac OS X Tiger where
"/usr/bin/lex" and "/usr/bin/flex" are identical.
2007-11-26 16:19:08 +00:00
tron
8947480a20 Don't try to use "/usr/bin/perl" as a tool under Darwin.
This breaks packages (e.g. "gimp") which need Perl with a certain module
that is only provided by "pkgsrc" as a build tool.
2007-11-22 16:39:47 +00:00
minskim
3a7155e12a Generalize the condition for defining PERL5, so that PERL5 is never
overridden if it is defined by individual packages.
2007-11-19 04:08:58 +00:00
minskim
4d09ed8f21 Do not define PERL5 as a tool when building devel/perl5, which defines
its own PERL5 in Makefile.
2007-11-19 00:40:14 +00:00
minskim
9826939622 Use native perl as a tool on Darwin. 2007-11-16 05:51:37 +00:00
joerg
952c9705db Allow both gzip and gzip-base to provide gzip. 2007-11-08 19:31:40 +00:00
rillig
b8d6f5ddcb Outside of .for loops, there is no _t_ variable. Hi joerg. 2007-09-30 12:22:44 +00:00
rillig
ad95b81717 Fixed indentation. 2007-09-30 12:19:11 +00:00
hira
a67f295a78 Fix a comment (gnome-vfs2 -> gnome-vfs). 2007-09-25 10:32:17 +00:00
rillig
6780484224 Reverted the last change. Apparently, it was committed without testing
it first.
2007-09-10 07:25:14 +00:00
rillig
ce0b07c80b Why should we write the same code over and over again? We shouldn't. 2007-09-10 07:00:37 +00:00
rillig
5b5f343c3c Added information about imake-specific variables. 2007-09-10 06:36:25 +00:00
joerg
ca11c32744 Newer AIX has bzip2 and bzcat pre-installed. 2007-08-30 21:29:21 +00:00
joerg
4e5efdff41 Add readelf as tool, for only only the BSDs get it. 2007-08-20 11:00:33 +00:00
joerg
e09f68cb6b Remove infrastructure side of Xorg 6.9 support. Begin to simplify
some of the cases of X11_TYPE usage -- it will stay with modular|native,
so don't bother with keeping the separation in the tool list.
2007-08-17 20:27:30 +00:00
joerg
56b7b61664 A number of packages implicitly assume that ar runs the right ranlib,
so override it as well for DESTDIR.
2007-08-16 03:09:38 +00:00
joerg
f3e91441c9 Create ranlib override for cross-compilation as libtool doesn't
use the target version.

If we ever want to create archives for the native platform,
NATIVE_RANLIB similiar to NATIVE_CC should be introduced.
2007-08-15 13:24:14 +00:00
jlam
aca2d9fb93 rpm2pkg is actually in ${PREFIX}/sbin. 2007-08-13 02:30:04 +00:00
jlam
605292a86d Give rpm2pkg a standard variable name "RPM2PKG" and teach GNU configure
scripts about "cat".
2007-08-10 03:46:10 +00:00
tnn
b2607abab8 /usr/bin/file on OSF1 is somewhat broken in that it reports the path
of the interpreter as the filetype when a file starts with #!
This unfortunately breaks SUBST handling. For now, use a dummy that
claims that every file is a text file.
2007-08-05 12:38:22 +00:00
joerg
005620851f Add core of the infrastructure support for cross-compilation.
- USE_CROSS_COMPILATION activates it, CROSS_DESTDIR specifies root of
  the target filesystem
- derive _CROSS_DESTDIR from CROSS_DESTDIR or MAKEOBJDIR
- buildlink3.mk prefixes the files to symlink with _CROSS_DESTDIR
- compiler/gcc.mk knows about the target prefix (e.g. i386--netbsdelf)
- PKG_DBDIR is prefixed with _CROSS_DESTDIR
- package-install and bin-install are not called with su
- install and strip are redirected to the tool version
- links for the target specific ar, as, ld, nm, objdump, ranlib and
  strip are added
- compiler wrapper detect if linking is requested or not
- special command sinks for CPP and CC/CXX add the cross-compile magic:
  - modify include dirs to get the target /usr/include
  - modify linker dirs and runpath to use target /usr/lib at link time,
    but keep correct rpath entries

Supported-by: Google SoC 2007
Basic tests by he@ on Sparc. Review from jlam@.
2007-08-02 18:19:31 +00:00
jlam
3629e30a61 Teach the extract module to extract RPMs with rpm2pkg. 2007-07-31 17:42:40 +00:00
joerg
d670e0be94 Also use the shell builtin for [. Add comment for test and [ about that. 2007-07-28 01:21:15 +00:00
joerg
6d2a995e3d Always use the test builtin... 2007-07-28 01:19:07 +00:00
tnn
2861fd6198 Add makedepend as a platform tool in case of native X11, due to it's
residing outside of X11BASE.
2007-07-18 09:18:57 +00:00
joerg
7525aa54e2 Don't special case mtree as tool. 2007-07-02 14:56:10 +00:00
joerg
a83b9335ce OpenBSD is "special" as it doesn't have bzip2. 2007-06-25 10:53:21 +00:00
joerg
0c29048a15 Create IDENT variable by default. 2007-06-19 17:01:31 +00:00
joerg
93bf771184 Add bzip2 as tool. All platforms that had code to deal with bzcat
also get bzip2, the rest falls back to archivers/bzip2.

OK jlam.
2007-06-19 17:01:12 +00:00
joerg
f4ecc6bd31 Add ident as tool and use /usr/bin/ident on those platforms I know to
have it. Fallback to devel/rcs otherwise.

Commited during freeze as it is a dependency of pbulk.
2007-06-19 14:21:18 +00:00
joerg
e3fe1108f0 Add msgconv to the gettext tools. 2007-06-15 17:11:33 +00:00
joerg
78dc1b95c3 gettext-tools was split off with version 0.14.5 of gettext,
so use either a newer version of the former or an older version
of the latter.
2007-06-13 14:21:47 +00:00
dmcmahill
98fa60beec Test to see if a variable is defined before testing for its value. Keeps
make happy on my older (netbsd-2) NetBSD box.
2007-05-29 03:00:44 +00:00
jlam
5c4627887a Define a TOOLS_ENV variable that holds a shell environment that may be
passed to the configure or build phases.  This variable holds a slightly
different value depending on whether GNU_CONFIGURE is defined or not --
in the former case, the value is tuned for passing the GNU configure
script.

Automatically pass TOOLS_ENV to GNU configure scripts, so there is no
user-visible change.
2007-05-27 02:11:13 +00:00
jlam
510984a0d6 Move the .if test out of the .for loop because the test condition doesn't
change within the .for loop.
2007-05-27 01:44:42 +00:00