diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-09-18 03:47:05 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-09-18 03:47:05 +0800 |
commit | 3b64a076e9617a47c3be13f8a199ca779018e1fb (patch) | |
tree | 3a79e4997c7c35eb57d55237626567de63639bb2 /Mk | |
parent | 276a365577c784bc62dd3d9240447e7cac745470 (diff) | |
download | marcuscom-ports-3b64a076e9617a47c3be13f8a199ca779018e1fb.tar marcuscom-ports-3b64a076e9617a47c3be13f8a199ca779018e1fb.tar.gz marcuscom-ports-3b64a076e9617a47c3be13f8a199ca779018e1fb.tar.bz2 marcuscom-ports-3b64a076e9617a47c3be13f8a199ca779018e1fb.tar.lz marcuscom-ports-3b64a076e9617a47c3be13f8a199ca779018e1fb.tar.xz marcuscom-ports-3b64a076e9617a47c3be13f8a199ca779018e1fb.tar.zst marcuscom-ports-3b64a076e9617a47c3be13f8a199ca779018e1fb.zip |
Add support for auto-detecting icon installation, and running
gtk-update-icon-cache to build the icon cache.
Submitted by: jylefort
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4842 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gnome.mk | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index a5a4156fd..c3eef4a3d 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -3,7 +3,7 @@ # # $FreeBSD$ # $NetBSD: $ -# $MCom: ports/Mk/bsd.gnome.mk,v 1.328 2005/08/19 21:19:40 mezz Exp $ +# $MCom: ports/Mk/bsd.gnome.mk,v 1.329 2005/09/09 03:20:22 ahze Exp $ # # Please view me with 4 column tabs! @@ -717,9 +717,10 @@ PLIST_SUB+= GNOMEDESKTOP:="@comment " NOGNOMEDESKTOP:="" CONFIGURE_FAIL_MESSAGE= "Please run the gnomelogalyzer, available from \"http://www.freebsd.org/gnome/gnomelogalyzer.sh\", which will diagnose the problem and suggest a solution. If - and only if - the gnomelogalyzer cannot solve the problem, report the build failure to the FreeBSD GNOME team at ${MAINTAINER}, and attach (a) \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\", (b) the output of the failure of the make command, and (c) the gnomelogalyzer output. Also, it might be a good idea to provide an overview of all packages installed on your system (i.e. an \`ls ${PKG_DBDIR}\`)." .endif +post-install: gnome-post-install + .if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF) pre-su-install: gnome-pre-su-install -post-install: gnome-post-install gnome-pre-su-install: .if defined(GCONF_SCHEMAS) @@ -727,6 +728,7 @@ gnome-pre-su-install: .else @${DO_NADA} .endif +.endif gnome-post-install: . if defined(GCONF_SCHEMAS) @@ -747,7 +749,22 @@ gnome-post-install: >> ${TMPPLIST}; \ done . endif -.endif + + @${RM} -f ${TMPPLIST}.icons1 + @for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \ + ${ECHO_CMD} "@unexec /bin/rm %D/$${i}/icon-theme.cache 2>/dev/null || /usr/bin/true" \ + >> ${TMPPLIST}.icons1; \ + ${ECHO_CMD} "@exec %%X11BASE%%/bin/gtk-update-icon-cache -q %D/$${i} 2>/dev/null || /usr/bin/true" \ + >> ${TMPPLIST}; \ + ${ECHO_CMD} "@unexec %%X11BASE%%/bin/gtk-update-icon-cache -q %D/$${i} 2>/dev/null || /usr/bin/true" \ + >> ${TMPPLIST}; \ + ${X11BASE}/bin/gtk-update-icon-cache -q ${PREFIX}/$${i} 2>/dev/null || ${TRUE}; \ + done + @if test -f ${TMPPLIST}.icons1; then \ + ${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \ + ${RM} -f ${TMPPLIST}.icons1; \ + ${MV} -f ${TMPPLIST}.icons2 ${TMPPLIST}; \ + fi .endif # End of use part. |