17871dc3eSAndrew Rist#************************************************************** 29faf8fdaSmseidel# 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 109faf8fdaSmseidel# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 129faf8fdaSmseidel# 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. 199faf8fdaSmseidel# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 239faf8fdaSmseidel 24cdf0e10cSrcweir.IF "$(OS)"=="LINUX" 259faf8fdaSmseidelPKGREV = $(BUILD) 26cdf0e10cSrcweir.ELSE 279faf8fdaSmseidelPKGREV = $(LAST_MINOR:s/m//:s/s/./) 28cdf0e10cSrcweir.ENDIF 29cdf0e10cSrcweir 30cdf0e10cSrcweirABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT) 31cdf0e10cSrcweir 329faf8fdaSmseidel# create desktop-integration subfolder on Linux 33cdf0e10cSrcweir.IF "$(OS)"=="LINUX" 34cdf0e10cSrcweir# rpm seems to require absolute paths here :( 35cdf0e10cSrcweirPKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration 36cdf0e10cSrcweirRPMMACROS= \ 37cdf0e10cSrcweir --define "_rpmdir $(PKGDIR)" \ 38cdf0e10cSrcweir --define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm" 39cdf0e10cSrcweir.ELSE 40cdf0e10cSrcweirPKGDIR=$(BIN) 41cdf0e10cSrcweir.ENDIF 42cdf0e10cSrcweir 43bda541ebSArmin Le Grand# CAUTION! here the parsing result from openoffice.lst is NOT available, so this is hardcoded 44ff3f4ebcSOliver-Rainer Wittmann# but should not be. 45ff3f4ebcSOliver-Rainer Wittmann# It has to be equal to PRODUCTNAME:l:s/\s/\_/g - see solenv/bin/modules/installer/setupscript.pm 46599cc5b4SOliver-Rainer WittmannPRODUCTLIST = openoffice 47cdf0e10cSrcweir 489faf8fdaSmseidel# default values to minimize maintenance effort 49bda541ebSArmin Le Grand 50bda541ebSArmin Le Grand# CAUTION! $(OOOBASEVERSION) from openoffice.lst NOT available (!) 51*c4492ed7SmseidelPRODUCTVERSION = 4.1.16 52bda541ebSArmin Le Grand 53bda541ebSArmin Le Grand# CAUTION! $(BRANDPACKAGEVERSION) from openoffice.lst NOT available (!) 544f913391SAriel Constenla-HailePRODUCTVERSIONSHORT = 4 55bda541ebSArmin Le Grand 56cdf0e10cSrcweirPKGVERSION = $(PRODUCTVERSION) 579faf8fdaSmseidel# gnome-vfs treats everything behind the last '.' as an icon extension, 589faf8fdaSmseidel# even though the "icon_filename" in '.keys' is specified as filename 59cdf0e10cSrcweir# without extension. Since it also does not know how to handle "2-writer" 60cdf0e10cSrcweir# type icons :-), we are stripping all '.' for now. 61cdf0e10cSrcweir# ToDo: maybe we use a product major later ?? 62cdf0e10cSrcweirICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g) 63cdf0e10cSrcweir# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg; 64cdf0e10cSrcweir# the default values get replaced by make_installer.pl at (core0x) packaging time; 65cdf0e10cSrcweir# another wrapper name can be forced by --with-unix-wrapper configure option 66cdf0e10cSrcweir# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366 67cdf0e10cSrcweirUNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}' 68cdf0e10cSrcweir 69bda541ebSArmin Le Grand# CAUTION! $(UNIXBASISROOTNAME) from openoffice.lst NOT available (!) 70599cc5b4SOliver-Rainer WittmannPRODUCTNAME.openoffice = OpenOffice 71bda541ebSArmin Le Grand 72599cc5b4SOliver-Rainer WittmannPRODUCTVERSION.openoffice = $(PRODUCTVERSION) 73599cc5b4SOliver-Rainer WittmannPRODUCTVERSIONSHORT.openoffice = $(PRODUCTVERSIONSHORT) 74599cc5b4SOliver-Rainer WittmannPKGVERSION.openoffice = $(PKGVERSION) 75599cc5b4SOliver-Rainer WittmannUNIXFILENAME.openoffice = $(PRODUCTNAME.openoffice:l:s/ /_/g)$(PRODUCTVERSIONSHORT.openoffice) 76599cc5b4SOliver-Rainer WittmannICONPREFIX.openoffice = $(UNIXFILENAME.openoffice:s/.//g) 77cdf0e10cSrcweir 78