xref: /aoo41x/main/sysui/desktop/productversion.mk (revision 10fe4fb2)
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
24.IF "$(OS)"=="LINUX"
25PKGREV = $(BUILD)
26.ELSE
27PKGREV = $(LAST_MINOR:s/m//:s/s/./)
28.ENDIF
29
30ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT)
31
32# create desktop-integration subfolder on Linux
33.IF "$(OS)"=="LINUX"
34# rpm seems to require absolute paths here :(
35PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration
36RPMMACROS= \
37	--define "_rpmdir $(PKGDIR)" \
38	--define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm"
39.ELSE
40PKGDIR=$(BIN)
41.ENDIF
42
43# CAUTION! here the parsing result from openoffice.lst is NOT available, so this is hardcoded
44# but should not be.
45# It has to be equal to PRODUCTNAME:l:s/\s/\_/g - see solenv/bin/modules/installer/setupscript.pm
46PRODUCTLIST = openoffice
47
48# default values to minimize maintenance effort
49
50# CAUTION! $(OOOBASEVERSION) from openoffice.lst NOT available (!)
51PRODUCTVERSION = 4.1.13
52
53# CAUTION! $(BRANDPACKAGEVERSION) from openoffice.lst NOT available (!)
54PRODUCTVERSIONSHORT = 4
55
56PKGVERSION = $(PRODUCTVERSION)
57# gnome-vfs treats everything behind the last '.' as an icon extension,
58# even though the "icon_filename" in '.keys' is specified as filename
59# without extension. Since it also does not know how to handle "2-writer"
60# type icons :-), we are stripping all '.' for now.
61# ToDo: maybe we use a product major later ??
62ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g)
63# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg;
64# the default values get replaced by make_installer.pl at (core0x) packaging time;
65# another wrapper name can be forced by --with-unix-wrapper configure option
66# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366
67UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
68
69# CAUTION! $(UNIXBASISROOTNAME) from openoffice.lst NOT available (!)
70PRODUCTNAME.openoffice = OpenOffice
71
72PRODUCTVERSION.openoffice = $(PRODUCTVERSION)
73PRODUCTVERSIONSHORT.openoffice = $(PRODUCTVERSIONSHORT)
74PKGVERSION.openoffice = $(PKGVERSION)
75UNIXFILENAME.openoffice = $(PRODUCTNAME.openoffice:l:s/ /_/g)$(PRODUCTVERSIONSHORT.openoffice)
76ICONPREFIX.openoffice = $(UNIXFILENAME.openoffice:s/.//g)
77
78