summaryrefslogtreecommitdiffstats
path: root/Mk/bsd.gnome.mk
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2004-11-16 15:56:02 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2004-11-16 15:56:02 +0800
commit798512433cdc925ae282e9a664848011f62b211f (patch)
tree46f5f35d04c675c1eff8c05eb578f4105ea3f160 /Mk/bsd.gnome.mk
parent7619b804b4cc33ae987548af2337813aa460b36e (diff)
downloadmarcuscom-ports-798512433cdc925ae282e9a664848011f62b211f.tar
marcuscom-ports-798512433cdc925ae282e9a664848011f62b211f.tar.gz
marcuscom-ports-798512433cdc925ae282e9a664848011f62b211f.tar.bz2
marcuscom-ports-798512433cdc925ae282e9a664848011f62b211f.tar.lz
marcuscom-ports-798512433cdc925ae282e9a664848011f62b211f.tar.xz
marcuscom-ports-798512433cdc925ae282e9a664848011f62b211f.tar.zst
marcuscom-ports-798512433cdc925ae282e9a664848011f62b211f.zip
Sync w/ FreeBSD's bsd.gnome.mk by add new INSTALLS_OMF and switch from make
loops to sh loops in GCONF_SCHEMAS part. Thanks to everybody for feedback and bland for wrote document. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3066 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk/bsd.gnome.mk')
-rw-r--r--Mk/bsd.gnome.mk31
1 files changed, 23 insertions, 8 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk
index fb354e5c9..f4cfd57e5 100644
--- a/Mk/bsd.gnome.mk
+++ b/Mk/bsd.gnome.mk
@@ -34,6 +34,10 @@ Gnome_Pre_Include= bsd.gnome.mk
# add the following to your Makefile:
# "GCONF_SCHEMAS=foo.schemas bar.schemas".
#
+# INSTALLS_OMF - If set, bsd.gnome.mk will automatically scan pkg-plist
+# file and add apropriate @exec/@unexec directives for
+# each .omf file found to track OMF registration database.
+#
# non-version specific components
_USE_GNOME_ALL= gnomehack lthack gnomeprefix gnomehier esound gnomemimedata \
@@ -655,17 +659,28 @@ gnome-pre-install:
. endif
.endif
-.if defined(GCONF_SCHEMAS)
+.if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF)
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
+. if defined(GCONF_SCHEMAS)
+ @for i in ${GCONF_SCHEMAS}; do \
+ ${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}; \
+ done
+. endif
+
+. if defined(INSTALLS_OMF)
+ @for i in `${GREP} "\.omf$$" ${TMPPLIST}`; do \
+ ${ECHO_CMD} "@exec scrollkeeper-install -q %D/$${i} 2>/dev/null || /usr/bin/true" \
+ >> ${TMPPLIST}; \
+ ${ECHO_CMD} "@unexec scrollkeeper-uninstall -q %D/$${i} 2>/dev/null || /usr/bin/true" \
+ >> ${TMPPLIST}; \
+ done
+. endif
.endif
.endif