Commit graph

107 commits

Author SHA1 Message Date
tv
4a0b32f36f Implement some parts of proposals posted to tech-pkg:
- Define OS_VERSION in bsd.prefs.mk (...if not already defined).  Previously
  was only set in a conditional block in bsd.pkg.mk.

- Define new values, MACHINE_PLATFORM and MACHINE_GNU_PLATFORM, which
  default to ${OPSYS}-${OS_VERSION}-${MACHINE_ARCH} and
  ${LOWER_OPSYS}-${LOWER_VENDOR}-${LOWER_ARCH} respectively.
  (Probably should nuke LOWER_ARCH and rename LOWER_VENDOR to something
  like MACHINE_GNU_VENDOR.)

- Use ${MACHINE_GNU_PLATFORM} as the argument to `--host' in GNU_CONFIGURE
  packages.

- Allow for ONLY_FOR_PLATFORM and NOT_FOR_PLATFORM, lists of patterns
  in csh(1) glob style which are matched against MACHINE_PLATFORM above
  and take the place of {ONLY,NOT}_FOR_{ARCHS,OPSYS}.  (For now, until
  all pkgs are converted, provide backwards compatibility.)  *Both* may
  be defined, in which case NOT_FOR_PLATFORM takes precedence.

- Also do some significant aesthetic cleanup, based on the idea
  `define platform-specific overrides first, then define a generic case
  with the ?= operator'.  Lots more of this to do yet.
1999-05-24 18:42:00 +00:00
tv
638518781f Explicitly include <sys.mk> after mk.conf. This ensures that standard
flags (e.g. CFLAGS=-O/-O2) are defined as necessary before a pkg modifies
them with "+=".
1999-05-24 11:17:05 +00:00
tv
6e915e0f3f - Move the inclusion of bsd.own.mk to bsd.prefs.mk, and multiple-include
protect bsd.prefs.mk.  Now there's no multiple inclusion of mk.conf,
  clobbering variables modified between bsd.prefs.mk and bsd.pkg.mk, when
  set with VARNAME=value.
- Let bsd.own.mk include mk.conf/MAKECONF; we don't need to do that
  manually.
- Don't define BSD_PKG_MK or OPSYS in bsd.pkg.mk, as bsd.prefs.mk does
  precisely that just a couple lines below.
1999-05-23 22:10:01 +00:00
hubertf
273e4f158f Add BSD_PKG_MK=1 to bsd.prefs.mk, and clarify it's usage (comment) a bit,
pointed out by Alistair Crooks and Johnny Lam.
1998-11-26 23:39:15 +00:00
tv
92f6763b81 Don't barf if the environment sets PREFIX (just ignore it). Needed for
recursive makes.
1998-08-19 16:23:40 +00:00
tv
985a1a266c - Introduce CROSSBASE and a USE_CROSSBASE option, for use with pkgs from
the "cross" subdirectory.  Defaults to ${LOCALBASE}/cross.
- PREFIX is not user settable.  Do not conditionally set it such that
  environment variables and mk.conf can override it.  Issue an error if
  PREFIX is attempted to be set from mk.conf, environment, or command line.
1998-08-11 19:30:48 +00:00
agc
a108306300 Consolidate all the logic for inclusion of MAKECONF, and /etc/mk.conf,
into one file, located in the pkgsrc tree.  Thus one file simply needs
to be included before any .if* statements in the package Makefile,
rather than a large number of ad-hoc methods of doing this.
1998-06-03 11:15:29 +00:00