The redundant parsing of bsd.prefs.mk is mostly avoided now and parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.13 2006/12/12 21:52:36 joerg Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
GNOME_ICON_THEME_BUILDLINK3_MK:= ${GNOME_ICON_THEME_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= gnome-icon-theme
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngnome-icon-theme}
|
|
BUILDLINK_PACKAGES+= gnome-icon-theme
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}gnome-icon-theme
|
|
|
|
.if !empty(GNOME_ICON_THEME_BUILDLINK3_MK:M+)
|
|
BUILDLINK_API_DEPENDS.gnome-icon-theme+= gnome-icon-theme>=2.8.0
|
|
BUILDLINK_ABI_DEPENDS.gnome-icon-theme?= gnome-icon-theme>=2.12.1nb2
|
|
BUILDLINK_PKGSRCDIR.gnome-icon-theme?= ../../graphics/gnome-icon-theme
|
|
|
|
# intltool-{extract,merge,update} are Perl scripts included in the sources
|
|
# of packages that use gnome-icon-theme and are executed during build.
|
|
#
|
|
USE_TOOLS+= perl
|
|
|
|
. include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
dirs!= ${GREP} "^@dirrm" ${.CURDIR}/../../graphics/gnome-icon-theme/PLIST | \
|
|
${CUT} -d ' ' -f 2
|
|
. for d in ${dirs}
|
|
PRINT_PLIST_AWK+= /^@dirrm ${d:S/\//\\\//g}$$/ \
|
|
{ print "@comment in gnome-icon-theme: " $$0; next; }
|
|
. endfor
|
|
. undef dirs
|
|
.endif # GNOME_ICON_THEME_BUILDLINK3_MK
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|