From 47eeb0f13825374c67af3f6d77d818e56e9c1a80 Mon Sep 17 00:00:00 2001 From: kwm Date: Wed, 9 Oct 2013 09:59:27 +0000 Subject: Run gtk-update-icon-cache in post-install for !STAGE targets. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18783 df743ca5-7f9a-e211-a948-0013205c9059 --- Mk/bsd.gnome.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Mk') diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index 66fa6f3a5..ffe3cabb0 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -1020,6 +1020,11 @@ gnome-post-install: ${ECHO_CMD} "@unexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \ >> ${TMPPLIST}; \ done +.if ! defined(NO_STAGE) + @for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \ + ${LOCALBASE}/bin/gtk-update-icon-cache -q -f ${PREFIX}/$${i} 2>/dev/null || ${TRUE}; \ + done +.endif @if test -f ${TMPPLIST}.icons1; then \ ${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \ ${RM} -f ${TMPPLIST}.icons1; \ -- cgit v1.2.3