Commit graph

339 commits

Author SHA1 Message Date
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
tron
e23961c250 Define "HAVE_OPENWINDOWS" if we are using OpenWindows as X11 distribution
under Solaris.
2001-06-08 21:21:05 +00:00
tron
2785edcf1b Set "X11BASE" much earlier under Solaris to get "USE_MESA" and "USE_XPM"
working if "X11BASE" is not set by the user.
2001-06-07 15:17:08 +00:00
abs
41ed126f87 Default LOCALBASE to /usr/pkg, and override to /usr/local in Solaris case.
No change in NetBSD case, switches to /usr/pkg in Linux case.
2001-05-17 15:08:17 +00:00
abs
d579f1ad6f In the Linux case, if MACHINE_ARCH is unknown set it to LOWER_ARCH (it does
seem a little backwards).
2001-05-17 15:00:26 +00:00
jlam
981957ed83 Fix a typo: a = sign should actually be !=. The CHECK_FREETYPE2 stuff
should actually work now on non-XFree86-4.0.x systems.
2001-05-02 04:53:11 +00:00
jlam
14c029bbc6 Handle freetype2 package like the MesaLib package as it is bundled with
XFree86-4.0.x.  Missed committing this file along with the related changes
to graphics/freetype/Makefile and mk/bsd.pkg.mk.
2001-04-22 04:52:31 +00:00
hubertf
58c237d9a9 Invent ZOULARISBASE, defaulting to $LOCALBASE/bsd, to make it possible
to setup Zoularis (or similar :-) environments to be closer to hier(7).
2001-04-08 14:14:11 +00:00
tron
019408d663 Fix typo in last commit. 2001-03-24 21:06:52 +00:00
tron
31e46b2da8 Only enforce the use of Zoularis under SunOS. 2001-03-24 21:05:49 +00:00
tron
f59b7c2acc Add missing check for NetBSD in last commit. 2001-03-23 15:49:23 +00:00
tron
5a4f1f9f65 Provide Zoularis version number as "${ZOULARIS_VERSION}" on non NetBSD
systems.
2001-03-23 15:47:21 +00:00
dmcmahill
5010ec768b add a list of default serial devices on a per machine_arch basis as discussed
a while back on tech-pkg.  Note that these defaults will not be 100% accurate
as different machines with the same MACHINE_ARCH may have different serial
hardware.  However the default serial device may then be overridden in /etc/mk.conf.
This should at least be better than what we had before ("all the world is i386").
2001-03-19 14:46:04 +00:00
agc
100c6a7268 Add an explanatory comment. 2001-03-13 09:53:37 +00:00
agc
969f45aafe Only add DIGEST_VERSION to MAKEFLAGS when we know it's a valid version.
Addresses PR 12397
2001-03-13 09:41:36 +00:00
tron
4f282ba307 Fix typo. 2001-03-10 10:53:15 +00:00
wiz
afcceaff60 Move PKGTOOLS_VERSION check to bsd.prefs.mk for speedups in recursive tree walks.bsd.pkg.mk bsd.prefs.mk
Bump required version number of PKGTOOLS to 20010306 for the latest bugfixes
and the -V option support.
2001-03-06 16:00:15 +00:00
agc
9c273b7c78 Add support for message digests other than md5 into pkgsrc. This is done
by using the pkgsrc/pkgtools/digest package, and adding dependencies in
bsd.pkg.mk to make sure that that package is up to date.

There is no discernable performance decrease in using sha1 checksums
over md5 ones, and most people advocate the use of sha1 or rmd160 over
md5.

As part of this change, move the initial setting of LOCALBASE, X11BASE
and CROSSBASE into bsd.prefs.mk from bsd.pkg.mk.

Addresses PR 11809.
2001-03-06 14:50:45 +00:00
wiz
6bac337765 Add USE_INET6?=NO in the !(USE_INET6?=YES) case. 2000-12-03 14:10:03 +00:00
hubertf
f99369acf6 Fix NEED_NCURSES handling:
Let's take timidity, which needs ncurses and tk. By setting
NEED_NCURSES=1 and adding it to MAKEFLAGS, all other required pkgs
automagically depend on ncurses - tk, tcl (which is slurped in by
tk), ...
2000-11-21 00:16:43 +00:00
wiz
7382d63dd0 Move USE_NCURSES stuff from bsd.pkg.mk to bsd.prefs.mk.
Do executable bit testing in bsd.pkg.mk, REPLACE_NCURSES, slightly
different.
2000-11-02 03:01:40 +00:00
rh
bdd5ffc77d Add USE_MESA and USE_GLX mechanism similar to USE_XPM that detects and
handles a builtin XFree86-4.x Mesa.
2000-10-15 11:31:41 +00:00
mycroft
d1d902333a Explicitly pass down MAKEFLAGS to all sub-makes, not just the first. 2000-06-03 22:33:22 +00:00
hubertf
adf4bc6d1c Pass variables set via != to MAKEFLAGS, so the forking needed for that
process doesn't slow us down more than necessary.
2000-06-03 07:16:51 +00:00
tron
fe9ac2c3f2 Don't enable IPv6 support if socks support is activated. 2000-02-13 10:33:22 +00:00
itojun
2b821a1bf9 make USE_INET6=YES a default, if the package is compiled on IPv6-ready
userland (checked by existence of /sbin/ping6).

with the change, the default value for USE_INET6 will be like this:
- non-NetBSD: undefined
- NetBSD releases prior and including 1.4.x: undefined
- NetBSD-current (pre-1.5) prior to IPv6 integration: undefined
- NetBSD-current after IPv6 integration: USE_INET6=YES

It is advised to obey the default.
2000-01-24 07:04:28 +00:00
kim
9ec7d89a66 Fix unknown MACHINE_ARCH on Solaris. 1999-09-18 15:33:55 +00:00
christos
2aa3a83adc Linux fixes. 1999-08-12 14:16:25 +00:00
agc
c9580c5871 Revert to previous configuration:
LOWER_OPSYS for Solaris is solaris.
Remove the ugly hacks which had been introduced to workaround previous
misunderstanding.
1999-07-08 08:06:59 +00:00
agc
f51461529d CAPITAL_OPSYS and OS_MAJOR_VERSION are used in one package Makefile,
but calculated every time bsd.prefs.mk is read.  Correct the
situation, and only calculate these when they are needed.
Also save a few more cycles by hardcoding the LOWER_OPSYS values for
known operating systems, rather than using expensive shell echo and tr
commands every time bsd.prefs.mk is read.
1999-07-08 07:58:42 +00:00
christos
160cc155fb Linux bits; now the package system works on Linux too. 1999-06-23 17:06:20 +00:00
tv
4a62265237 `I'm a bonehead.' Reverse the order of components in ${MACHINE_GNU_PLATFORM}. 1999-05-26 14:47:07 +00:00
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