xref: /aoo41x/main/sysui/desktop/productversion.mk (revision bda541eb)
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. When replacing with $(UNIXBASISROOTNAME) it will be empty (!)
44PRODUCTLIST = openoffice.org
45
46# default values to minimize maintainance effort
47
48# CAUTION! $(OOOBASEVERSION) from openoffice.lst NOT available (!)
49PRODUCTVERSION = 3.4
50
51# CAUTION! $(BRANDPACKAGEVERSION) from openoffice.lst NOT available (!)
52PRODUCTVERSIONSHORT = 3
53
54PKGVERSION = $(PRODUCTVERSION)
55# gnome-vfs treats everything behind the last '.' as an icon extension,
56# even though the "icon_filename" in '.keys' is specified as filename
57# without extension. Since it also does not know how to handle "2-writer"
58# type icons :-), we are stripping all '.' for now.
59# ToDo: maybe we use a product major later ??
60ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g)
61# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg;
62# the default values get replaced by make_installer.pl at (core0x) packaging time;
63# another wrapper name can be forced by --with-unix-wrapper configure option
64# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366
65UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
66
67# CAUTION! $(UNIXBASISROOTNAME) from openoffice.lst NOT available (!)
68PRODUCTNAME.openoffice.org = OpenOffice.org
69
70PRODUCTVERSION.openoffice.org = $(PRODUCTVERSION)
71PRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT)
72PKGVERSION.openoffice.org = $(PKGVERSION)
73UNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org)
74ICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g)
75
76