2d1ba244e9
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.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.27 2009/03/20 19:24:39 joerg Exp $
|
|
|
|
BUILDLINK_TREE+= gimp
|
|
|
|
.if !defined(GIMP_BUILDLINK3_MK)
|
|
GIMP_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.gimp+= gimp>=2.4.0
|
|
BUILDLINK_ABI_DEPENDS.gimp+= gimp>=2.4.4
|
|
BUILDLINK_PKGSRCDIR.gimp?= ../../graphics/gimp
|
|
|
|
pkgbase := gimp
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.gimp:Maalib)
|
|
.include "../../graphics/aalib/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.gimp:Mgnome)
|
|
.include "../../www/libgtkhtml/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.gimp:Mmng)
|
|
.include "../../graphics/mng/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.gimp:Msvg)
|
|
.include "../../graphics/librsvg/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../graphics/lcms/buildlink3.mk"
|
|
.include "../../graphics/libart/buildlink3.mk"
|
|
.include "../../graphics/libexif/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/libwmf/buildlink3.mk"
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
.endif # GIMP_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -gimp
|