Commit graph

25 commits

Author SHA1 Message Date
schmonz
63ce60909f Introduce CPP_PRECOMP_FLAGS, defaulting to "-no-cpp-precomp" on
Darwin (meaning "don't use the OS X cpp that groks precompiled
headers", which gets us the more compatible GNU cpp instead), and
blank on other systems.

Approved by agc and yyamano.
2002-06-02 00:40:18 +00:00
jlam
d3dec729ba Move definition of PERL5 from bsd.pkg.mk into defs.*.mk. This is something
that is used regardless of whether perl is installed or not, and we
sometimes want its value before include bsd.pkg.mk.
2002-04-09 22:15:40 +00:00
lukem
35dc87e356 make _PATCH_BACKUP_ARG be more useful to callers by moving "-V simple"
definition to be part of it instead of appending to PATCH_ARGS.
otherwise, $VERSION_CONTROL or $PATCH_VERSION_CONTROL would still
override -b/-z.
2002-03-14 02:28:22 +00:00
yyamano
9163c67246 Add _STRIPFLAG_CC and _STRIPFLAG_INSTALL to fix PR 15467.
I'll replace all STRIPFLAG in pkgsrc with STRIPFLAG_CC or STRIPFLAG_INSTALL.
2002-02-27 04:41:22 +00:00
dmcmahill
a18a640ca8 For NetBSD/alpha versions >= 1.5V add -mieee to both CFLAGS and FFLAGS.
This will pass -mieee to those package which obey CFLAGS and FFLAGS.

paraphrasing an email from Ross:

The executive summary is: if i386 uses it (and
it does) then alpha should also, or some programs will SIGFPE out
on alpha when they don't on i386.

If anyone asks, the details are as follows:

The actual effect of -mieee is to put a software completion code
bit into every floating point instruction, and to put trap barrier
instructions in the code as necessary to ensure that traps are
delivered before branches or other instructions make it impossible
to trace backwards to the trapping op.

The code bits have little effect on the hardware, mainly what
happens is that when the hardware and palcode deliver a trap, they
tell the trap handler whether the faulting op had a completion
code.  If it did, the kernel is suppose to trace backwards, find
the op, and interpret it in SW, doing all the wacky ieee stuff that
most chips don't do, stuff like denormal arithmetic and the generation
of magic values (infinity, NaN) and the sticky flags.  We do all
that now except for a couple of truly obscure things that SoftFloat
didn't support and which I haven't yet added. (And these are things
that happen ONLY when you are taking overflow and underflow traps,
which no one has every really done AFAICT. If you have the default
behavior of gradual underflow and nontrapping infinity generation,
we do everything.)

This brings up the question of -mieee libraries, but that's not a
pkgsrc problem. (Except to the extent that I recommend that libraries
from pkgsrc, like everything else, also be compiled with -mieee.
And in the case of libraries, it might be worth individually
modifying the Makefile for the "not easy" case.)
2002-01-24 14:58:07 +00:00
agc
22bb6a588b Add coarse-grained locking to pkgsrc builds, by means of a beefed
up version of the bare-bones code in PR 7590, from David Maxwell.

The definition governing the type of locking used is PKGSRC_LOCKTYPE,
which can take any of the values "none", "sleep", and "once".  The
default is "none".  If "sleep" locking is used, and process A is
building a package, when process B attempts to build the same package,
process B will sleep for PKGSRC_SLEEPSECS seconds, and attempt to grab
the lock again.

Coarse-grained locking uses the OBJHOSTNAME definition to ensure that
the PID space is regular for shlock(1) to do its work.  The
pkgsrc/pkgtools/shlock package has been provided for environments
where shlock is not standard.
2002-01-19 21:29:41 +00:00
agc
f42759a800 Add a new _OPSYS_HAS_GMAKE definition, to denote that the OS has GNU make
as standard.

Hoist the default definition of ${GMAKE} from bsd.pkg.mk into the different
defs.${OPSYS}.mk files.

A non-standard location or name for GMAKE can still be specified in
/etc/mk.conf.
2001-12-19 10:29:11 +00:00
agc
6dde5fcc79 Move some operating-system specific definitions to the individual
defs.${OPSYS}.mk files.
2001-11-21 14:10:06 +00:00
agc
beda0b43f8 Add an _OPSYS_HAS_OSSAUDIO definition to the individual defs.${OPSYS}.mk
files, and use it in ossaudio.buildlink.mk. The definition shows whether
or not libossaudio is available in the OS.
2001-11-21 13:57:31 +00:00
agc
1b690b5a38 Move MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT definitions into the
individual defs.${OPSYS}.mk files. No change in functionality.
2001-11-21 13:54:14 +00:00
agc
89257b87f1 Add _OPSYS_HAS_MANZ and _PREFORMATTED_MAN_DIR definitions to the
individual defs.${OPSYS}.mk files, and use them in bsd.pkg.mk.

+ _OPSYS_HAS_MANZ defines whether or not the OS does MANZ handling as standard

+ _PREFORMATTED_MAN_DIR is the name of directory (cat or man) where
preformatted manual pages go.

Rename the internal definitions used in the generation of PLIST files to
start with '_'.

This completes the "generic" changes to bsd.pkg.mk.
2001-11-21 13:44:44 +00:00
agc
03c35761df Add a _DO_SHLIB_CHECKS definition to the individual defs.${OPSYS}.mk
files, and use it in bsd.pkg.mk.  This definition controls the fixup
of PLISTs at installation time, and running of ldconfig if necessary.
2001-11-21 13:17:14 +00:00
agc
715864dc96 Add a _PATCH_BACKUP_ARG definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition is the switch to patch(1) to
provide backup files when patching.
2001-11-21 13:09:08 +00:00
agc
b9a41cdc6b Add a _USE_RPATH definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition says whether or not the rpath
is to be added to the LDFLAGS definition.
2001-11-21 13:02:52 +00:00
agc
e3865c8037 Add a _DO_LIBINTL_CHECKS definition to the individual defs,${OPSYS}.mk
files, and use it in bsd.pkg.mk. If set to "yes", checks that a valid
libintl library and header file should be performed.
2001-11-21 12:58:15 +00:00
agc
69788c2093 Add a definition of _IMAKE_MAKE to the individual defs.${OPSYS}.mk
files, defined to be the make program which is invoked by imake, and
use it accordingly in bsd.pkg.mk
2001-11-21 12:53:04 +00:00
agc
bac7e8965b Move default umask for operating systems into the individual defs.${OPSYS}.mk
files, rather than switching by ${OPSYS} within bsd.pkg.mk.
2001-11-21 12:42:23 +00:00
jlam
950ae6dee2 We should only depend on sysutils/user in the !exists(/usr/sbin/user) case. 2001-11-20 16:53:44 +00:00
jlam
1024a4d42b Add definitions for ROOT_USER and ROOT_GROUP that are the symbolic names of
the root user and root group.
2001-11-20 16:19:20 +00:00
jlam
014a83ae0f Add definitions for USERADD and GROUPADD, used to create new users and
groups.  These commands follow the basic interface of the NetBSD/Solaris
useradd and groupadd programs.  For platforms on which these commands don't
exist, either sysutils/user is added as a dependency, or these are set to
${FALSE}, and the package admin is responsible for creating them himself
prior to the installation of a package.
2001-11-19 16:17:51 +00:00
jlam
c18e4e27f6 Rename "FILE" to "FILE_CMD" since ".for FILE" is a common idiom in BSD
makefiles, and this interferes with the conditional definition of FILE
in defs.*.mk.
2001-07-15 12:40:03 +00:00
jlam
d3bc280f55 Add definitions for CMP pointing to cmp utility and use it in bsd.pkg.mk. 2001-07-13 06:16:02 +00:00
jlam
20f4a41c3d Add DIRNAME, first part of patch from pkg/13236 by Stoned Elipot
<Stoned.Elipot@script.jussieu.fr>.
2001-06-18 19:58:55 +00:00
jlam
06b0937eb4 Add SORT and WC. Linux and Solaris ones might not be right...someone in
the know should check the pathnames.
2001-06-12 13:16:09 +00:00
jlam
28c0882df0 Migrate some OS-specific variable definitions into OS-specific files.
Include it in bsd.prefs.mk to allow their use much earlier in Makefiles,
and try to use the variable references instead of directly invoking the
programs in bsd.prefs.mk and bsd.pkg.mk where possible.
2001-06-12 12:49:55 +00:00