1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23.IF "$(OS)"=="LINUX" 24PKGREV = $(BUILD) 25.ELSE 26PKGREV = $(LAST_MINOR:s/m//:s/s/./) 27.ENDIF 28 29ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT) 30 31# create desktop-integration subfolder on linux 32.IF "$(OS)"=="LINUX" 33# rpm seems to require absolute paths here :( 34PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration 35RPMMACROS= \ 36 --define "_rpmdir $(PKGDIR)" \ 37 --define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm" 38.ELSE 39PKGDIR=$(BIN) 40.ENDIF 41 42PRODUCTLIST = openoffice.org 43 44# default values to minimize maintainance effort 45PRODUCTVERSION = 3.4 46PRODUCTVERSIONSHORT = 3 47PKGVERSION = $(PRODUCTVERSION) 48# gnome-vfs treats everything behind the last '.' as an icon extension, 49# even though the "icon_filename" in '.keys' is specified as filename 50# without extension. Since it also does not know how to handle "2-writer" 51# type icons :-), we are stripping all '.' for now. 52# ToDo: maybe we use a product major later ?? 53ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g) 54# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg; 55# the default values get replaced by make_installer.pl at (core0x) packaging time; 56# another wrapper name can be forced by --with-unix-wrapper configure option 57# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366 58UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}' 59 60PRODUCTNAME.openoffice.org = OpenOffice.org 61PRODUCTVERSION.openoffice.org = $(PRODUCTVERSION) 62PRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT) 63PKGVERSION.openoffice.org = $(PKGVERSION) 64UNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org) 65ICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g) 66 67