merged tag ooo/OOO330_m14
[LibreOffice.git] / sysui / desktop / productversion.mk
blob24b1a2db042dc054b8174dbe4f499dd3ebe3e475
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
27 .IF "$(OS)"=="LINUX"
28 PKGREV = $(BUILD)
29 .ELSE
30 PKGREV = $(LAST_MINOR:s/m//:s/s/./)
31 .ENDIF
33 ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT)
35 # create desktop-integration subfolder on linux
36 .IF "$(OS)"=="LINUX"
37 # rpm seems to require absolute paths here :(
38 PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration
39 RPMMACROS= \
40 --define "_rpmdir $(PKGDIR)" \
41 --define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm"
42 .ELSE
43 PKGDIR=$(BIN)
44 .ENDIF
46 PRODUCTLIST = openoffice.org broffice.org
48 # default values to minimize maintainance effort
49 PRODUCTVERSION = 3.3
50 PRODUCTVERSIONSHORT = 3
51 PKGVERSION = $(PRODUCTVERSION)
52 # gnome-vfs treats everything behind the last '.' as an icon extension,
53 # even though the "icon_filename" in '.keys' is specified as filename
54 # without extension. Since it also does not know how to handle "2-writer"
55 # type icons :-), we are stripping all '.' for now.
56 # ToDo: maybe we use a product major later ??
57 ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g)
58 # UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg;
59 # the default values get replaced by make_installer.pl at (core0x) packaging time;
60 # another wrapper name can be forced by --with-unix-wrapper configure option
61 # which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366
62 UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
64 PRODUCTNAME.openoffice.org = OpenOffice.org
65 PRODUCTVERSION.openoffice.org = $(PRODUCTVERSION)
66 PRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT)
67 PKGVERSION.openoffice.org = $(PKGVERSION)
68 UNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org)
69 ICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g)
71 PRODUCTNAME.broffice.org = BrOffice.org
72 PRODUCTVERSION.broffice.org = $(PRODUCTVERSION)
73 PRODUCTVERSIONSHORT.broffice.org = $(PRODUCTVERSIONSHORT)
74 PKGVERSION.broffice.org = $(PKGVERSION)
75 UNIXFILENAME.broffice.org = $(PRODUCTNAME.broffice.org:l)$(PRODUCTVERSIONSHORT.broffice.org)
76 ICONPREFIX.broffice.org = $(UNIXFILENAME.broffice.org:s/.//g)