summaryrefslogtreecommitdiff
path: root/graphics/hicolor-icon-theme
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-05-06 13:47:41 +0000
committerjmmv <jmmv>2004-05-06 13:47:41 +0000
commit7d2eab9a636420fe14a37b331fa0c209fb7ae8d9 (patch)
tree0762f5dc1bae33e9a1b16329efe766343836d93e /graphics/hicolor-icon-theme
parent173d6f7f3a09b212824d512b5a9a7aa30364f418 (diff)
downloadpkgsrc-7d2eab9a636420fe14a37b331fa0c209fb7ae8d9.tar.gz
Initial addition. This does not really need to be a buildlink3.mk file (in
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.
Diffstat (limited to 'graphics/hicolor-icon-theme')
-rw-r--r--graphics/hicolor-icon-theme/buildlink3.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/hicolor-icon-theme/buildlink3.mk b/graphics/hicolor-icon-theme/buildlink3.mk
new file mode 100644
index 00000000000..d10db0d7020
--- /dev/null
+++ b/graphics/hicolor-icon-theme/buildlink3.mk
@@ -0,0 +1,29 @@
+# $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/+$//}