1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew 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 42451f97f9SPedro GiffuniPRODUCTLIST = openoffice.org 43cdf0e10cSrcweir 44cdf0e10cSrcweir# default values to minimize maintainance effort 45cdf0e10cSrcweirPRODUCTVERSION = 3.4 46cdf0e10cSrcweirPRODUCTVERSIONSHORT = 3 47cdf0e10cSrcweirPKGVERSION = $(PRODUCTVERSION) 48cdf0e10cSrcweir# gnome-vfs treats everything behind the last '.' as an icon extension, 49cdf0e10cSrcweir# even though the "icon_filename" in '.keys' is specified as filename 50cdf0e10cSrcweir# without extension. Since it also does not know how to handle "2-writer" 51cdf0e10cSrcweir# type icons :-), we are stripping all '.' for now. 52cdf0e10cSrcweir# ToDo: maybe we use a product major later ?? 53cdf0e10cSrcweirICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g) 54cdf0e10cSrcweir# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg; 55cdf0e10cSrcweir# the default values get replaced by make_installer.pl at (core0x) packaging time; 56cdf0e10cSrcweir# another wrapper name can be forced by --with-unix-wrapper configure option 57cdf0e10cSrcweir# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366 58cdf0e10cSrcweirUNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}' 59cdf0e10cSrcweir 60cdf0e10cSrcweirPRODUCTNAME.openoffice.org = OpenOffice.org 61cdf0e10cSrcweirPRODUCTVERSION.openoffice.org = $(PRODUCTVERSION) 62cdf0e10cSrcweirPRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT) 63cdf0e10cSrcweirPKGVERSION.openoffice.org = $(PKGVERSION) 64cdf0e10cSrcweirUNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org) 65cdf0e10cSrcweirICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g) 66cdf0e10cSrcweir 67