Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/gnome.mk
Show First 20 Lines • Show All 664 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
# end of the part | # end of the part | ||||
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GNOME_POST_MK) | .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GNOME_POST_MK) | ||||
_INCLUDE_USES_GNOME_POST_MK= yes | _INCLUDE_USES_GNOME_POST_MK= yes | ||||
.if defined(GNOME_PRE_PATCH) | .if defined(GNOME_PRE_PATCH) | ||||
_USES_patch+= 290:gnome-pre-patch | _USES_patch+= 290:gnome-pre-patch | ||||
gnome-pre-patch: | gnome-pre-patch: | ||||
@${GNOME_PRE_PATCH:C/^;//1} | @${GNOME_PRE_PATCH:C/^;//1} | ||||
.endif | .endif | ||||
.if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF) || defined(INSTALLS_ICONS) \ | |||||
|| defined(GLIB_SCHEMAS) | |||||
_USES_install+= 690:gnome-post-install | |||||
gnome-post-install: | |||||
. if defined(GCONF_SCHEMAS) | .if defined(GCONF_SCHEMAS) | ||||
_USES_install+= 690:gnome-post-gconf-schemas | |||||
gnome-post-gconf-schemas: | |||||
@for i in ${GCONF_SCHEMAS}; do \ | @for i in ${GCONF_SCHEMAS}; do \ | ||||
${ECHO_CMD} "@postunexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@postunexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
${ECHO_CMD} "etc/gconf/schemas/$${i}" >> ${TMPPLIST}; \ | ${ECHO_CMD} "etc/gconf/schemas/$${i}" >> ${TMPPLIST}; \ | ||||
${ECHO_CMD} "@postexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@postexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
done | done | ||||
. endif | .endif | ||||
# we put the @unexec behind the plist schema entry, because it compiles files | # we put the @unexec behind the plist schema entry, because it compiles files | ||||
# in the directory. So we should remove the port file first before recompiling. | # in the directory. So we should remove the port file first before recompiling. | ||||
. if defined(GLIB_SCHEMAS) | .if defined(GLIB_SCHEMAS) | ||||
_USES_install+= 690:gnome-post-glib-schemas | |||||
gnome-post-glib-schemas: | |||||
@for i in ${GLIB_SCHEMAS}; do \ | @for i in ${GLIB_SCHEMAS}; do \ | ||||
${ECHO_CMD} "share/glib-2.0/schemas/$${i}" >> ${TMPPLIST}; \ | ${ECHO_CMD} "share/glib-2.0/schemas/$${i}" >> ${TMPPLIST}; \ | ||||
done | done | ||||
@${ECHO_CMD} "@glib-schemas" >> ${TMPPLIST}; | @${ECHO_CMD} "@glib-schemas" >> ${TMPPLIST}; | ||||
.endif | .endif | ||||
. if defined(INSTALLS_OMF) | .if defined(INSTALLS_OMF) | ||||
_USES_install+= 690:gnome-post-omf | |||||
gnome-post-omf: | |||||
@for i in `${GREP} "\.omf$$" ${TMPPLIST}`; do \ | @for i in `${GREP} "\.omf$$" ${TMPPLIST}`; do \ | ||||
${ECHO_CMD} "@postexec scrollkeeper-install -q %D/$${i} 2>/dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@postexec scrollkeeper-install -q %D/$${i} 2>/dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
${ECHO_CMD} "@postunexec scrollkeeper-uninstall -q %D/$${i} 2>/dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@postunexec scrollkeeper-uninstall -q %D/$${i} 2>/dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
done | done | ||||
. endif | .endif | ||||
. if defined(INSTALLS_ICONS) | .if defined(INSTALLS_ICONS) | ||||
_USES_install+= 690:gnome-post-icons | |||||
gnome-post-icons: | |||||
@${RM} -f ${TMPPLIST}.icons1 | @${RM} -f ${TMPPLIST}.icons1 | ||||
@for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \ | @for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \ | ||||
${ECHO_CMD} "@rmtry $${i}/icon-theme.cache" \ | ${ECHO_CMD} "@rmtry $${i}/icon-theme.cache" \ | ||||
>> ${TMPPLIST}.icons1; \ | >> ${TMPPLIST}.icons1; \ | ||||
${ECHO_CMD} "@postexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@postexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
${ECHO_CMD} "@postunexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@postunexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
done | done | ||||
@if test -f ${TMPPLIST}.icons1; then \ | @if test -f ${TMPPLIST}.icons1; then \ | ||||
${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \ | ${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \ | ||||
${RM} -f ${TMPPLIST}.icons1; \ | ${RM} -f ${TMPPLIST}.icons1; \ | ||||
${MV} -f ${TMPPLIST}.icons2 ${TMPPLIST}; \ | ${MV} -f ${TMPPLIST}.icons2 ${TMPPLIST}; \ | ||||
fi | fi | ||||
. endif | |||||
.endif | .endif | ||||
.endif | .endif | ||||
# End of use part. | # End of use part. |