update dev300-m58
[ooovba.git] / sysui / desktop / productversion.mk
blob7d2467d32e7e2f61628e1849d1583a8f8b095173
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: productversion.mk,v $
11 # $Revision: 1.28 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
31 .IF "$(OS)"=="LINUX"
32 PKGREV = $(BUILD)
33 .ELSE
34 PKGREV = $(LAST_MINOR:s/m//:s/s/./)
35 .ENDIF
37 ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT)
39 # create desktop-integration subfolder on linux
40 .IF "$(OS)"=="LINUX"
41 # rpm seems to require absolute paths here :(
42 PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration
43 RPMMACROS= \
44 --define "_rpmdir $(PKGDIR)" \
45 --define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm"
46 .ELSE
47 PKGDIR=$(BIN)
48 .ENDIF
50 PRODUCTLIST = openoffice.org broffice.org
52 # default values to minimize maintainance effort
53 PRODUCTVERSION = 3.2
54 PRODUCTVERSIONSHORT = 3
55 PKGVERSION = $(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 ??
61 ICONVERSION = $(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
66 UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
68 PRODUCTNAME.openoffice.org = OpenOffice.org
69 PRODUCTVERSION.openoffice.org = $(PRODUCTVERSION)
70 PRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT)
71 PKGVERSION.openoffice.org = $(PKGVERSION)
72 UNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org)
73 ICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g)
75 PRODUCTNAME.broffice.org = BrOffice.org
76 PRODUCTVERSION.broffice.org = $(PRODUCTVERSION)
77 PRODUCTVERSIONSHORT.broffice.org = $(PRODUCTVERSIONSHORT)
78 PKGVERSION.broffice.org = $(PKGVERSION)
79 UNIXFILENAME.broffice.org = $(PRODUCTNAME.broffice.org:l)$(PRODUCTVERSIONSHORT.broffice.org)
80 ICONPREFIX.broffice.org = $(UNIXFILENAME.broffice.org:s/.//g)