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 24PRJ=..$/.. 25TARGET=desktopmacosx 26 27# --- Settings ------------------------------------------------- 28 29.INCLUDE : settings.mk 30 31# --- Files ---------------------------------------------------- 32 33.IF "$(OS)"!="MACOSX" 34 35dummy: 36 @echo "Nothing to build for OS $(OS)" 37 38.ELSE # "$(OS)"!="MACOSX" 39 40ZIPFLAGS = -r 41ZIP1TARGET = osxicons 42ZIP1DIR = ../icons 43ZIP1LIST := $(shell $(PERL) -w list_icons.pl < Info.plist) 44 45.IF "$(GUIBASE)"!="aqua" 46CREATOR_TYPE=OOo2 47EXECUTABLE=droplet 48.ELSE 49CREATOR_TYPE=OOO2 50EXECUTABLE=soffice 51.ENDIF 52 53.IF "$(WITH_LANG)"!="" 54ULFDIR:=$(COMMONMISC)$/desktopshare 55.ELSE # "$(WITH_LANG)"!="" 56ULFDIR:=..$/share 57.ENDIF # "$(WITH_LANG)"!="" 58 59# --- Targets -------------------------------------------------- 60 61.INCLUDE : target.mk 62 63.IF "$(ZIP1TARGETN)"!="" 64ZIP1TARGETN : Info.plist extract_icons_names.pl 65 66.ENDIF # "$(ZIP1TARGETN)"!="" 67 68ALLTAR : $(COMMONMISC)$/{PkgInfo Info.plist} $(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip 69 70$(COMMONMISC)$/PkgInfo : 71 echo "APPL$(CREATOR_TYPE)" > $@ 72 73 74$(COMMONMISC)$/Info.plist : $$(@:f) 75 sed -e "s|\%EXECUTABLE|${EXECUTABLE}|g" $< > $@ 76 77$(COMMONBIN)$/InfoPlist_{$(alllangiso)}.zip : $(COMMONMISC)$/$$(@:b)/InfoPlist.strings 78 cd $(<:d) && zip ../$(@:f).$(INPATH) $(<:f) 79 $(MV) -f $(COMMONMISC)$/$(@:f).$(INPATH) $@ 80 81$(COMMONMISC)$/InfoPlist_{$(alllangiso)}$/InfoPlist.strings : Info.plist $(ULFDIR)$/documents.ulf 82 $(MKDIRHIER) $(@:d) 83 $(PERL) -w gen_strings.pl -l $(@:d:d:b:s/InfoPlist_//) -p $< | iconv -f UTF-8 -t UTF-16 > $@.$(INPATH) 84 $(MV) -f $@.$(INPATH) $@ 85 86.ENDIF # "$(OS)"!="MACOSX" 87 88