Commit graph

10 commits

Author SHA1 Message Date
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
sno
6e4bd3d616 Add FreeBSD support
oked by tron@
2009-03-19 20:12:00 +00:00
hasso
c896f2e2c7 DragonFly doesn't have /dev/audio any more. 2008-11-11 13:26:42 +00:00
reed
071cc8a6a3 Define DEVOSSAUDIO and DEVOSSSOUND for DragonFly.
From Kimura Fuyuki in PR #35824.
2007-02-25 00:29:27 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
jlam
07b5aff6cb Makefiles that include oss.buildlink3.mk can now check the value of
OSS_TYPE to determine whether or not a native OSS implementation is
present or not.  OSS_TYPE just exports the value of IS_BUILIN.oss, but
exports it early enough where it can be used within a package Makefile,
e.g.:

	.include "../../mk/oss.buildlink3.mk"
	.if ${OSS_TYPE} == "none"
	CONFIGURE_ARGS+=	--without-oss
	.endif

This should fix builds of some packages that include "oss.buildlink3.mk"
on platforms where there is no OSS in the base system, e.g. Mac OS X
and Solaris.
2006-03-13 16:10:15 +00:00
jlam
94bbce9371 Correct the path to the bsd.prefs.mk file and move it to the proper
location in a buildlink3.mk file.
2006-03-10 22:33:24 +00:00
wiz
0bba29e2ac Include bsd.prefs.mk before testing ${OPSYS}. 2006-03-10 07:31:32 +00:00
jlam
dc0ed7d769 Reimplement OSS audio handling in pkgsrc. Add two new files:
oss.buildlink3.mk
	oss.builtin.mk

that work like modern buildlink3.mk and builtin.mk files do.  We no
longer support audio/oss (which will be removed shortly).  Mark
ossaudio.buildlink3.mk for deprecation after all references to it
have been replaced with "oss.buildlink3.mk" in package Makefiles.
2006-03-09 20:23:13 +00:00