pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/hicolor-icon-theme Initial addition. This do...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48f35a2ea98c
branches:  trunk
changeset: 474854:48f35a2ea98c
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Thu May 06 13:47:41 2004 +0000

description:
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:

 graphics/hicolor-icon-theme/buildlink3.mk |  29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diffs (33 lines):

diff -r 48e143b9981f -r 48f35a2ea98c graphics/hicolor-icon-theme/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/hicolor-icon-theme/buildlink3.mk Thu May 06 13:47:41 2004 +0000
@@ -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/+$//}



Home | Main Index | Thread Index | Old Index