diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2004-11-16 07:34:58 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2004-11-16 07:34:58 +0000 |
commit | 8defaa36b9ee5022e335047a302c4d6c9b2a9198 (patch) | |
tree | 0d0ecbb38b171b224bdabd869cfe283177dfba12 /Mk/bsd.gnome.mk | |
parent | Update to 1.2.4 release: (diff) |
Add a new INSTALLS_OMF to take care of .omf, ScrollKeeper file. It will
automatically scan pkg-plist file and add apropriate @exec/@unexec directives
for each .omf file found to track OMF registration database. Details can be
found in bsd.gnome.mk and http://www.freebsd.org/gnome/docs/porting.html .
Current, gedit2 is the only port that use INSTALLS_OMF for now. I will chasing
all the other ports that are maintaining by gnome@FreeBSD.org when I am done
with two todo list. The other ports, you are on your own and portlint will
bug you when portlint is update.
While I am here, switch from make loops to sh loops in GCONF_SCHEMAS part.
Document writer by: bland
Reviewed by: my team, FreeBSD GNOME team
Notes
Notes:
svn path=/head/; revision=121736
Diffstat (limited to 'Mk/bsd.gnome.mk')
-rw-r--r-- | Mk/bsd.gnome.mk | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index c290c41219ea..8792602a8215 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 \ @@ -641,17 +645,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 |