Commit graph

80 commits

Author SHA1 Message Date
jlam
ca70938428 Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG,
which are the full option names used to set rpath directives for the
linker and the compiler, respectively.  In places were we are invoking
the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is
inserted in case the flag is a word, e.g. -rpath.  The default values
of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the
compiler that you use.  They may be overridden on a ${OPSYS}-specific
basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG,
respectively.  Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
2004-08-27 06:29:06 +00:00
schmonz
3a5a08cd7f For ROOT_CMD, use full path to sudo and ${SH} instead of "sh". 2004-08-14 19:35:39 +00:00
schmonz
56d76ec38e If we need to create users or group, require the latest sysutils/user_darwin. 2004-08-01 18:24:20 +00:00
kristerw
94d68468ae Remove Motif 1.2 functionality. 2004-06-18 11:22:41 +00:00
jschauma
4f098b48ff Use a cleaner approach for previous:
- set RSH on an opsys-specific basis, defaulting to /usr/bin/rsh
  (XXX: please confirm/verify this on your OS)
- set SSH_RSHPATH to RSH in bsd.pkg.defaults.mk
2004-05-31 16:47:00 +00:00
jschauma
e967e4dc7d Mention how SETGIDGAME and the other GAME vars are set per default.
Add commented-out definitions for all OPSYS - please adjust.
2004-05-12 14:10:18 +00:00
adam
f8281e3318 Use system maximum command line length 2004-05-06 06:32:22 +00:00
danw
04e1556286 /usr/bin/cpp on darwin is a wrapper script that forces the
-traditional flag; you need to use "gcc -E" to get sane behavior.
Override sys.mk's definition of CPP in defs.Darwin.mk, and don't
re-override CPP in gcc.mk if ${OPSYS} == Darwin.
2004-05-04 00:11:23 +00:00
tv
15fa28b6da Do the same USE_USERADD/USE_GROUPADD fix as done for Interix: use the
construct "DEPENDS+=${USE_USERADD:D${_USER_DEPENDS}}" to ensure that the
conditional is not expanded until after USE_*ADD is actually defined.
2004-04-27 13:43:05 +00:00
jmmv
316296c980 Add the 'maximum command line check' to all defs.*.mk files for consistency
across all of them, but let it commented out until each responsible person
for each system modifies it to work correctly.  Requested by agc@.
2004-04-19 20:19:46 +00:00
heinz
2c29b0548d Remove redundant assignments of PKG_TOOLS_BIN. PKG_TOOLS_BIN is
${LOCALBASE}/sbin on Linux, Darwin and IRIX.
2004-04-13 22:04:15 +00:00
tv
61606d9102 Convert "${ECHO} -n" to "${ECHO_N}", and introduce that into the defs.*
files.  On most platforms this resolves back to "${ECHO} -n".
2004-04-07 14:26:50 +00:00
danw
cf372a5533 add USERADD/GROUPADD support via sysutils/user_darwin 2004-04-01 03:04:13 +00:00
danw
e727f928de require libtool 1.5.2nb5 (fix for packages that try (and fail) to statically
link things)
2004-03-12 16:02:33 +00:00
agc
530d286b24 Get rid of all occurrences of cpp-like tests for ${OPSYS} in
bsd.pkg.mk, and use the abstracted means of determining generic shared
lib type per operating system.
2004-03-11 22:57:22 +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
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
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
grant
c78963b8b5 don't build HTML man pages. 2003-11-21 00:14:00 +00:00
grant
2fc767f768 fix some cut'n'paste whitespace 2003-10-19 07:09:32 +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
grant
cc5e29a43e require libtool nb16 on Darwin for latest library name fix. 2003-10-05 08:20:44 +00:00
danw
e8c72c625e update required libtool to revision nb15 2003-09-25 02:13:15 +00:00
grant
9b40299c51 add a TAR definition for a suitable tar implementation, not
necessarily GNU tar.

XXX GTAR should probably always point to real GNU tar later.
2003-09-23 07:26:22 +00:00
danw
7fa2565590 -lpthread is a no-op on Darwin, but it messes up buildlink. So add a new
flag _OPSYS_PTHREAD_AUTO ("yes" for Darwin, "no" for everyone else) and
make pthread.buildlink2.mk do basically nothing in that case.
2003-09-14 16:30:34 +00:00
martti
58159d04f2 Use LOCALBASE instead of ZOULARISBASE 2003-09-05 13:54:13 +00:00
jlam
841b57441b Merge pkgviews-mk branch into the HEAD by running:
cd pkgsrc/mk
	cvs update -Pd -A
	cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-09-02 06:59:37 +00:00
jlam
9fbdc941fe Create a symlink from the "make" requested by the package into
${TOOLS_DIR}/bin/make.  If a package wants GNU make, then it should
set:
	USE_GNU_TOOLS+=	make

in the package Makefile.  Allow for USE_GMAKE to continue to work
until we get a chance to sweep through pkgsrc and remove the usage
of this now-redundant variable.

This change allows us to avoid patching makefiles that use a bare
"make" command to invoke sub-make processes.  Idea suggested by
salo@netbsd.org in pkg/22509.
2003-08-26 20:15:23 +00:00
grant
1e09b95da1 add LDD, from Julien T. Letessier in PR pkg/22492. 2003-08-23 09:07:07 +00:00
grant
3f620389b6 add OPSYS_{,NO_}WHOLE_ARCHIVE_FLAG which defines the argument passed
to the linker to (not) extract all symbols from static archives and
export these variables to packages as {,NO_}WHOLE_ARCHIVE_FLAG.

these are not currently set for IRIX.
2003-04-15 05:29:45 +00:00
thorpej
40341eff88 Make sure _OPSYS_RPATH_NAME has a value (even if a bogus one) so that
the FIX_RPATH magic works.

Fix suggested by Tim Preston.
2003-04-01 16:48:20 +00:00
seb
89dce5e7f1 Move M4 default definition into the defs.$OPSYS.mk files: unconditionally
set it to /usr/bin/m4 for everyone, at least for now.
2003-03-04 14:50:09 +00:00
jschauma
5f58e72933 Add definitions for HOSTNAME_CMD, so that just-in-time-su doesn't fail
on Irix.  Noted and suggested by Pavel Cahyna in a private email.
2003-02-28 03:41:39 +00:00
grant
3b94220111 prefer PREFIX/bin/pax if it exists. 2003-02-26 03:02:59 +00:00
jschauma
cfa6436dde When using imake, add a bunch of variables to the PLIST_SUBST list, in
order to simplify man-page handling across platforms:
If your application installs man pages on NetBSD into
man/cat1/foo.0
but in
man/man1/foo.1x
on Linux, simply use
${IMAKE_MAN_DIR}/foo.${IMAKE_MANNEWSUFFIX}

Definitions for Darwin provided by grant, others from
/usr/X11R6/lib/X11/config/*

This allows us to put away with having multiple PLISTs just for the different
man page locations.

PKGREVISION bumps of `grep -l USE_IMAKE pkgsrc/*/*/Makefile` coming up after
revision and adjusting.
2003-02-24 19:49:47 +00:00
grant
da30fb13f6 require at least libtool 1.4.20010614nb12 on Darwin. 2003-01-21 22:48:57 +00:00
jlam
63029a767b Make BUILD_DIR always point to a physical path by invoking /bin/pwd instead
of relying on the shell's builtin pwd.  This makes BUILD_DIR consistently
point to the correct directory regardless of the definition of SHELL.  This
fixes elusive some buildlink2 errors due to the fact that BUILDLINK_DIR is
derived from BUILD_DIR and some paths were incorrectly being translated.
2003-01-15 20:55:38 +00:00
jlam
1abdd450fe Install a ${PREFIX}/bin/shlibtool as part of the devel/libtool-base
package.  shlibtool will not build static libraries.  Add handling in
bsd.pkg.mk for a variable named "SHLIBTOOL_OVERRIDE" that is analogous to
LIBTOOL_OVERRIDE and causes any listed libtool scripts to be replaced with
a symlink to shlibtool, and teach buildlink2 about shlibtool.  Bump
PKGREVISION of devel/libtool* packages to 11.
2003-01-10 08:44:18 +00:00
schmonz
e1c77ef496 Introduce _OPSYS_HAS_INET6, and use it to determine the default
value of USE_INET6.
2002-12-18 06:18:14 +00:00
salo
4e528fa8a9 Add TEE and TSORT (required for bulk builds). 2002-12-16 09:18:56 +00:00
schmonz
5279b8c64b Add DATE, FGREP, NICE. 2002-12-16 05:07:21 +00:00
agc
3c7775dbdd Eliminate another usage of ${OPSYS} in bsd.pkg.mk - realy on Darwin
defining _OPSYS_PERL_REQD to the correct value to make sure there's
a valid perl version for that platform.
2002-12-03 21:13:37 +00:00
agc
c4b7d25c61 Add a layer of abstraction into bsd.pkg.mk for Java settings - set the
path to the java home directory depending upon whether the operating
system includes Java by default. Use the operating system-dependent
definitions files to set this value.
2002-12-03 20:53:39 +00:00
agc
1418b13a80 Use ${_PATCH_CAN_BACKUP} rather than hardcoding an OPSYS value into
the logic for doing backups when applying patches, and set the value
accordingly in the opsys-dependent defs file.
2002-12-03 19:24:26 +00:00
agc
642c8c8176 Use a more generic way of determining, on an opsys-dependent basis,
whether the gettext package should be used.
2002-12-03 19:17:33 +00:00
agc
7dc9a2b816 Handle the different rpath directive to the linker for Irix in a different,
more generic, way - use an abstraction called ${_OPSYS_RPATH_NAME} which
takes the value "-rpath," or "-R", set appropriately in the opsys-dependent
defs files.
2002-12-03 19:11:30 +00:00
agc
46e9326213 Abstract out the base value of libtool required into _OPSYS_LIBTOOL_REQD,
and use that rather than a hardcoded ${OPSYS} default in bsd.pkg.mk
2002-12-03 18:57:52 +00:00
schmonz
84c5f0a066 Darwin doesn't yet have a working equivalent to sysutils/user
because I'm a slacker. Take a months-old hint from Johnny in PR
16628 and set PKG_CREATE_USERGROUP to NO in the meantime.
2002-11-23 04:43:05 +00:00
wiz
b56fb57bf8 Remove USE_LIBINTL and _DO_LIBINTL_CHECKS, which have been replaced
by devel/gettext-lib/buildlink2.mk.
2002-10-23 12:21:29 +00:00