19cb05e42SAriel Constenla-Haile#************************************************************** 29cb05e42SAriel Constenla-Haile# 39cb05e42SAriel Constenla-Haile# Licensed to the Apache Software Foundation (ASF) under one 49cb05e42SAriel Constenla-Haile# or more contributor license agreements. See the NOTICE file 59cb05e42SAriel Constenla-Haile# distributed with this work for additional information 69cb05e42SAriel Constenla-Haile# regarding copyright ownership. The ASF licenses this file 79cb05e42SAriel Constenla-Haile# to you under the Apache License, Version 2.0 (the 89cb05e42SAriel Constenla-Haile# "License"); you may not use this file except in compliance 99cb05e42SAriel Constenla-Haile# with the License. You may obtain a copy of the License at 109cb05e42SAriel Constenla-Haile# 119cb05e42SAriel Constenla-Haile# http://www.apache.org/licenses/LICENSE-2.0 129cb05e42SAriel Constenla-Haile# 139cb05e42SAriel Constenla-Haile# Unless required by applicable law or agreed to in writing, 149cb05e42SAriel Constenla-Haile# software distributed under the License is distributed on an 159cb05e42SAriel Constenla-Haile# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 169cb05e42SAriel Constenla-Haile# KIND, either express or implied. See the License for the 179cb05e42SAriel Constenla-Haile# specific language governing permissions and limitations 189cb05e42SAriel Constenla-Haile# under the License. 199cb05e42SAriel Constenla-Haile# 209cb05e42SAriel Constenla-Haile#************************************************************** 219cb05e42SAriel Constenla-Haile 229cb05e42SAriel Constenla-Haile# Map target platform (extension cfg) and extension platform (SDK settings) 239cb05e42SAriel Constenla-Haile# See: 249cb05e42SAriel Constenla-Haile# http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Target_Platform 259cb05e42SAriel Constenla-Haile# trunk/main/odk/settings/settings.mk 269cb05e42SAriel Constenla-Haile 279cb05e42SAriel Constenla-Haile# only make version 3.81 or later accepts the multiple else conditions 289cb05e42SAriel Constenla-Haileifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86" 299cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=freebsd_x86 309cb05e42SAriel Constenla-Haileelse 319cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86_64" 329cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=freebsd_x86_64 339cb05e42SAriel Constenla-Haile else 349cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "Linux_PowerPC" 359cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=linux_powerpc 369cb05e42SAriel Constenla-Haile else 37*e15a4534Spfg ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_PowerPC64" 38*e15a4534Spfg EXTENSION_PLATFORM=freebsd_powerpc64 39*e15a4534Spfg else 409cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "Linux_x86" 419cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=linux_x86 429cb05e42SAriel Constenla-Haile else 439cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "Linux_x86_64" 449cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=linux_x86_64 459cb05e42SAriel Constenla-Haile else 469cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "MacOSX_PowerPC" 479cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=macosx_powerpc 489cb05e42SAriel Constenla-Haile else 499cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86" 509cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=macosx_x86 519cb05e42SAriel Constenla-Haile else 5240286176SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86_64" 5340286176SAriel Constenla-Haile EXTENSION_PLATFORM=macosx_x86_64 5440286176SAriel Constenla-Haile else 559cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC" 569cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=solaris_sparc 579cb05e42SAriel Constenla-Haile else 589cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "Solaris_x86" 599cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=solaris_x86 609cb05e42SAriel Constenla-Haile else 619cb05e42SAriel Constenla-Haile ifeq "$(UNOPKG_PLATFORM)" "Windows" 629cb05e42SAriel Constenla-Haile EXTENSION_PLATFORM=windows_x86 639cb05e42SAriel Constenla-Haile endif 649cb05e42SAriel Constenla-Haile endif 659cb05e42SAriel Constenla-Haile endif 669cb05e42SAriel Constenla-Haile endif 679cb05e42SAriel Constenla-Haile endif 689cb05e42SAriel Constenla-Haile endif 699cb05e42SAriel Constenla-Haile endif 709cb05e42SAriel Constenla-Haile endif 719cb05e42SAriel Constenla-Haile endif 7240286176SAriel Constenla-Haile endif 739cb05e42SAriel Constenla-Haileendif 74