1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27.IF "$(OS)"=="LINUX" 28PKGREV = $(BUILD) 29.ELSE 30PKGREV = $(LAST_MINOR:s/m//:s/s/./) 31.ENDIF 32 33ABSLOCALOUT:=$(shell @cd $(PRJ) && pwd)$/$(ROUT) 34 35# create desktop-integration subfolder on linux 36.IF "$(OS)"=="LINUX" 37# rpm seems to require absolute paths here :( 38PKGDIR:=$(ABSLOCALOUT)$/bin$/desktop-integration 39RPMMACROS= \ 40 --define "_rpmdir $(PKGDIR)" \ 41 --define "_rpmfilename %%{{NAME}}-%%{{VERSION}}-%%{{RELEASE}}.%%{{ARCH}}.rpm" 42.ELSE 43PKGDIR=$(BIN) 44.ENDIF 45 46PRODUCTLIST = openoffice.org 47 48# default values to minimize maintainance effort 49PRODUCTVERSION = 3.4 50PRODUCTVERSIONSHORT = 3 51PKGVERSION = $(PRODUCTVERSION) 52# gnome-vfs treats everything behind the last '.' as an icon extension, 53# even though the "icon_filename" in '.keys' is specified as filename 54# without extension. Since it also does not know how to handle "2-writer" 55# type icons :-), we are stripping all '.' for now. 56# ToDo: maybe we use a product major later ?? 57ICONVERSION = $(PRODUCTVERSIONSHORT:s/.//g) 58# UNIXWRAPPERNAME variable is used to generate the common desktop files below share/xdg; 59# the default values get replaced by make_installer.pl at (core0x) packaging time; 60# another wrapper name can be forced by --with-unix-wrapper configure option 61# which is need by other distributors, see http://www.openoffice.org/issues/show_bug.cgi?id=75366 62UNIXWRAPPERNAME *= '$${{UNIXPRODUCTNAME}}$${{BRANDPACKAGEVERSION}}' 63 64PRODUCTNAME.openoffice.org = OpenOffice.org 65PRODUCTVERSION.openoffice.org = $(PRODUCTVERSION) 66PRODUCTVERSIONSHORT.openoffice.org = $(PRODUCTVERSIONSHORT) 67PKGVERSION.openoffice.org = $(PKGVERSION) 68UNIXFILENAME.openoffice.org = $(PRODUCTNAME.openoffice.org:l)$(PRODUCTVERSIONSHORT.openoffice.org) 69ICONPREFIX.openoffice.org = $(UNIXFILENAME.openoffice.org:s/.//g) 70 71