the sense that this package does not install any libraries that need to be buildlinked), but it helps in adding a dependency and, more important, in handling of PLIST entries during print-PLIST. Using a buildlink3.mk file is more consistent with other packages than a home-grown mk file.
29 lines
932 B
Makefile
29 lines
932 B
Makefile
# $NetBSD: buildlink3.mk,v 1.1 2004/05/06 13:47:41 jmmv Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
HICOLOR_ICON_THEME_BUILDLINK3_MK:= ${HICOLOR_ICON_THEME_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= hicolor-icon-theme
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nhicolor-icon-theme}
|
|
BUILDLINK_PACKAGES+= hicolor-icon-theme
|
|
|
|
.if !empty(HICOLOR_ICON_THEME_BUILDLINK3_MK:M+)
|
|
BUILDLINK_DEPENDS.hicolor-icon-theme+= hicolor-icon-theme>=0.4
|
|
BUILDLINK_PKGSRCDIR.hicolor-icon-theme?=../../graphics/hicolor-icon-theme
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
dirs!= ${GREP} "^@dirrm" ${.CURDIR}/../../graphics/hicolor-icon-theme/PLIST | \
|
|
${CUT} -d ' ' -f 2
|
|
. for d in ${dirs}
|
|
PRINT_PLIST_AWK+= /^@dirrm ${d:S/\//\\\//g}$$/ \
|
|
{ print "@comment in hicolor-icon-theme: " $$0; next; }
|
|
. endfor
|
|
. undef d
|
|
. undef dirs
|
|
.endif # HICOLOR_ICON_THEME_BUILDLINK3_MK
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|