diff options
author | joerg <joerg@pkgsrc.org> | 2009-03-20 19:23:50 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-03-20 19:23:50 +0000 |
commit | 022c4606fcc3bd0780b781561db11a457e1b2757 (patch) | |
tree | 647e974495c5d41703d41ca2e71c9b6063b9153a /x11/qt3-libs | |
parent | df774e13d463dae87662491d7021d1153d110ece (diff) | |
download | pkgsrc-022c4606fcc3bd0780b781561db11a457e1b2757.tar.gz |
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.
Diffstat (limited to 'x11/qt3-libs')
-rw-r--r-- | x11/qt3-libs/buildlink3.mk | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/x11/qt3-libs/buildlink3.mk b/x11/qt3-libs/buildlink3.mk index a57a380c8c3..4409a48043e 100644 --- a/x11/qt3-libs/buildlink3.mk +++ b/x11/qt3-libs/buildlink3.mk @@ -1,24 +1,16 @@ -# $NetBSD: buildlink3.mk,v 1.21 2007/01/15 16:19:43 joerg Exp $ +# $NetBSD: buildlink3.mk,v 1.22 2009/03/20 19:25:50 joerg Exp $ -BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ -QT3_LIBS_BUILDLINK3_MK:= ${QT3_LIBS_BUILDLINK3_MK}+ +BUILDLINK_TREE+= qt3-libs -.if !empty(BUILDLINK_DEPTH:M+) -BUILDLINK_DEPENDS+= qt3-libs -.endif - -BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nqt3-libs} -BUILDLINK_PACKAGES+= qt3-libs -BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}qt3-libs +.if !defined(QT3_LIBS_BUILDLINK3_MK) +QT3_LIBS_BUILDLINK3_MK:= -.if !empty(QT3_LIBS_BUILDLINK3_MK:M+) BUILDLINK_API_DEPENDS.qt3-libs+= qt3-libs>=3.2.3 BUILDLINK_ABI_DEPENDS.qt3-libs?= qt3-libs>=3.3.6nb1 BUILDLINK_PKGSRCDIR.qt3-libs?= ../../x11/qt3-libs BUILDLINK_INCDIRS.qt3-libs+= qt3/include BUILDLINK_LIBDIRS.qt3-libs+= qt3/lib -.endif # QT3_LIBS_BUILDLINK3_MK QTDIR= ${BUILDLINK_PREFIX.qt3-libs}/qt3 BUILDLINK_PASSTHRU_DIRS+= ${QTDIR} @@ -52,5 +44,6 @@ MAKE_ENV+= MOC="${QTDIR}/bin/moc" CONFIGURE_ENV+= QTDIR=${QTDIR:Q} MAKE_ENV+= QTDIR=${QTDIR:Q} .endif +.endif # QT3_LIBS_BUILDLINK3_MK -BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} +BUILDLINK_TREE+= -qt3-libs |