xref: /aoo41x/main/sysui/desktop/productversion.mk (revision bda541eb)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
24cdf0e10cSrcweirPKGREV          = $(BUILD)
25cdf0e10cSrcweir.ELSE
26cdf0e10cSrcweirPKGREV          = $(LAST_MINOR:s/m//:s/s/./)
27cdf0e10cSrcweir.ENDIF
28cdf0e10cSrcweir
29cdf0e10cSrcweirABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT)
30cdf0e10cSrcweir
31cdf0e10cSrcweir# create desktop-integration subfolder on linux
32cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
33cdf0e10cSrcweir# rpm seems to require absolute paths here :(
34cdf0e10cSrcweirPKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration
35cdf0e10cSrcweirRPMMACROS= \
36cdf0e10cSrcweir	--define "_rpmdir $(PKGDIR)" \
37cdf0e10cSrcweir	--define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm"
38cdf0e10cSrcweir.ELSE
39cdf0e10cSrcweirPKGDIR=$(BIN)
40cdf0e10cSrcweir.ENDIF
41cdf0e10cSrcweir
42*bda541ebSArmin Le Grand# CAUTION! here the parsing result from openoffice.lst is NOT available, so this is hardcoded
43*bda541ebSArmin Le Grand# but should not be. When replacing with $(UNIXBASISROOTNAME) it will be empty (!)
44451f97f9SPedro GiffuniPRODUCTLIST = openoffice.org
45cdf0e10cSrcweir
46*bda541ebSArmin Le Grand# default values to minimize maintainance effort
47*bda541ebSArmin Le Grand
48*bda541ebSArmin Le Grand# CAUTION! $(OOOBASEVERSION) from openoffice.lst NOT available (!)
49cdf0e10cSrcweirPRODUCTVERSION = 3.4
50*bda541ebSArmin Le Grand
51*bda541ebSArmin Le Grand# CAUTION! $(BRANDPACKAGEVERSION) from openoffice.lst NOT available (!)
52cdf0e10cSrcweirPRODUCTVERSIONSHORT = 3
53*bda541ebSArmin Le Grand
54cdf0e10cSrcweirPKGVERSION = $(PRODUCTVERSION)
55cdf0e10cSrcweir# gnome-vfs treats everything behind the last '.' as an icon extension,
56cdf0e10cSrcweir# even though the "icon_filename" in '.keys' is specified as filename
57cdf0e10cSrcweir# without extension. Since it also does not know how to handle "2-writer"
58cdf0e10cSrcweir# type icons :-), we are stripping all '.' for now.
59cdf0e10cSrcweir# ToDo: maybe we use a product major later ??
60cdf0e10cSrcweirICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g)
61cdf0e10cSrcweir# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg;
62cdf0e10cSrcweir# the default values get replaced by make_installer.pl at (core0x) packaging time;
63cdf0e10cSrcweir# another wrapper name can be forced by --with-unix-wrapper configure option
64cdf0e10cSrcweir# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366
65cdf0e10cSrcweirUNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
66cdf0e10cSrcweir
67*bda541ebSArmin Le Grand# CAUTION! $(UNIXBASISROOTNAME) from openoffice.lst NOT available (!)
68cdf0e10cSrcweirPRODUCTNAME.openoffice.org = OpenOffice.org
69*bda541ebSArmin Le Grand
70cdf0e10cSrcweirPRODUCTVERSION.openoffice.org = $(PRODUCTVERSION)
71cdf0e10cSrcweirPRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT)
72cdf0e10cSrcweirPKGVERSION.openoffice.org = $(PKGVERSION)
73cdf0e10cSrcweirUNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org)
74cdf0e10cSrcweirICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g)
75cdf0e10cSrcweir
76