summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2004-08-18 03:00:13 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2004-08-18 03:00:13 +0800
commitcb9b4c2ab044c633d015a11daae3097bf31a4755 (patch)
tree3b7ffb307a938e91be286f0885c659f6c11a64ca /Mk
parentd3769d13ed54a861ff04dee96e85b24802d3f58d (diff)
downloadmarcuscom-ports-cb9b4c2ab044c633d015a11daae3097bf31a4755.tar
marcuscom-ports-cb9b4c2ab044c633d015a11daae3097bf31a4755.tar.gz
marcuscom-ports-cb9b4c2ab044c633d015a11daae3097bf31a4755.tar.bz2
marcuscom-ports-cb9b4c2ab044c633d015a11daae3097bf31a4755.tar.lz
marcuscom-ports-cb9b4c2ab044c633d015a11daae3097bf31a4755.tar.xz
marcuscom-ports-cb9b4c2ab044c633d015a11daae3097bf31a4755.tar.zst
marcuscom-ports-cb9b4c2ab044c633d015a11daae3097bf31a4755.zip
Intro a new GCONF_SCHEMAS, don't use gconf.pl anymore. :-) I will have to
write the doc about this. I will send my write at either gnome or marcuscvs-devel for the English grammar feedback and etc. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2683 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gnome.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk
index 329060048..4d3c83147 100644
--- a/Mk/bsd.gnome.mk
+++ b/Mk/bsd.gnome.mk
@@ -626,14 +626,26 @@ PLIST_SUB+= GNOMEDESKTOP:="@comment " NOGNOMEDESKTOP:=""
CONFIGURE_FAIL_MESSAGE= "Please direct the output of the failure of the make command to a file, and then feed that file to 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 problem to the FreeBSD GNOME team at ${MAINTAINER}, and attach \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" and the output of the failure of the make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an \`ls ${PKG_DBDIR}\`)."
.endif
-_GCONF2_TEST= ${_USE_GNOME:Mgconf2}
-.if ${_GCONF2_TEST:S/gconf2//}!=${_GCONF2_TEST:S/ / /g}
+.if defined(_USE_GNOME)
+. if ${_USE_GNOME:Mgconf}!="" || ${_USE_GNOME:Mgconf2}!=""
pre-install: gnome-pre-install
gnome-pre-install:
@${MKDIR} ${PREFIX}/etc/gconf/gconf.xml.defaults/
+. endif
.endif
+post-install: gnome-post-install
+
+gnome-post-install:
+.for i in ${GCONF_SCHEMAS}
+ @${ECHO_CMD} "@unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/$i > /dev/null || /usr/bin/true" \
+ >> ${TMPPLIST}
+ @${ECHO_CMD} "etc/gconf/schemas/$i" >> ${TMPPLIST}
+ @${ECHO_CMD} "@exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/$i > /dev/null || /usr/bin/true" \
+ >> ${TMPPLIST}
+.endfor
+
.endif
# End of use part.