Commit graph

234 commits

Author SHA1 Message Date
grant
33ac0ad0c8 override bootstrap-pkgsrc's incorrect OBJECT_FMT on NetBSD 1.4. from
krister.

XXX this should also be fixed in bootstrap-pkgsrc and bmake's
mk-files.
2003-12-10 13:59:07 +00:00
reed
1b646f871d For BSD/OS, get rid of that libtool work-around of
renaming LOWER_OPSYS to match. I will fix ltconfig to work
with "bsdos" too instead.
2003-12-05 05:33:17 +00:00
reed
5ac3d68c8d In bsd.prefs.mk, get rid of possible "/" in OPSYS name and define
LOWER_OPSYS for libtool use under BSD/OS.

Add initial support for using pkgsrc under BSD/OS.  This was tested
under BSDI BSD/OS 4.3.1. (Thank you D. Hege.)

(Need to add BSDOS.x11.dist later.)
CVS ----------------------------------------------------------------------
2003-12-03 21:48:33 +00:00
fredb
ce8785b76c The "elf" goes after "netbsd", the version number after that. 2003-10-23 18:11:49 +00:00
grant
1e6dc66ad0 use 'solaris2' instead of 'solaris' in MACHINE_GNU_PLATFORM to
fix breakage in some GNU configure scripts.

based on patch from Jonathan Perkin in PR pkg/20701.
2003-10-11 06:46:45 +00:00
agc
2e630c6cd7 Use the -S argument to pkg_admin(1) if it exists. 2003-10-08 10:07:20 +00:00
grant
f8dc52ce38 make CC_VERSION available to packages by including bsd.prefs.mk.
it is of the form 'gcc-<version>' if gcc is being used, or empty
otherwise (for now).

requested by tron.
2003-09-24 12:22:03 +00:00
itojun
871cc4dcdb binary format detection for OpenBSD. Frederick Bruckman 2003-09-17 05:14:40 +00:00
grant
5fd5d7578c fix some indentation 2003-09-16 08:09:04 +00:00
jlam
5c377018fd In cases where we need the best match for a pkgpattern, use
"${PKG_BEST_EXIST} pkgpattern" instead of "${PKG_INFO} -e pkgpattern".  The
latter can return multiple package names if there are multiple versions of
a piece of software installed.  PKG_BEST_EXIST is defined to be
"${PKG_ADMIN} -b -d ${_PKG_DBDIR} -s "" lsbest", so it searches for the
best installed package that matches the given pkgpattern or else returns
the empty string.

Bump PKGTOOLS_REQD to 20030912 since pkg_admin(1) needs to know about "-b"
and "-d <dir>".
2003-09-13 05:55:14 +00:00
grant
b04786501a move a SunPro tweak to compiler.mk. 2003-09-12 16:07:09 +00:00
jlam
b49af05cee Move the default settings for USE_BUILDLINK[23] from bsd.pkg.mk into
bsd.prefs.mk so that they may be tested/used in buildlink[23].mk files.
2003-09-12 10:49:28 +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
fe1d66ea29 Create new variables PKG_*_CMD that contain just the paths to the various
pkg_install tools.
2003-08-31 11:04:58 +00:00
gavan
58bef710d6 Avoid circular dependency on gcc if USE_GCC[23] is set. 2003-08-21 16:16:46 +00:00
jlam
d742be9bff There are many uses for a common log file, so define one that may be
picked up and used by tools.mk, bsd.buildlink2.mk, etc.
2003-08-16 08:39:17 +00:00
grant
a5caa515f7 move gcc selection back to bsd.pkg.mk as the top-level Makefile
includes bsd.prefs.mk.
2003-07-13 13:27:18 +00:00
grant
bbfe9c9c20 don't set USE_GCC2 by default as it implies the use pkgsrc gcc2, and
move handling of gcc shared libraries to bsd.prefs.mk.
2003-07-13 13:10:43 +00:00
salo
d750aba607 More support bits for native Sun compilers (on Solaris).
Sun's C++ compiler (CC) doesn't support passing arguments to ld via -Wl flag,
remove this flag from the buildlink2 environment.
2003-07-09 16:07:21 +00:00
abs
4107ad2a64 Handle blank MACHINE_ARCH on Linux (as seen on 20030630 bootstrap kit) 2003-07-09 11:38:17 +00:00
salo
bf262a9684 Introduce few new variables for (mostly) non-GCC compilers use with pkgsrc
so compiler-dependent settings can be set later.

USE_GCC2    - GNU Compiler Collection 2.x	(default)
USE_GCC3    - GNU Compiler Collection 3.x	(used already)
USE_MIPSPRO - Silicon Graphics, Inc. MIPSpro Compiler
USE_SUNPRO  - Sun Microsystems, Inc. WorkShop/Forte/Sun ONE Studio
              Compiler Collection

(Intel compilers on Linux, anyone? :) )
2003-07-09 08:22:22 +00:00
jschauma
e8fa35b02c Use a better value as LOWER_OPSYS for IRIX. 2003-06-05 00:23:29 +00:00
grant
9794a404b1 back out previous, it does not work as it should. 2003-04-21 01:54:33 +00:00
grant
dabc7cd848 ensure LOWER_ARCH always gets set on Solaris, not only if MACHINE_ARCH
is non-sensical. shuffle some definitions around to follow style of
other entries.

semi-related to a tr(1) bug observed by sommerfeld@ Solaris 10/i386.
2003-04-21 01:35:10 +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
jschauma
a03d2b767f ${UNAME} -p is a good value for LOWER_ARCH on Irix as well. 2003-03-31 02:58:01 +00:00
wiz
eff90ed481 Quote tr arguments. 2003-03-28 21:16:10 +00:00
jlam
3ef633718c (1) Publicly export the value of _OPSYS_RPATH_NAME as RPATH_FLAG;
Makefiles simply need to use this value often, for better or for
    worse.

(2) Create a new variable FIX_RPATH that lists variables that should
    be cleansed of -R or -rpath values if ${_USE_RPATH} is "no".  By
    default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and
    additional variables may be appended from package Makefiles.
2003-03-14 19:37:30 +00:00
jschauma
ce9144b328 Add some LOWER_VENDOR definitions on Linux to better customize packages
in the future (on Debian, for example, there is no libtermcap, and we need to
depend on ncurses etc.)
2003-01-25 22:39:56 +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
bae57c8408 Revert previous change. Defining BSD_PREFS_MK instead of BSD_PKG_MK
breaks too many users' /etc/mk.conf files that have a

	.ifdef BSD_PKG_MK
	# /usr/pkgsrc stuff
	.else
	# /usr/src stuff
	.endif

structure.  We'll think of another way to protect against multiple
inclusion of bsd.pkg.mk and bsd.prefs.mk.
2003-01-15 10:06:48 +00:00
wiz
d2bb2ec016 Define and check for BSD_PREFS_MK, not BSD_PKG_MK. Proposed by Jan Schaumann. 2003-01-14 16:25:41 +00:00
jschauma
d07838581f On Linux, LOWER_ARCH is generally not yet defined. Move assignment. 2003-01-14 03:01:37 +00:00
jschauma
207359eaa9 According to seb, make on 1.5 does not know about ${VAR:tl}, so let's go back to
echo VAR | tr A-Z a-z
2003-01-12 22:36:14 +00:00
jschauma
a2843dc815 efficiency++;
Make can take care of substitutions itself, so we don't need to use
echo VAR | sed
or
echo VAR | tr
Suggested by seb.
2003-01-12 22:30:08 +00:00
jschauma
638f4888bd On Linux, s/i.86/i386/ for LOWER_ARCH and MACHINE_ARCH as suggested by
Jeremy C. Reed on tech-pkg.
Even though bootstrap's bmake will do this at build-time, this ensures
that even older bmake's don't fail if a package checks it for == i386.
2003-01-12 20:36:58 +00:00
jlam
60415acdfc Remove a unused hack (it was only used by pthread.buildlink.mk, which is
now gone).
2003-01-05 22:48:12 +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
taca
6e1eb8c978 Previous commit breaks pkgsrc on NetBSD current since OS_VERSION isn't
pure numeric value "1.6K".

So, sperate ".if" directive comparing OS_VERSION into two ".if" directives.
2002-12-15 01:15:24 +00:00
schmonz
a582dc31ff Default to USE_INET6 = NO on Darwin < 6.0, whose IPv6 bits are a red herring. 2002-12-15 00:40:29 +00:00
jschauma
ea31bf10a2 Make sure that on IRIX{,64} LOWER_OPSYS matches what most configure
scripts seem to expect.  While we're at it, add a vendor.
2002-12-12 03:02:41 +00:00
wiz
6e77852ef9 Remove trailing whitespace. 2002-12-10 12:50:48 +00:00
grant
a352f694c2 turn on USE_INET6 in a KAME IPv6 environment other than NetBSD. 2002-11-30 16:49:00 +00:00
grant
9731c03451 LOWER_VENDOR is 'pc' on FreeBSD only if running on i386. 2002-11-17 22:35:23 +00:00
grant
cf547a3787 Add initial pkgsrc FreeBSD support :-)
Tested on FreeBSD 4.7-RELEASE/i386.
2002-11-17 15:11:40 +00:00
jlam
3ea1f6abe7 When "make install" su's to root, su is invoked with the "-l" option, which
causes the shell environment to be discarded.  This also discards
OBJMACHINE or OBJHOSTNAME, which causes WRKDIR_BASENAME to be different
between the "non-root" and "root" make targets and leads to the breakage
seen in pkg/18879 by Simon Burge.  Fix this by saving the OBJHOSTNAME or
OBJMACHINE setting in MAKEFLAGS so that it is seen even after we "su -l" to
root.
2002-11-01 06:29:23 +00:00
jlam
6bbf080d53 Whitespace and minor cosmetic fixes. 2002-11-01 06:19:47 +00:00
jlam
4d0aee253b Move X11BASE setting for Solaris to a more appropriate place now that we
don't need to worry about USE_XPM.
2002-10-21 21:46:00 +00:00
wiz
555b0a21c7 Purge unused USE_XPM (use graphics/xpm/buildlink2.mk instead). 2002-10-21 13:58:14 +00:00
wiz
144d00183a Remove traces of now unused USE_XAW. 2002-10-21 01:40:56 +00:00
wiz
16407c1798 Remove USE_MESA -- now unused. 2002-10-21 01:17:11 +00:00
wiz
accb9cb69d Remove obsolete USE_FREETYPE2 support; all users have been converted to use
freetype2's buildlink2.mk.
2002-10-20 11:47:04 +00:00
jlam
0905c3678b Move some variable definitions from bsd.pkg.mk to bsd.prefs.mk so that
they may be used in conditional statements in *.mk files before bsd.pkg.mk
is included.
2002-10-19 20:33:59 +00:00
bouyer
90ee03f829 Assign a default value to SPARC_TARGET_ARCH for the if MACHINE_ARCH == sun4
too.
2002-10-12 20:25:49 +00:00
agc
acd94fb634 On Solaris, MACHINE_ARCH on Suns can be sun4c or i86pc with
bootstrap-pkgsrc, so adjust accordingly.

Also indent a little better.
2002-10-12 17:17:22 +00:00
jlam
4a7c8310c5 Move pkgtools-related definitions into bsd.prefs.mk so that they may be
used by buildink2.mk files.
2002-09-24 21:54:49 +00:00
wiz
6c40f123f7 Some whitespace cleanup. 2002-09-24 13:59:20 +00:00
rh
5d9dea26a6 Move xpkgwedge check from bsd.pkg.mk to bsd.prefs.mk so that X11PREFIX
location check within package Makefiles actually works as expected.
2002-09-15 11:58:22 +00:00
tron
df0b4367aa The "Xpm" library is distributed with Solaris 9. Handle this case like
XFree86 4.x and don't install the package.
2002-09-01 15:13:41 +00:00
grant
a4a0e792bf set USE_INET6 if we are on an IPv6 capable Solaris host. 2002-08-21 08:40:40 +00:00
jlam
554bc08289 We no longer expect PTHREAD_TYPE to be defined after including
bsd.prefs.mk.  It's value is now supposed to be checked after including
pthread.buildlink.mk.
2002-08-01 05:36:33 +00:00
jlam
753e8e8e87 Move the definition of OBJECT_FMT for NetBSD-1.3.x back _below_ the
inclusion of bsd.own.mk.  This is to allow OBJECT_FMT to be set explicitly
in ${MAKECONF} (/etc/mk.conf) to override the setting in bsd.own.mk on the
older NetBSD systems.
2002-06-21 21:06:48 +00:00
jlam
d52785d9bf Move the definition of OBJECT_FMT for NetBSD-1.3.x systems ahead of the
inclusion of defs.*.mk so that they can conditionalize on OBJECT_FMT.
2002-06-21 17:49:47 +00:00
schmonz
4a19db1481 On Darwin, before including <bsd.own.mk>, set OBJECT_FMT to "Mach-O".
(<bsd.own.mk> tries to set it to "ELF" otherwise.) The problem was
unmasked by -r1.983 of bsd.pkg.mk.

Approved by agc.
2002-05-30 22:15:40 +00:00
fredb
d9607f2757 Append "elf" to ${MACHINE_GNU_PLATFORM}, for NetBSD archs that were once
a.out but are now ELF, in a way that's consistent with bsd.own.mk in
NetBSD-current. This, incidently, makes the gcc package build again on
NetBSD-1.5.3_ALPHA/i386.
2002-03-18 05:46:42 +00:00
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