INTEGRATION: CWS jl46 (1.20.44); FILE MERGED

2006/12/12 21:02:17 ihi 1.20.44.5: Extension support for solaris
2006/12/04 15:52:41 jl 1.20.44.4: RESYNC: (1.20-1.21); FILE MERGED
2006/11/27 15:53:42 ihi 1.20.44.3: #i69173# Systemintegration for Extensions
2006/11/16 18:52:27 ihi 1.20.44.2: #i69173# Systemintegration for Extensions
2006/10/17 12:56:09 ihi 1.20.44.1: #i69173# Systemintegration for Extensions
This commit is contained in:
Ivo Hinkelmann 2006-12-19 10:27:32 +00:00
parent 069c3465f2
commit 56589bb409

View file

@ -4,9 +4,9 @@
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.21 $
# $Revision: 1.22 $
#
# last change: $Author: kz $ $Date: 2006-11-08 11:55:22 $
# last change: $Author: ihi $ $Date: 2006-12-19 11:27:32 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@ -52,7 +52,7 @@ TARGET=redhat
# GNOME does not like icon names with more than one '.'
ICONPREFIX = $(UNIXFILENAME:s/.//g)
LAUNCHERLIST = writer calc draw impress math base printeradmin
LAUNCHERLIST = writer calc draw impress math base printeradmin extension
LAUNCHERDEPN = $(foreach,i,$(LAUNCHERLIST) $(UNIXFILENAME)-$i.desktop)
LAUNCHERDIR = $(ABSLOCALOUT)$/misc$/$(TARGET)
@ -78,7 +78,8 @@ MIMELIST = \
oasis-formula \
oasis-master-document \
oasis-database \
oasis-web-template
oasis-web-template \
extension
MIMEICONLIST = \
oasis-text \
@ -103,7 +104,8 @@ MIMEICONLIST = \
presentation-template \
formula \
master-document \
database
database \
extension
GNOMEMIMEDEPN = ../mimetypes/{$(MIMELIST)}.keys ../mimetypes/openoffice.mime
KDEMIMEDEPN = ../mimetypes/{$(MIMELIST)}.desktop
@ -128,6 +130,8 @@ RPMFILE=$(PKGDIR)/$(PKGNAME)-$(PKGVERSION)-$(PKGREV).noarch.rpm
RPMDEPN = \
$(MISC)/$(TARGET)/etc/$(UNIXFILENAME) \
$(MISC)/$(TARGET)/usr/bin/soffice \
$(MISC)/$(TARGET)/usr/bin/unopkg_gui \
$(MISC)/$(TARGET)/usr/bin/unopkg \
$(MISC)/$(TARGET)/usr/bin/$(UNIXFILENAME) \
$(MISC)/$(TARGET)/usr/bin/$(UNIXFILENAME)-printeradmin \
$(MISC)/$(TARGET)/usr/share/applications/{$(LAUNCHERDEPN)} \
@ -160,7 +164,7 @@ ALLTAR : $(RPMFILE)
%.desktop :
@$(MKDIRHIER) $(@:d)
@ln -sf $(subst,$(UNIXFILENAME)-, /etc/$(UNIXFILENAME)/share/xdg/$(@:f)) $@
ln -sf $(subst,$(UNIXFILENAME)-, /etc/$(UNIXFILENAME)/share/xdg/$(@:f)) $@
# --- icons --------------------------------------------------------
@ -204,7 +208,7 @@ $(MISC)/$(TARGET)/usr/share/application-registry/$(UNIXFILENAME).applications :
@$(MKDIRHIER) $(@:d)
@echo Creating GNOME .applications file ..
@echo ---------------------------------
@cat ../mimetypes/openoffice.applications | tr -d "\015" | sed -e "s/openoffice/$(UNIXFILENAME)/" -e "s/%PRODUCTNAME/$(LONGPRODUCTNAME)/" > $@
@cat ../mimetypes/openoffice.applications | tr -d "\015" | sed -e "s/OFFICENAME/$(UNIXFILENAME)/" -e "s/%PRODUCTNAME/$(LONGPRODUCTNAME)/" > $@
$(MISC)/$(TARGET)/usr/share/mime/packages/openoffice.org.xml : $(COMMONMISC)$/desktopshare/openoffice.org.xml
@$(MKDIRHIER) $(@:d)
@ -224,6 +228,20 @@ $(MISC)/$(TARGET)/usr/bin/soffice :
@$(MKDIRHIER) $(@:d)
@ln -sf /etc/$(UNIXFILENAME)/program/soffice $@
# Create the unopkg wrapper
$(MISC)/$(TARGET)/opt/$(UNIXFILENAME)/program/unopkg_gui :
@$(MKDIRHIER) $(@:d)
echo \#\!\/bin\/sh > $@
echo exec unopkg gui \$$@ >> $@
$(MISC)/$(TARGET)/usr/bin/unopkg_gui : $(MISC)/$(TARGET)/opt/$(UNIXFILENAME)/program/unopkg_gui
@$(MKDIRHIER) $(@:d)
@ln -sf /etc/$(UNIXFILENAME)/program/unopkg_gui $@
$(MISC)/$(TARGET)/usr/bin/unopkg :
@$(MKDIRHIER) $(@:d)
@ln -sf /etc/$(UNIXFILENAME)/program/unopkg $@
$(MISC)/$(TARGET)/etc/$(UNIXFILENAME) :
@$(MKDIRHIER) $(@:d)
@touch $@