adrianp
37c62b92f5
If "/usr/gnu/bin/false" exists use that as a value of ${FALSE}. This is known
...
to exist at least on OpenSolaris. This makes the useradd scripts work
under OpenSolaris as it won't accept "false" as a ${SHELL}.
2008-09-11 23:00:31 +00:00
ahoka
ab988ad219
Prefer builtin echo, test/[, true/false.
...
State that we use pdksh on these platforms.
2008-08-10 15:17:25 +00:00
ahoka
032b180d23
UCB binaries were removed from OpenSolaris, so let's use builtin echo
...
as we use pdksh on this platform.
Also use /usr/bin/ginstall when it's present (it is on OpenSolaris)
for the same reason.
This problem was reported by Andras Barna.
2008-08-09 15:14:01 +00:00
dbj
a0fe06f193
set TOOLS_PLATFORM.ftp to /usr/bin/ftp
2008-07-21 17:34:19 +00:00
joerg
826dbe24c4
DragonFly normally has bsdtar in /usr/bin.
2008-05-25 21:40:59 +00:00
joerg
695e87e307
Add bsdtar to the tools list.
2008-05-25 16:55:32 +00:00
joerg
ca3497fe64
bootstrap packages has been registered for while now.
2008-05-25 16:27:05 +00:00
joerg
4a202fc0c8
Add ftp as tool. On NetBSD and DragonFly, this will use the system
...
version of tnftp, otherwise it will use net/tnftp. Require ftp as
bootstrap dependency when the package has files to fetch.
The dependency is currently unconditional and FETCH_CMD is set to
TOOLS_PATH.ftp by default.
2008-05-22 20:11:55 +00:00
tnn
a62afabe14
Check that /usr/bin/patch really exists, so that we can gracefully fall
...
back to depending on devel/patch.
2008-05-17 18:34:50 +00:00
jmmv
771c8ca8de
Reset PKG_CONFIG_PATH in the environment. Fixes misterious build problems
...
of packages when it is already defined by the user.
2008-04-20 19:32:31 +00:00
tron
fcc24b7e09
Require at least version 3.81 of "gmake". It has been in "pkgsrc" for
...
almost two years at some packages (e.g. "openjade") require at least
that version anyway.
2008-04-15 13:00:11 +00:00
tnn
b8203e8cef
Detect and use native bzip2(1) tool.
2008-04-04 15:49:18 +00:00
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
joerg
31f7ba18c8
Add xauth as tool.
2007-05-25 15:12:52 +00:00
obache
2bce931566
Recognize argment "-" as $pofile.
2007-05-10 15:42:29 +00:00
obache
6615c8e011
Change input file lookup behavior to close to gnu msgfmt's implementation.
...
* allow "-" (stdin)
* allow other than regurar file (should fix PR 36257).
* if doesn't exist, try to append extension ".po" and ".pot".
2007-05-07 09:31:05 +00:00
tnn
146da1286c
Teach pkgsrc about HP-UX.
2007-04-14 14:17:49 +00:00
hiramatsu
4eb0845915
OpenBSD xargs behaves like Linux xargs; add -r here too.
2007-04-13 06:56:20 +00:00
tnn
20595fdc5c
Add tool definitions for native printf, sleep and sed.
2007-04-11 13:12:15 +00:00
reed
86669ee97a
Check for /usr/bin/sleep. I have had this in my pkgsrc for a long time.
...
According to the Filesystem Hierarchy Standard for Linux, sleep
is not listed as a required command (or symlink) in /bin.
2007-03-17 00:14:50 +00:00
reed
5c58e8efc1
Check for /bin/bzcat. Noticed on Ubuntu Linux over a week ago.
...
(Could check for /bin/bzip2 also, but I didn't need that.)
2007-03-15 23:11:12 +00:00
rillig
66bf916302
For all those who are interested in the inner workings of pkgsrc, there
...
is a new target "show-all" that fits to the existing "debug",
"show-tools", "show-vars" targets. It prints a list of the variables
that make up the public interface to pkgsrc. Running this target is
especially useful if you want to do some things, you know that they must
have been implemented but you don't know what it is called. It also
shows the "class" of a variable (user-defined, package-defined,
system-defined).
2007-03-15 22:54:24 +00:00
rillig
bbd9ed673a
Backed out the latest change because of:
...
http://mail-index.netbsd.org/pkgsrc-changes/2007/02/28/0009.html
2007-03-05 23:35:59 +00:00
wiz
d0afd38d29
Deprecate unused BUILD_USES_GETTEXT_M4 variable.
2007-03-01 22:29:15 +00:00
rillig
8d8d67c7de
Too many packages fail in mysterious ways when they cannot find
...
pkg-config, which happens mostly after updating a package. Therefore, a
failing wrapper is installed for this tool.
2007-02-23 02:49:56 +00:00
joerg
87b9fe82ef
Someone decided to remove gtar without discussing this first, so keep
...
track of it here as well.
2007-02-07 19:25:33 +00:00
rpaulo
2146838c44
Some Linux distros have gawk and install in /bin.
2007-01-25 21:34:54 +00:00
joerg
68042f366f
Add xinit as tool.
2007-01-22 20:43:04 +00:00
joerg
e717686df8
Add modular Xorg support for iceauth and xmessage as tool, nuke
...
makepsres at the same time. The latter wasn't used in pkgsrc and
is related to DPS which is dead.
2007-01-16 21:45:38 +00:00
rillig
81f8e0d093
IRIX patch isn't usable.
2007-01-08 08:55:52 +00:00
rillig
ae20e87304
Added patch to the built-in IRIX tools. Without that definition, it is
...
impossible to do any work, since almost all packages have patches and
devel/patch has a broken configure script, which makes the build fail.
2007-01-08 06:54:34 +00:00
wiz
135550fe6d
Fix typo in comment.
2007-01-02 23:14:54 +00:00
joerg
1058b1cf14
Add font and imake tools for modular Xorg.
2007-01-02 11:37:18 +00:00
joerg
16d189a229
Skip gs as tool during build of print/ghostscript6.
2006-12-27 19:27:40 +00:00
joerg
e74c040a78
Use print/ghostscript as default now that it is newer than
...
print/ghostscript-gnu.
2006-12-27 19:22:18 +00:00
martti
e2610fb8c8
Remove trailing tabs.
2006-12-15 13:15:06 +00:00
martti
2cc4216d5e
Remove trailing spaces.
2006-12-15 12:46:23 +00:00
minskim
91a6959169
Darwin's bison is too old (1.28) to build some packages
...
(e.g. libgnomeprint). Comment out lines for the native bison
and note why.
2006-12-13 01:03:14 +00:00
minskim
e22aed1d47
Darwin has bison.
2006-12-12 23:44:25 +00:00
wiz
4233abc0c6
Recognize aclocal-1.10 and automake-1.10.
2006-12-05 22:48:31 +00:00
minskim
8890146bed
Use /usr/bin/unzip as unzip on Darwin.
2006-12-02 05:30:35 +00:00
tv
4c76203391
Use the shell "test" builtin. Not only is it faster, but /bin/test is
...
wrong about some of its results when using implied privileges (e.g., an
account in group Administrators where the directory is writable by Users).
2006-11-06 19:18:42 +00:00
joerg
d2a1a112b6
Add mkfontscale.
2006-11-03 19:08:58 +00:00
rillig
b2a0c1a528
If /usr/bin/printf exists, it will be used.
2006-10-17 06:13:51 +00:00
rillig
2c946c4599
Added /usr/bin/printf.
2006-10-17 06:08:31 +00:00
rillig
48fdab7bb3
Use /usr/bin/printf if it exists.
2006-10-17 06:06:14 +00:00
minskim
3cc5058c86
Teach how to unpack .gem files.
2006-10-15 01:56:06 +00:00
minskim
980fbcd313
Darwin has gm4 and printf.
2006-10-15 01:31:23 +00:00
joerg
3675902ba1
Remove XFree86.
2006-09-27 15:18:12 +00:00
obache
1874782916
Now, gettext tools is available from devel/gettext-tools, so prioritize
...
gettext-tools over gettext.
2006-09-15 14:18:41 +00:00
minskim
6220854e14
Make sure that /usr/bin/wish exists before using it as a tool.
2006-08-25 10:03:02 +00:00