Commit graph

119 commits

Author SHA1 Message Date
jlam
e023ba1995 Define a symbol BSD_PREFS_MK that may be checked by Makefile fragments to
see whether they are being included from within bsd.prefs.mk or from
without.
2001-12-26 19:16:59 +00:00
jlam
d0bd34b556 Initial implementation of pthread.buildlink.mk to transparently allow for
using either the native pthread implementation or using a package pthread
implementation instead, e.g. pth, ptl2, mit-pthreads, etc.  The only
currently supported package pthread implementation is pth as it's the only
one with a buildlink.mk file.  An example usage is:

	USE_PTHREAD=	native pth
	.include "../../mk/pthread.buildlink.mk"

or a fancier example is:

	USE_PTHREAD=	native
	.include "../../mk/bsd.prefs.mk"
	.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
	CONFIGURE_ARGS+= --without-pthreads
	.endif
	.include "../../mk/pthread.buildlink.mk"
2001-12-24 19:29:32 +00:00
wiz
9d774a36a3 Retire USE_CURSES, which was superseded by devel/ncurses/buildlink.mk, and
has now been purged from pkgsrc.
2001-12-12 16:30:04 +00:00
abs
e40b0cc41e Add LOWER_OS_VERSION to match LOWER_OPSYS, LOWER_VENDOR, and LOWER_ARCH 2001-12-12 12:31:14 +00:00
tv
92d724ccfe In the odd possible case of someone using "pkgsrc" underneath "src"
(even though that's still a bad idea), set USETOOLS=no explicitly before
including <bsd.own.mk>, and add this also to MAKE_ENV to make BSD-Makefile
based packages build properly.
2001-11-28 19:58:13 +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
55b1c236e7 My thanks to Thorsten - this part of my change for Darwin support was
lost.

However, modify previous change to let Darwin know about SHAREOWN,
SHAREGRP and SHAREMODE in a different way - no point in checking for
OPSYS here, since every OPSYS has to know about them.
2001-11-04 19:49:56 +00:00
frueauf
8e847c8588 "Darwin" needs to know about SHAREOWN, SHAREGRP and SHAREMODE too. 2001-11-04 13:42:01 +00:00
agc
7167cd3880 Add initial support for Darwin (1.4) to pkgsrc. 2001-10-30 13:53:15 +00:00
tron
85eb51b084 Include "bsd.own.mk" before "bsd.pkg.defaults.mk" because otherwise "?="
assignments in "/etc/mk.conf" won't work anymore.
2001-09-21 15:28:35 +00:00
agc
91d1845f89 Add a new bsd.pkg.defaults.mk file, derived from the old mk.conf.example.
This file is "included" automatically before <bsd.own.mk> includes
/etc/mk.conf, so that pkgsrc-wide default values are set.

It is now possible just to set values in mk.conf only where they differ
from the default, thereby easing the problems of updating mk.conf when
new values get added.
2001-09-18 21:30:05 +00:00
abs
7cb5dda995 shuffle some whitespace to make it more obvious what is going on 2001-08-24 09:00:44 +00:00
skrll
6b1239edda Add GNU_ARCH.sparc64 entry.
This should fix pkg/13714 by Martti Kuparinen <martti.kuparinen@iki.fi>
2001-08-14 11:00:44 +00:00
hubertf
04f42d0486 ZOULARISBASE: If there's no $LOCALBASE/bsd, try $LOCALBASE 2001-07-26 16:13:52 +00:00
hubertf
f93ab578be Close a quote.
Noted by Will Andrews <will@physics.purdue.edu> in private mail.
2001-07-26 08:33:02 +00:00
abs
4348e0d6e2 Switch solaris default LOCALBASE across to /usr/pkg 2001-07-17 10:11:32 +00:00
tron
19cbb67830 Check if "${X11BASE}/lib/X11/config/X11.tmpl" exists before searching
with "grep" through it in Mesa library handling.
2001-07-10 16:37:13 +00:00
tron
75d0cbc0b3 Add new variable "SPARC_TARGET_ARCH" used to select the target architecture
under Solaris/SPARC. Default is "sparcv7".
2001-07-10 15:07:35 +00:00
tron
9f2922b0a3 Use ":=" in assignment of "ZOULARISBASE" because "LOCALBASE" might get
redefined later.
2001-07-10 11:13:31 +00:00
fredb
a031a501cf Provide missing parenthesis for CHECK_XPM. 2001-07-09 14:31:58 +00:00
tron
8f157753f2 Check if "${X11BASE}/lib/X11/config/X11.tmpl" before searching with
"grep" in it to avoid problems under Solaris.
2001-07-06 21:10:20 +00:00
abs
039063bc7a bsd.prefs.mk: Make OBJECT_FMT work on NetBSD 1.3 2001-07-05 21:11:07 +00:00
mjl
fff9689237 Add GNU_ARCH.powerpc. This fixes some of the recent problems experienced
on macppc compiling packages.

XXX This should come from bsd.own.mk but doesn't. Why?
2001-07-03 02:20:38 +00:00
jlam
8d8c3630b3 Make check for Xpm in XFree86 look like the checks for Mesa and freetype2. 2001-07-02 08:02:33 +00:00
drochner
74e42922d3 add an explicite GNU_ARCH.mipsel assignment to work around poor interaction
with <bsd.own.mk>
2001-06-28 13:16:56 +00:00
jlam
c459aefcea Move default setting of XAW_TYPE to bsd.prefs.mk. 2001-06-20 19:36:03 +00:00
veego
37ac671b39 Add a check for the libGLU which comes with XFree86 4.1.0: HAVE_BUILTIN_GLU
To be used in the Mesa package.
2001-06-16 08:45:41 +00:00
skrll
8d29eaa75e Put back stuff deleted in last commit. 2001-06-14 16:04:06 +00:00
rafal
df29860f63 Add GNU_ARCH.mipseb (which is just mipseb); now pkgsrc make machinery passes
the right (ARCH, VENDOR, OS) tuple down to GNU_CONFIGURE using programs.
Fixes PR pkg/13196.
2001-06-14 13:45:12 +00:00
jlam
9eb4042def Fix inclusion of defs.*.mk files so that it works from anywhere in the
pkgsrc tree that contains a Makefile.
2001-06-12 18:58:42 +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
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