xref: /trunk/main/sysui/desktop/productversion.mk (revision 86a5f09d)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23.IF "$(OS)"=="LINUX"
24PKGREV          = $(BUILD)
25.ELSE
26PKGREV          = $(LAST_MINOR:s/m//:s/s/./)
27.ENDIF
28
29ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT)
30
31# create desktop-integration subfolder on linux
32.IF "$(OS)"=="LINUX"
33# rpm seems to require absolute paths here :(
34PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration
35RPMMACROS= \
36	--define "_rpmdir $(PKGDIR)" \
37	--define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm"
38.ELSE
39PKGDIR=$(BIN)
40.ENDIF
41
42# CAUTION! here the parsing result from openoffice.lst is NOT available, so this is hardcoded
43# but should not be.
44# It has to be equal to PRODUCTNAME:l:s/\s/\_/g - see solenv/bin/modules/installer/setupscript.pm
45PRODUCTLIST = openoffice
46
47# default values to minimize maintainance effort
48
49# CAUTION! $(OOOBASEVERSION) from openoffice.lst NOT available (!)
50PRODUCTVERSION = 4.1
51
52# CAUTION! $(BRANDPACKAGEVERSION) from openoffice.lst NOT available (!)
53PRODUCTVERSIONSHORT = 4
54
55PKGVERSION = $(PRODUCTVERSION)
56# gnome-vfs treats everything behind the last '.' as an icon extension,
57# even though the "icon_filename" in '.keys' is specified as filename
58# without extension. Since it also does not know how to handle "2-writer"
59# type icons :-), we are stripping all '.' for now.
60# ToDo: maybe we use a product major later ??
61ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g)
62# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg;
63# the default values get replaced by make_installer.pl at (core0x) packaging time;
64# another wrapper name can be forced by --with-unix-wrapper configure option
65# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366
66UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
67
68# CAUTION! $(UNIXBASISROOTNAME) from openoffice.lst NOT available (!)
69PRODUCTNAME.openoffice = OpenOffice
70
71PRODUCTVERSION.openoffice = $(PRODUCTVERSION)
72PRODUCTVERSIONSHORT.openoffice = $(PRODUCTVERSIONSHORT)
73PKGVERSION.openoffice = $(PKGVERSION)
74UNIXFILENAME.openoffice = $(PRODUCTNAME.openoffice:l:s/ /_/g)$(PRODUCTVERSIONSHORT.openoffice)
75ICONPREFIX.openoffice = $(UNIXFILENAME.openoffice:s/.//g)
76
77