xref: /aoo41x/main/sysui/desktop/productversion.mk (revision ff3f4ebc)
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
42bda541ebSArmin Le Grand# CAUTION! here the parsing result from openoffice.lst is NOT available, so this is hardcoded
43*ff3f4ebcSOliver-Rainer Wittmann# but should not be.
44*ff3f4ebcSOliver-Rainer Wittmann# It has to be equal to PRODUCTNAME:l:s/\s/\_/g - see solenv/bin/modules/installer/setupscript.pm
45*ff3f4ebcSOliver-Rainer WittmannPRODUCTLIST = apache_openoffice
46cdf0e10cSrcweir
47bda541ebSArmin Le Grand# default values to minimize maintainance effort
48bda541ebSArmin Le Grand
49bda541ebSArmin Le Grand# CAUTION! $(OOOBASEVERSION) from openoffice.lst NOT available (!)
50ff1a82c8SJürgen SchmidtPRODUCTVERSION = 3.5
51bda541ebSArmin Le Grand
52bda541ebSArmin Le Grand# CAUTION! $(BRANDPACKAGEVERSION) from openoffice.lst NOT available (!)
53cdf0e10cSrcweirPRODUCTVERSIONSHORT = 3
54bda541ebSArmin Le Grand
55cdf0e10cSrcweirPKGVERSION = $(PRODUCTVERSION)
56cdf0e10cSrcweir# gnome-vfs treats everything behind the last '.' as an icon extension,
57cdf0e10cSrcweir# even though the "icon_filename" in '.keys' is specified as filename
58cdf0e10cSrcweir# without extension. Since it also does not know how to handle "2-writer"
59cdf0e10cSrcweir# type icons :-), we are stripping all '.' for now.
60cdf0e10cSrcweir# ToDo: maybe we use a product major later ??
61cdf0e10cSrcweirICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g)
62cdf0e10cSrcweir# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg;
63cdf0e10cSrcweir# the default values get replaced by make_installer.pl at (core0x) packaging time;
64cdf0e10cSrcweir# another wrapper name can be forced by --with-unix-wrapper configure option
65cdf0e10cSrcweir# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366
66cdf0e10cSrcweirUNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}'
67cdf0e10cSrcweir
68bda541ebSArmin Le Grand# CAUTION! $(UNIXBASISROOTNAME) from openoffice.lst NOT available (!)
69*ff3f4ebcSOliver-Rainer WittmannPRODUCTNAME.apache_openoffice = Apache OpenOffice
70bda541ebSArmin Le Grand
71*ff3f4ebcSOliver-Rainer WittmannPRODUCTVERSION.apache_openoffice = $(PRODUCTVERSION)
72*ff3f4ebcSOliver-Rainer WittmannPRODUCTVERSIONSHORT.apache_openoffice = $(PRODUCTVERSIONSHORT)
73*ff3f4ebcSOliver-Rainer WittmannPKGVERSION.apache_openoffice = $(PKGVERSION)
74*ff3f4ebcSOliver-Rainer WittmannUNIXFILENAME.apache_openoffice = $(PRODUCTNAME.apache_openoffice:l:s/ /_/g)$(PRODUCTVERSIONSHORT.apache_openoffice)
75*ff3f4ebcSOliver-Rainer WittmannICONPREFIX.apache_openoffice = $(UNIXFILENAME.apache_openoffice:s/.//g)
76cdf0e10cSrcweir
77