diff options
author | Peter Foley <pefoley2@verizon.net> | 2013-02-10 18:22:07 -0500 |
---|---|---|
committer | David Ostrovsky <David.Ostrovsky@gmx.de> | 2013-02-17 21:58:28 +0000 |
commit | 01344a8ca57636ac87108c22f777a02fe6d963d5 (patch) | |
tree | 3572589779eddf57c9ff87403bcb453574eb0fd3 /sysui/desktop | |
parent | c3a8667d69b8e270fe6a3aed00d86a39dd4f0be7 (diff) |
convert sysui to gbuild and add to tail_build
Change-Id: Ia32e51f0d95e001bcf07766f6340398e0ab1bf6a
Reviewed-on: https://gerrit.libreoffice.org/2192
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de>
Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
Diffstat (limited to 'sysui/desktop')
-rw-r--r-- | sysui/desktop/cleanversion/makefile.mk | 41 | ||||
-rw-r--r-- | sysui/desktop/debian/makefile.mk | 87 | ||||
-rw-r--r-- | sysui/desktop/freedesktop/makefile.mk | 50 | ||||
-rw-r--r-- | sysui/desktop/icons/makefile.mk | 71 | ||||
-rwxr-xr-x | sysui/desktop/macosx/delzip | 0 | ||||
-rw-r--r-- | sysui/desktop/macosx/makefile.mk | 77 | ||||
-rw-r--r-- | sysui/desktop/mandriva/makefile.mk | 50 | ||||
-rw-r--r-- | sysui/desktop/productversion.mk | 76 | ||||
-rwxr-xr-x | sysui/desktop/share/create_tree.sh | 3 | ||||
-rw-r--r-- | sysui/desktop/share/makefile.mk | 262 | ||||
-rw-r--r-- | sysui/desktop/share/translate.pl | 4 | ||||
-rw-r--r-- | sysui/desktop/slackware/makefile.mk | 103 | ||||
-rw-r--r-- | sysui/desktop/solaris/makefile.mk | 110 | ||||
-rw-r--r-- | sysui/desktop/suse/makefile.mk | 50 | ||||
-rw-r--r-- | sysui/desktop/tg_rpm.mk | 38 | ||||
-rw-r--r-- | sysui/desktop/util/makefile.mk | 57 |
16 files changed, 3 insertions, 1076 deletions
diff --git a/sysui/desktop/cleanversion/makefile.mk b/sysui/desktop/cleanversion/makefile.mk deleted file mode 100644 index 48416ac8fd99..000000000000 --- a/sysui/desktop/cleanversion/makefile.mk +++ /dev/null @@ -1,41 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=cleanversion - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -.INCLUDE : target.mk - -ALLTAR: $(MISC)$/cleanup.flag - -# imagine where rm is acting if MISC is empty... -.IF "$(MISC)"!="" - -# version changed - bin previous trees -$(MISC)$/cleanup.flag : ..$/productversion.mk - rm -rf `ls -d $(MISC)$/* | sed '/\/logs$/d'` && $(TOUCH) $@ - -.ENDIF # "$(MISC)"!="" - - diff --git a/sysui/desktop/debian/makefile.mk b/sysui/desktop/debian/makefile.mk deleted file mode 100644 index d61436eb3ad1..000000000000 --- a/sysui/desktop/debian/makefile.mk +++ /dev/null @@ -1,87 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=debian - -# !!! FIXME !!! -# debian-menus file. - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Product Version Information ---------------------------------- - -.INCLUDE : ../productversion.mk - -# --- Files -------------------------------------------------------- - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)" - -DEBFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i$(PRODUCTVERSION)-$(TARGET)-menus_$(PKGVERSION.$i)-$(PKGREV)_all.deb) - -.ENDIF - -# --- Targets ------------------------------------------------------- - -.INCLUDE : target.mk - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)" - -ALLTAR : $(DEBFILES) - - -%/DEBIAN/control : $$(@:f) - @$(MKDIRHIER) $(@:d) $*$/etc $*$/usr/share/applnk/Office $*$/usr/lib/menu - ln -sf /opt/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//)) $*$/etc$/ - /bin/sh -c -x "cd $(COMMONMISC)$/$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//) && DESTDIR=$(shell @cd $*; pwd) ICON_PREFIX=$(ICONPREFIX) KDEMAINDIR=/usr GNOMEDIR=/usr create_tree.sh" - @cat openoffice.org-debian-menus | sed -e 's/%PRODUCTNAME/$(PRODUCTNAME.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//)) $(PRODUCTVERSION.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))/' -e 's/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))/' -e 's/%ICONPREFIX/$(ICONPREFIX.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))/' > $*$/usr/lib/menu/$(*:f:s/_/ /:1:s/$(PRODUCTVERSION)//) - echo "Package: $(*:f:s/_/ /:1:s/$(PRODUCTVERSION)//)" > $@ - cat $(@:f) | tr -d "\015" | sed "s/%productname/$(PRODUCTNAME.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))/" >> $@ - echo "Version: $(PKGVERSION.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))-$(PKGREV)" >> $@ - @du -k -s $* | awk -F ' ' '{ printf "Installed-Size: %s\n", $$1 ; }' >> $@ - -%/DEBIAN/postinst : $$(@:f) - @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))/g" > $@ - -%/DEBIAN/postrm : $$(@:f) - @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))/g" > $@ - -%/DEBIAN/prerm : $$(@:f) - @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/$(PRODUCTVERSION)//))/g" > $@ - -# --- packaging --------------------------------------------------- - -# getuid.so fakes the user/group for us -$(DEBFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag -$(DEBFILES) : makefile.mk control postinst postrm prerm - -$(RM) $(@:d)$(@:f:s/_/ /:1)_* - $(RM) -r $(MISC)$/$(@:b) - dmake $(MISC)$/$(@:b)$/DEBIAN$/{control postinst postrm prerm} - @chmod -R g-w $(MISC)$/$(@:b) - @chmod a+rx $(MISC)$/$(@:b)$/DEBIAN $(MISC)/$(@:b)/DEBIAN/post* $(MISC)/$(@:b)/DEBIAN/pre* - @chmod g-s $(MISC)/$(@:b)/DEBIAN - @mkdir -p $(PKGDIR) - /bin/bash -c "LD_PRELOAD=$(SOLARBINDIR)/getuid.so dpkg-deb --build $(MISC)/$(@:b) $@" - $(RM) -r $(MISC)$/$(@:b) -# @chmod -R g+w $(MISC)/$(TARGET)/$(DEBFILE:f) - -.ENDIF diff --git a/sysui/desktop/freedesktop/makefile.mk b/sysui/desktop/freedesktop/makefile.mk deleted file mode 100644 index 28572c759eaf..000000000000 --- a/sysui/desktop/freedesktop/makefile.mk +++ /dev/null @@ -1,50 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=freedesktop - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Product Version Information ---------------------------------- - -.INCLUDE : ../productversion.mk - -# --- Files -------------------------------------------------------- - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" - -SPECFILE=$(TARGET)-menus.spec -RPMFLAGFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i-$(SPECFILE:b)-$(PKGVERSION.$i)-$(PKGREV).noarch.flag) - -.ENDIF - -# --- Targets ------------------------------------------------------- - -.INCLUDE : target.mk -.INCLUDE : ../tg_rpm.mk - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" - -$(RPMFLAGFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag - -.ENDIF diff --git a/sysui/desktop/icons/makefile.mk b/sysui/desktop/icons/makefile.mk deleted file mode 100644 index 2a9d633b8d0b..000000000000 --- a/sysui/desktop/icons/makefile.mk +++ /dev/null @@ -1,71 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=icons - -# --- Settings ----------------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Targets ------------------------------------------------------------- - -all: \ - $(MISC)$/oasis-database.ico \ - $(MISC)$/oasis-drawing-template.ico \ - $(MISC)$/oasis-drawing.ico \ - $(MISC)$/oasis-empty-template.ico \ - $(MISC)$/oasis-empty-document.ico \ - $(MISC)$/oasis-formula.ico \ - $(MISC)$/oasis-master-document.ico \ - $(MISC)$/oasis-presentation-template.ico \ - $(MISC)$/oasis-presentation.ico \ - $(MISC)$/oasis-spreadsheet-template.ico \ - $(MISC)$/oasis-spreadsheet.ico \ - $(MISC)$/oasis-text-template.ico \ - $(MISC)$/oasis-text.ico \ - $(MISC)$/oasis-web-template.ico \ - $(MISC)$/database.ico \ - $(MISC)$/drawing-template.ico \ - $(MISC)$/drawing.ico \ - $(MISC)$/empty-template.ico \ - $(MISC)$/empty-document.ico \ - $(MISC)$/formula.ico \ - $(MISC)$/master-document.ico \ - $(MISC)$/presentation-template.ico \ - $(MISC)$/presentation.ico \ - $(MISC)$/spreadsheet-template.ico \ - $(MISC)$/spreadsheet.ico \ - $(MISC)$/text-template.ico \ - $(MISC)$/text.ico \ - $(MISC)$/impress_app.ico \ - $(MISC)$/calc_app.ico \ - $(MISC)$/draw_app.ico \ - $(MISC)$/base_app.ico \ - $(MISC)$/writer_app.ico \ - $(MISC)$/math_app.ico \ - $(MISC)$/main_app.ico \ - $(MISC)$/open.ico \ - $(MISC)$/oxt-extension.ico - -$(MISC)$/%.ico: %.ico - $(COPY) $< $@ - -.INCLUDE : target.mk diff --git a/sysui/desktop/macosx/delzip b/sysui/desktop/macosx/delzip deleted file mode 100755 index e69de29bb2d1..000000000000 --- a/sysui/desktop/macosx/delzip +++ /dev/null diff --git a/sysui/desktop/macosx/makefile.mk b/sysui/desktop/macosx/makefile.mk deleted file mode 100644 index 871c77ec4863..000000000000 --- a/sysui/desktop/macosx/makefile.mk +++ /dev/null @@ -1,77 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. -TARGET=desktopmacosx - -# --- Settings ------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files ---------------------------------------------------- - -.IF "$(OS)"!="MACOSX" - -dummy: -# nothing - -.ELSE # "$(OS)"!="MACOSX" - -ZIPFLAGS = -r -ZIP1TARGET = osxicons -ZIP1DIR = ../icons -ZIP1LIST := $(shell $(PERL) -w list_icons.pl < Info.plist) - -CREATOR_TYPE=LIBO -EXECUTABLE=soffice - -.IF "$(WITH_LANG)"!="" -ULFDIR:=$(COMMONMISC)$/desktopshare -.ELSE # "$(WITH_LANG)"!="" -ULFDIR:=..$/share -.ENDIF # "$(WITH_LANG)"!="" - -# --- Targets -------------------------------------------------- - -.INCLUDE : target.mk - -.IF "$(ZIP1TARGETN)"!="" -ZIP1TARGETN : Info.plist extract_icons_names.pl - -.ENDIF # "$(ZIP1TARGETN)"!="" - -ALLTAR : $(COMMONMISC)$/{PkgInfo Info.plist} $(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip - -$(COMMONMISC)$/PkgInfo : - echo "APPL$(CREATOR_TYPE)" > $@ - - -$(COMMONMISC)$/Info.plist : $$(@:f) - sed -e "s|\%EXECUTABLE|${EXECUTABLE}|g" $< > $@ - -$(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip : $(COMMONMISC)$/$$(@:b)/InfoPlist.strings - cd $(<:d) && zip ../$(@:f).$(INPATH) $(<:f) - $(MV) -f $(COMMONMISC)$/$(@:f).$(INPATH) $@ - -$(COMMONMISC)$/InfoPlist_{$(alllangiso)}$/InfoPlist.strings : Info.plist $(ULFDIR)$/documents.ulf - $(MKDIRHIER) $(@:d) - $(PERL) -w gen_strings.pl -l $(@:d:d:b:s/InfoPlist_//) -p $< | iconv -f UTF-8 -t UTF-16 > $@.$(INPATH) - $(MV) -f $@.$(INPATH) $@ - -.ENDIF # "$(OS)"!="MACOSX" - diff --git a/sysui/desktop/mandriva/makefile.mk b/sysui/desktop/mandriva/makefile.mk deleted file mode 100644 index a3aa4c1fc4f6..000000000000 --- a/sysui/desktop/mandriva/makefile.mk +++ /dev/null @@ -1,50 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=mandriva - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Product Version Information ---------------------------------- - -.INCLUDE : ../productversion.mk - -# --- Files -------------------------------------------------------- - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" - -SPECFILE=$(TARGET)-menus.spec -RPMFLAGFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i-$(SPECFILE:b)-$(PKGVERSION.$i)-$(PKGREV).noarch.flag) - -.ENDIF - -# --- Targets ------------------------------------------------------- - -.INCLUDE : target.mk -.INCLUDE : ../tg_rpm.mk - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" - -$(RPMFLAGFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag - -.ENDIF diff --git a/sysui/desktop/productversion.mk b/sysui/desktop/productversion.mk deleted file mode 100644 index 1338f28db177..000000000000 --- a/sysui/desktop/productversion.mk +++ /dev/null @@ -1,76 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -.IF "$(OS)"=="LINUX" -PKGREV = $(BUILD) -.ELSE -PKGREV = $(LAST_MINOR:s/m//:s/s/./) -.ENDIF - -ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT) - -# create desktop-integration subfolder on linux -.IF "$(OS)"=="LINUX" || "$(OS)"=="AIX" -# rpm seems to require absolute paths here :( -PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration -RPMMACROS= \ - --define "_rpmdir $(PKGDIR)" \ - --define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm" -.ELSE -PKGDIR=$(BIN) -.ENDIF - -.INCLUDE : productversion.mk - -PKGVERSION = $(VERSIONMAJOR).$(VERSIONMINOR).$(VERSIONMICRO) - -# gnome-vfs treats everything behind the last '.' as an icon extension, -# even though the "icon_filename" in '.keys' is specified as filename -# without extension. Since it also does not know how to handle "2-writer" -# type icons :-), we are stripping all '.' for now. -# ToDo: maybe we use a product major later ?? -ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g) -# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg; -# the default values get replaced by make_installer.pl at (core0x) packaging time; -# another wrapper name can be forced by --with-unix-wrapper configure option -# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366 -.IF "$(UNIXWRAPPERNAME)" == "" -UNIXWRAPPERNAME = '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}' -.ENDIF - -# CAUTION! $(UNIXBASISROOTNAME) from openoffice.lst NOT available (!) -PRODUCTNAME.libreoffice = LibreOffice -PRODUCTVERSION.libreoffice = $(PRODUCTVERSION) -PRODUCTVERSIONSHORT.libreoffice = $(PRODUCTVERSIONSHORT) -PKGVERSION.libreoffice = $(PKGVERSION) -UNIXFILENAME.libreoffice = $(PRODUCTNAME.libreoffice:l)$(PRODUCTVERSION.libreoffice) -ICONPREFIX.libreoffice = $(UNIXFILENAME.libreoffice) - -PRODUCTNAME.lodev = LibreOfficeDev -PRODUCTVERSION.lodev = $(PRODUCTVERSION) -PRODUCTVERSIONSHORT.lodev = $(PRODUCTVERSIONSHORT) -PKGVERSION.lodev = $(PKGVERSION) -UNIXFILENAME.lodev = lodev$(PRODUCTVERSION.lodev) -ICONPREFIX.lodev = $(UNIXFILENAME.lodev) - -PRODUCTNAME.oxygenoffice = OxygenOffice -PRODUCTVERSION.oxygenoffice = $(PRODUCTVERSION) -PRODUCTVERSIONSHORT.oxygenoffice = $(PRODUCTVERSIONSHORT) -PKGVERSION.oxygenoffice = $(PKGVERSION) -UNIXFILENAME.oxygenoffice = $(PRODUCTNAME.oxygenoffice:l)$(PRODUCTVERSION.oxygenoffice) -ICONPREFIX.oxygenoffice = $(UNIXFILENAME.oxygenoffice) diff --git a/sysui/desktop/share/create_tree.sh b/sysui/desktop/share/create_tree.sh index 882dcbfb189d..ef9f32a33452 100755 --- a/sysui/desktop/share/create_tree.sh +++ b/sysui/desktop/share/create_tree.sh @@ -1,4 +1,3 @@ -#!/bin/sh # # This file is part of the LibreOffice project. # @@ -33,7 +32,7 @@ if [ "${KDEMAINDIR}" ]; then mkdir -p "${DESTDIR}/${KDEMAINDIR}/share/mimelnk/application" for i in `cat mimelnklist`; do - cp "${i}" "${DESTDIR}/${KDEMAINDIR}/share/mimelnk/application/${PREFIX}-${i}" + cp "${i}" "${DESTDIR}/${KDEMAINDIR}/share/mimelnk/application/${PREFIX}-`basename ${i}`" done chmod 0644 "${DESTDIR}/${KDEMAINDIR}/share/mimelnk/application/"* fi diff --git a/sysui/desktop/share/makefile.mk b/sysui/desktop/share/makefile.mk deleted file mode 100644 index 21c919adb278..000000000000 --- a/sysui/desktop/share/makefile.mk +++ /dev/null @@ -1,262 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=desktopshare - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Product Version Information ---------------------------------- - -.INCLUDE : ../productversion.mk - -# --- Files -------------------------------------------------------- - -.IF "$(WITH_LANG)"!="" -ULFDIR:=$(COMMONMISC)$/$(TARGET) -.ELSE # "$(WITH_LANG)"!="" -ULFDIR:=. -.ENDIF # "$(WITH_LANG)"!="" - -ULFFILES= \ - documents.ulf \ - launcher_comment.ulf \ - launcher_genericname.ulf \ - launcher_unityquicklist.ulf \ - launcher_name.ulf - -LAUNCHERLIST_APPS = writer calc draw impress math base printeradmin startcenter -LAUNCHERLIST = $(LAUNCHERLIST_APPS) qstart javafilter xsltfilter -LAUNCHERDEPN = ../menus/{$(LAUNCHERLIST)}.desktop - -LAUNCHERFLAGFILE = $(COMMONMISC)/$(TARGET)/xdg.flag - -MIMELIST = \ - text \ - text-template \ - spreadsheet \ - spreadsheet-template \ - drawing \ - drawing-template \ - presentation \ - presentation-template \ - formula \ - master-document \ - oasis-text \ - oasis-text-template \ - oasis-text-flat-xml \ - oasis-spreadsheet \ - oasis-spreadsheet-template \ - oasis-spreadsheet-flat-xml \ - oasis-drawing \ - oasis-drawing-template \ - oasis-drawing-flat-xml \ - oasis-presentation \ - oasis-presentation-template \ - oasis-presentation-flat-xml \ - oasis-formula \ - oasis-master-document \ - oasis-database \ - oasis-web-template \ - ms-excel-sheet-12 \ - ms-excel-sheet \ - ms-excel-template-12 \ - ms-powerpoint-presentation-12 \ - ms-powerpoint-presentation \ - ms-powerpoint-template-12 \ - ms-word-document-12 \ - ms-word-document \ - ms-word-document2 \ - ms-word-template-12 \ - openxmlformats-officedocument-presentationml-presentation \ - openxmlformats-officedocument-presentationml-template \ - openxmlformats-officedocument-spreadsheetml-sheet \ - openxmlformats-officedocument-spreadsheetml-template \ - openxmlformats-officedocument-wordprocessingml-document \ - openxmlformats-officedocument-wordprocessingml-template \ - ms-excel-sheet-binary-12 \ - extension - -MIMEICONLIST = \ - oasis-text \ - oasis-text-template \ - oasis-spreadsheet \ - oasis-spreadsheet-template \ - oasis-drawing \ - oasis-drawing-template \ - oasis-presentation \ - oasis-presentation-template \ - oasis-formula \ - oasis-master-document \ - oasis-database \ - oasis-web-template \ - text \ - text-template \ - spreadsheet \ - spreadsheet-template \ - drawing \ - drawing-template \ - presentation \ - presentation-template \ - formula \ - master-document \ - database \ - extension - -ICONDEPN = \ - ../icons/hicolor/{16x16 32x32 48x48}/apps/{$(LAUNCHERLIST_APPS)}.png \ - ../icons/hicolor/{16x16 32x32 48x48}/mimetypes/{$(MIMEICONLIST)}.png \ - ../icons/locolor/{16x16 32x32}/apps/{$(LAUNCHERLIST_APPS)}.png \ - ../icons/locolor/{16x16 32x32}/mimetypes/{$(MIMEICONLIST)}.png - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk - -.IF "$(OS)"!="WNT" -ALLTAR : $(LAUNCHERFLAGFILE) $(SPECFILES) $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag - -.ENDIF # "$(OS)"!="WNT" - -# -# Copy/patch the .desktop files to the output tree and -# merge-in the translations. -# - -$(LAUNCHERFLAGFILE) : ../productversion.mk brand.pl translate.pl $(ULFDIR)$/launcher_name.ulf $(ULFDIR)$/launcher_comment.ulf $(ULFDIR)/launcher_genericname.ulf $(ULFDIR)/launcher_unityquicklist.ulf -$(LAUNCHERFLAGFILE) : $(LAUNCHERDEPN) - @@-$(MKDIRHIER) $(@:db).$(INPATH).$(@:f) - @echo Creating desktop entries for $(@:f) .. - @echo --------------------------------- - @$(PERL) brand.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -u $(UNIXWRAPPERNAME) --iconprefix '$${{UNIXBASISROOTNAME}}-' $< $(@:db).$(INPATH).$(@:f) - @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "Name" $(ULFDIR)$/launcher_name.ulf - @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "Comment" $(ULFDIR)$/launcher_comment.ulf - @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "GenericName" $(ULFDIR)$/launcher_genericname.ulf - @$(PERL) translate.pl -p '$${{PRODUCTNAME}} $${{PRODUCTVERSION}}' -d $(@:db).$(INPATH).$(@:f) --ext "desktop" --key "UnityQuicklist" $(ULFDIR)$/launcher_unityquicklist.ulf -.IF "$(WITH_LIBSN)"=="YES" - @noop x$(foreach,i,$(LAUNCHERLIST) $(shell @echo "StartupNotify=true" >> $(@:db).$(INPATH).$(@:f)/$i.desktop))x -.ENDIF - @$(MV) -f $(@:db).$(INPATH).$(@:f)/* $(@:d) - @rmdir $(@:db).$(INPATH).$(@:f) - @touch $@ - -# -# Create shared mime info xml file -# -$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.org.xml : ../mimetypes/{$(MIMELIST)}.desktop create_mime_xml.pl -$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.org.xml : $(ULFDIR)$/documents.ulf - @echo Create shared mime info xml file .. - @echo --------------------------------- - @$(PERL) create_mime_xml.pl $< > $@.$(INPATH) - @mv -f $@.$(INPATH) $@ - -# -# Create GNOME mime-info files -# - -$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.keys : ../mimetypes/openoffice.mime brand.pl translate.pl ../productversion.mk $(ULFDIR)$/documents.ulf -$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.keys : ../mimetypes/{$(MIMELIST)}.keys - @@-$(MKDIRHIER) $(@:d) - @echo Creating GNOME .keys file for $(@:d:d:f) .. - @echo --------------------------------- - @$(PERL) brand.pl -p $(PRODUCTNAME.$(@:d:d:f)) -u $(UNIXFILENAME.$(@:d:d:f)) --iconprefix '$(ICONPREFIX.$(@:d:d:f))-' $< $(MISC)/$(@:d:d:f) - @$(PERL) translate.pl -p $(PRODUCTNAME.$(@:d:d:f)) -d $(MISC)/$(@:d:d:f) --ext "keys" --key "description" $(ULFDIR)$/documents.ulf - @cat $(MISC)/$(@:d:d:f)/{$(MIMELIST)}.keys > $@.$(INPATH) - @mv -f $@.$(INPATH) $@ - -$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.mime : ../mimetypes/$$(@:f) - @@-$(MKDIRHIER) $(@:d) - @echo Creating GNOME .mime file for $(@:d:d:f) .. - @echo --------------------------------- - @cat $< | tr -d "\015" > $@.$(INPATH) - @mv -f $@.$(INPATH) $@ - -$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.applications : ../productversion.mk -$(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.applications : ../mimetypes/$$(@:f) - @@-$(MKDIRHIER) $(@:d) - @echo Creating GNOME .applications file for $(@:d:d:f) .. - @echo --------------------------------- - @cat $< | tr -d "\015" | sed -e "s/OFFICENAME/$(UNIXFILENAME.$(@:d:d:f))/" -e "s/%PRODUCTNAME/$(PRODUCTNAME.$(@:d:d:f)) $(PRODUCTVERSION.$(@:d:d:f))/" > $@.$(INPATH) - @mv -f $@.$(INPATH) $@ - -# -# Create KDE mimelnk files -# -$(COMMONMISC)$/{$(PRODUCTLIST)}$/mimelnklist : brand.pl translate.pl ../productversion.mk $(ULFDIR)$/documents.ulf -$(COMMONMISC)$/{$(PRODUCTLIST)}$/mimelnklist : ../mimetypes/{$(MIMELIST)}.desktop - @@-$(MKDIRHIER) $(@:db).$(INPATH) - @echo Creating KDE mimelnk entries for $(@:d:d:f) .. - @echo --------------------------------- - @$(PERL) brand.pl -p "$(PRODUCTNAME.$(@:d:d:f))" -u $(UNIXFILENAME.$(@:d:d:f)) --iconprefix '$(ICONPREFIX.$(@:d:d:f))-' $< $(@:db).$(INPATH) - @$(PERL) ../share/translate.pl -p "$(PRODUCTNAME.$(@:d:d:f))" -d $(@:db).$(INPATH) --ext "desktop" --key "Comment" $(ULFDIR)$/documents.ulf - @mv -f $(@:db).$(INPATH)/* $(@:d) - @rmdir $(@:db).$(INPATH) - @echo "{$(MIMELIST)}.desktop" > $@ - -# -# Generate customized install scripts -# -$(COMMONMISC)$/{$(PRODUCTLIST)}$/create_tree.sh : makefile.mk -$(COMMONMISC)$/{$(PRODUCTLIST)}$/create_tree.sh : $$(@:f) - @@-$(MKDIRHIER) $(@:d) - @echo "#!/bin/sh" > $@.$(INPATH) - @echo "PREFIX=$(UNIXFILENAME.$(@:d:d:f))" >> $@.$(INPATH) - @echo "ICON_PREFIX=$(ICONPREFIX.$(@:d:d:f))" >> $@.$(INPATH) - @echo "ICON_SOURCE_DIR=../../../desktop/icons" >> $@.$(INPATH) - @echo "PRODUCTVERSION=$(PRODUCTVERSION.$(@:d:d:f))" >> $@.$(INPATH) - @cat $< >> $@.$(INPATH) - @chmod 774 $@.$(INPATH) - @mv -f $@.$(INPATH) $@ - -# -# Create skript files -# - -$(COMMONMISC)$/{$(PRODUCTLIST)}$/{openoffice printeradmin}.sh : ../productversion.mk -$(COMMONMISC)$/{$(PRODUCTLIST)}$/{openoffice printeradmin}.sh : $$(@:f) - @@-$(MKDIRHIER) $(@:d) - @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(@:d:d:f))/g" > $@.$(INPATH) - @mv -f $@.$(INPATH) $@ - -# -# Launcher list -# - -$(COMMONMISC)$/{$(PRODUCTLIST)}$/launcherlist : $(LAUNCHERDEPN) - @@-$(MKDIRHIER) $(@:d) - @echo "{$(LAUNCHERLIST:s/qstart//)}.desktop" >$@.$(INPATH) - @mv -f $@.$(INPATH) $@ - -# -# Flagfile -# -$(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag : $(ICONDEPN) \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/launcherlist \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/mimelnklist \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/create_tree.sh \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.keys \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.mime \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.org.xml \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/openoffice.applications \ - $(COMMONMISC)$/{$(PRODUCTLIST)}$/{openoffice printeradmin}.sh - @touch $@ - diff --git a/sysui/desktop/share/translate.pl b/sysui/desktop/share/translate.pl index 200f6a8bbe8e..9bb60f271366 100644 --- a/sysui/desktop/share/translate.pl +++ b/sysui/desktop/share/translate.pl @@ -129,8 +129,8 @@ foreach $template (keys %templates) { my $translations = $templates{$template}->{'translations'}; foreach my $locale (keys %{$translations}) { my $value = $translations->{$locale}; - print "locale is $locale\n"; - print "value is $value\n"; + # print "locale is $locale\n"; + # print "value is $value\n"; if ($value) { if ($ext eq "desktop") { print OUTFILE "$outkey\[$locale\]=$value\n"; diff --git a/sysui/desktop/slackware/makefile.mk b/sysui/desktop/slackware/makefile.mk deleted file mode 100644 index 334405f5e7e3..000000000000 --- a/sysui/desktop/slackware/makefile.mk +++ /dev/null @@ -1,103 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=slackware - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Product Version Information ---------------------------------- - -.INCLUDE : ../productversion.mk - -# --- Files -------------------------------------------------------- - -MENUFILES=$(PKGDIR)$/{$(PRODUCTLIST)}$(PRODUCTVERSION)-$(TARGET)-menus-$(PKGVERSION)-noarch-$(PKGREV).tgz - -# --- Targets ------------------------------------------------------- - -.INCLUDE : target.mk - -.IF "$(OS)" == "LINUX" - -ALLTAR : $(MENUFILES) - -$(MISC)/$(TARGET)/usr/share/applications/ : - @$(MKDIRHIER) $(@) - -# --- slackware-specific stuff ------------------------------------ -# symlinks shall not be included in the tarball, but created with the doinst-script - -# FIXME: removal of *-extension.* only to create identical packages to OOF680 -%/usr/share/applications : - @$(MKDIRHIER) $@ - /bin/sh -c "cd $(COMMONMISC)$/$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//); DESTDIR=$(shell @cd $*; pwd) GNOMEDIR="" ICON_PREFIX=$(ICONPREFIX.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//)) KDEMAINDIR=/opt/kde .$/create_tree.sh" - $(RM) $*$/opt$/kde$/share$/icons$/*$/*$/*$/*-extension.png - $(RM) $*$/opt$/kde$/share$/mimelnk$/application$/*-extension.desktop - $(RM) $*$/usr$/share$/applications$/*.desktop - $(RM) $*$/usr$/bin$/soffice - -%$/install$/doinst.sh : update-script - @echo "( cd etc ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//)) )" > $@ - @echo "( cd etc ; ln -snf /opt/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//):s/-//) $(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//)) )" >> $@ - @echo "( cd usr/bin ; rm -rf soffice )" >> $@ - @echo "( cd usr/bin ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))/program/soffice soffice )" >> $@ - @echo -e $(foreach,i,$(shell @cat $(COMMONMISC)$/$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//)/launcherlist) "\n( cd usr/share/applications ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))-$i )\n( cd usr/share/applications ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))/share/xdg/$i $(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))-$i )") >> $@ - @cat $< >> $@ - -%$/install$/slack-desc : slack-desc - @$(MKDIRHIER) $(@:d) - @sed -e "s/PKGNAME/$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//)-$(TARGET)-menus/g" -e "s/PKGVERSION/$(PKGVERSION.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))/g" \ - -e "s/LONGPRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//)) $(PRODUCTVERSION.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))/g" \ - -e "s/PRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))/g" \ - -e "s/UNIXFILENAME/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/$(PRODUCTVERSION)//))/g" $< > $@ - -# needed to satisfy the slackware package tools - they need -# the entries like this -# ./ <- very important -# directory/file -# the follwoing does not work (no description found then): -# ./ -# ./directory/file -# and this doesn't work either (broken file-list, package cannot be removed) -# directory/file - -$(MISC)/$(TARGET)/empty.tar : - @$(MKDIRHIER) $(@:d)/empty - @$(GNUTAR) -C $(MISC)/$(TARGET)/empty --owner=root --group=root --same-owner -cf $@ . - - -# --- packaging --------------------------------------------------- - -$(MENUFILES) : makefile.mk slack-desc update-script $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag -$(MENUFILES) : $(MISC)/$(TARGET)/empty.tar - @-$(MKDIRHIER) $(@:d) - -$(RM) $(@:d)$/$(@:b:s/-/ /:1)-$(TARGET)-menus-*.tgz - -$(RM) -r $(MISC)$/$(@:b) - dmake $(MISC)$/$(@:b)$/usr/share/applications $(MISC)$/$(@:b)$/install$/slack-desc $(MISC)$/$(@:b)$/install$/doinst.sh - @$(COPY) $(MISC)/$(TARGET)$/empty.tar $@.tmp - @$(GNUTAR) -C $(MISC)/$(@:b) --owner=root --group=root --same-owner --exclude application.flag -rf $@.tmp install usr opt - @gzip < $@.tmp > $@ - @$(RM) $@.tmp - $(RM) -r $(MISC)$/$(@:b) - -.ENDIF diff --git a/sysui/desktop/solaris/makefile.mk b/sysui/desktop/solaris/makefile.mk deleted file mode 100644 index 3a9e118d2e49..000000000000 --- a/sysui/desktop/solaris/makefile.mk +++ /dev/null @@ -1,110 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=solaris - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Product Version Information ---------------------------------- - -.INCLUDE : ../productversion.mk - -# --- Files -------------------------------------------------------- - -.IF "$(OS)"=="SOLARIS" - -PKGFILES = $(BIN)$/pkg$/{$(PRODUCTLIST)}-desktop-integration.tar.gz - -PKGDATESTRING = $(shell @date -u +%Y.%m.%d) -PKGARCH=all - -FASPAC=`test -f $(SOLARBINDIR)/faspac-so.sh && echo "/sbin/sh" || echo "echo"` - -.ENDIF - -# --- Targets ------------------------------------------------------- - -.INCLUDE : target.mk - -.IF "$(OS)"=="SOLARIS" - -ALLTAR : $(PKGFILES) - -# --- pkginfo ---------------------------------------------------- - -# Copy the pkginfo file to $(MISC) -$(MISC)/{$(PRODUCTLIST)}/{pkginfo depend} : $$(@:f) ../productversion.mk makefile.mk - @$(MKDIRHIER) $(@:d) - @cat $(@:f) | tr -d "\015" | sed -e "s/%PRODUCTNAME/$(PRODUCTNAME.$(@:d:d:f)) $(PRODUCTVERSION.$(@:d:d:f))/g" -e "s/%pkgprefix/$(@:d:d:f:s/.//)/" > $@ - -# --- mailcap --------------------------------- - -# Copy the prototype file to $(MISC) -$(MISC)/{$(PRODUCTLIST)}/mailcap : $$(@:f) ../productversion.mk - @$(MKDIRHIER) $(@:d) - @cat $(@:f) | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(@:d:d:f))/g" -e "s_%SOURCE_$(MISC)/$(@:d:d:f)_g" > $@ - -# --- copyright-------------------------------- - -# Copy the copyright file to $(MISC) -$(MISC)/{$(PRODUCTLIST)}/copyright : $$(@:f) - @$(MKDIRHIER) $(@:d) - @cat $(@:f) | tr -d "\015" > $@ - -# --- postinstall-------------------------------- - - -# Copy the postinstall file to $(MISC) -$(MISC)/{$(PRODUCTLIST)}/postinstall : $$(@:f) - @$(MKDIRHIER) $(@:d) - @cat $(@:f) | tr -d "\015" > $@ - -# --- postremove-------------------------------- - -# Copy the postremove file to $(MISC) -$(MISC)/{$(PRODUCTLIST)}/postremove : $$(@:f) - @$(MKDIRHIER) $(@:d) - @cat $(@:f) | tr -d "\015" > $@ - -# --- prototype --------------------------------------------------- - -# Copy the prototype file to $(MISC) -$(MISC)/{$(PRODUCTLIST)}$/prototype : $$(@:f) ../productversion.mk makefile.mk - @$(MKDIRHIER) $(@:d) - cat $(@:f) | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(@:d:d:f))/g" -e "s_%SOURCE_$(COMMONMISC)/$(@:d:d:f)_g" -e "s/%ICONPREFIX/$(ICONPREFIX.$(@:d:d:f))/g" > $@ - -# --- packaging --------------------------------------------------- - -#$(PKGFILES) : $(MISC)/{$(PRODUCTLIST)}/{copyright pkginfo depend mailcap postinstall postremove} makefile.mk $(MISC)/$$(@:b:b:s/-desktop-integration//)/$$(@:b:b:s/-desktop-integration//).xml -$(PKGFILES) : $(MISC)/{$(PRODUCTLIST)}/{copyright pkginfo depend mailcap postinstall postremove} makefile.mk $(MISC)/$$(@:b:b:s/-desktop-integration//)/openoffice.org.xml -$(PKGFILES) : $(MISC)$/{$(PRODUCTLIST)}$/prototype - @-$(RM) $(BIN)$/$(@:f) - @$(MKDIRHIER) $(@:d) - pkgmk -l 1073741824 -r . -f $(MISC)$/$(@:b:b:s/-/ /:1)$/prototype -o -d $(PKGDIR) ARCH=$(PKGARCH) VERSION=$(PKGVERSION.$(@:b:s/-/ /:1)),REV=$(PKGREV).$(PKGDATESTRING) -.IF "$(DONTCOMPRESS)"=="" - $(FASPAC) $(SOLARBINDIR)/faspac-so.sh -a -d $(PKGDIR) $(@:b:b:s/-/ /:1:s/.//)$(PRODUCTVERSIONSHORT)-desktop-int -.ENDIF # "$(DONTCOMPRESS)"=="" - @$(GNUTAR) -cf - -C $(PKGDIR) $(@:b:b:s/-/ /:1:s/.//)$(PRODUCTVERSIONSHORT)-desktop-int | gzip > $@ - @rm -rf $(PKGDIR)/$(@:b:b:s/-/ /:1:s/.//)$(PRODUCTVERSIONSHORT)-desktop-int - -.ENDIF diff --git a/sysui/desktop/suse/makefile.mk b/sysui/desktop/suse/makefile.mk deleted file mode 100644 index 86891371d7de..000000000000 --- a/sysui/desktop/suse/makefile.mk +++ /dev/null @@ -1,50 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=suse - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Product Version Information ---------------------------------- - -.INCLUDE : ../productversion.mk - -# --- Files -------------------------------------------------------- - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" - -SPECFILE=$(TARGET)-menus.spec -RPMFLAGFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i-$(SPECFILE:b)-$(PKGVERSION.$i)-$(PKGREV).noarch.flag) - -.ENDIF - -# --- Targets ------------------------------------------------------- - -.INCLUDE : target.mk -.INCLUDE : ../tg_rpm.mk - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" - -$(RPMFLAGFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag - -.ENDIF diff --git a/sysui/desktop/tg_rpm.mk b/sysui/desktop/tg_rpm.mk deleted file mode 100644 index e9983ad407ab..000000000000 --- a/sysui/desktop/tg_rpm.mk +++ /dev/null @@ -1,38 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" - -ALLTAR : $(RPMFLAGFILES) - -$(RPMFLAGFILES) : $(SPECFILE) - @-$(MKDIRHIER) $(@:d) - -$(RM) $(@:d)$(@:b:s/-/ /:1)-$(SPECFILE:b)-* - $(RPM) -bb $< $(RPMMACROS) \ - --buildroot $(ABSLOCALOUT)$/misc$/$(@:b) \ - --define "_builddir $(shell @cd $(COMMONMISC)$/$(@:b:s/-/ /:1) && pwd)" \ - --define "productname $(PRODUCTNAME.$(@:b:s/-/ /:1))" \ - --define "pkgprefix $(@:b:s/-/ /:1)$(PRODUCTVERSION.$(@:b:s/-/ /:1))" \ - --define "unixfilename $(UNIXFILENAME.$(@:b:s/-/ /:1))" \ - --define "productversion $(PRODUCTVERSION.$(@:b:s/-/ /:1))" \ - --define "iconprefix $(ICONPREFIX.$(@:b:s/-/ /:1))" \ - --define "version $(PKGVERSION.$(@:b:s/-/ /:1))" \ - --define "release $(PKGREV)" \ - --define "__debug_install_post %nil" \ - --define "_unpackaged_files_terminate_build 0" && $(TOUCH) $@ -.ENDIF diff --git a/sysui/desktop/util/makefile.mk b/sysui/desktop/util/makefile.mk deleted file mode 100644 index 6a5b8c055867..000000000000 --- a/sysui/desktop/util/makefile.mk +++ /dev/null @@ -1,57 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=..$/.. - -PRJNAME=sysui -TARGET=launcher - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk -.INCLUDE : ..$/productversion.mk - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" -RPMTARFILES=$(BIN)$/rpm$/{$(PRODUCTLIST)}-desktop-integration.tar.gz -.ENDIF - -.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)" -DEBTARFILES=$(BIN)$/deb$/{$(PRODUCTLIST)}-desktop-integration.tar.gz -.ENDIF - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk - -ALLTAR: $(RPMTARFILES) $(DEBTARFILES) - -.IF "$(RPMTARFILES)" != "" - -$(RPMTARFILES) : $(PKGDIR) - $(MKDIRHIER) $(@:d) - $(GNUTAR) -C $(PKGDIR:d:d) -cf - $(PKGDIR:f)$/{$(shell cd $(PKGDIR); ls $(@:b:b:s/-/ /:1)*.rpm)} | gzip > $@ - -.ENDIF # "$(TARFILE)" != "" - -.IF "$(DEBTARFILES)" != "" - -$(DEBTARFILES) : $(PKGDIR) - $(MKDIRHIER) $(@:d) - $(GNUTAR) -C $(PKGDIR:d:d) -cf - $(PKGDIR:f)$/{$(shell @cd $(PKGDIR); ls $(@:b:b:s/-/ /:1)*.deb)} | gzip > $@ - -.ENDIF |