diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-02-26 13:56:38 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-02-26 13:56:38 +0000 |
commit | c1fe40ec982110543d6e749c85b3d067b315ebda (patch) | |
tree | 90517759003e5169d006ab461df41a9cc489fa62 /instsetoo_native | |
parent | a9aec76fb1cd0aaafb1cc65c474d653d71dbe5da (diff) |
INTEGRATION: CWS macosxversioning01 (1.1.2); FILE ADDED
2007/01/07 11:44:49 mox 1.1.2.4: Remove unnecessary IFDEFs from makefile.mk
2007/01/07 10:58:38 mox 1.1.2.3: Update Info.plist to follow Apple's standard ways of versioning. This
also obsoletes InfoPlist.strings. Fix sed command, broken by changes in
openoffice.lst
2006/12/30 10:00:54 mox 1.1.2.2: Issue number: #72835#
Make the Mac OS X specific application files to automatically get the
appropriate OpenOffice.org version.
2006/12/29 22:07:18 mox 1.1.2.1: Issue number: #72835#
Insert the files moved from desktop module to here, instsetoo_native.
Create and adjust makefiles accordingly.
Put the files that need versioning in a separate folder, this makes it
possible to handle installer stuff (that also needs versioning) in the
instsetoo_native/macosx/ -folder.
Diffstat (limited to 'instsetoo_native')
-rw-r--r-- | instsetoo_native/macosx/makefile.mk | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/instsetoo_native/macosx/makefile.mk b/instsetoo_native/macosx/makefile.mk new file mode 100644 index 000000000000..0042196fa737 --- /dev/null +++ b/instsetoo_native/macosx/makefile.mk @@ -0,0 +1,110 @@ +#************************************************************************* +# +# OpenOffice.org - a multi-platform office productivity suite +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.2 $ +# +# last change: $Author: vg $ $Date: 2007-02-26 14:56:38 $ +# +# The Contents of this file are made available subject to +# the terms of GNU Lesser General Public License Version 2.1. +# +# +# GNU Lesser General Public License Version 2.1 +# ============================================= +# Copyright 2005 by Sun Microsystems, Inc. +# 901 San Antonio Road, Palo Alto, CA 94303, USA +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1, as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +#************************************************************************* + +PRJ=.. +TARGET=osxbundle + +# --- Settings ------------------------------------------------- + +.INCLUDE : settings.mk + +# --- Files ---------------------------------------------------- + +.IF "$(OS)"!="MACOSX" + +dummy: + @echo "Nothing to build for OS $(OS)" + +.ELSE # "$(OS)"!="MACOSX" + +BUNDLE = $(MISC)$/OpenOffice.org.app +CONTENTS = $(BUNDLE)$/Contents +VERSIONED = $(MISC)$/versioned + +scriptfiles = \ + $(CONTENTS)$/Resources$/Scripts$/main.scpt \ + $(CONTENTS)$/Resources$/Scripts$/PostInstall.scpt + +plistfiles = $(CONTENTS)$/Info.plist + +ZIPFLAGS = -r +ZIP1TARGET = osxbundle +ZIP1DIR = $(CONTENTS) +ZIP1LIST = * + +.IF "$(GUIBASE)"!="aqua" +CREATOR_TYPE=OOo2 +.ELSE +CREATOR_TYPE=OOO2 +.ENDIF + +# --- Targets -------------------------------------------------- + +.INCLUDE : target.mk + +$(ZIP1TARGETN) : $(scriptfiles) $(plistfiles) + +$(plistfiles) : $(scriptfiles) + +# create application bundle from apple script source +# Info.plist will be deleted to trigger copy rule of our own Info.plist +$(CONTENTS)$/Resources$/Scripts$/main.scpt : application/main.applescript + $(RM) -r $(BUNDLE) + make_versioned.sh "$<" "$(VERSIONED)/$<" + osacompile -o $(BUNDLE) -c $(CREATOR_TYPE) -s "$(VERSIONED)/$<" + echo "APPL$(CREATOR_TYPE)" > $(CONTENTS)$/PkgInfo + $(RM) "$(CONTENTS)$/Info.plist" "$(VERSIONED)/$<" + +$(CONTENTS)$/Resources$/Scripts$/%.scpt : application/%.applescript + make_versioned.sh "$<" "$(VERSIONED)/$<" + osacompile -d -o "$@" "$(VERSIONED)/$<" + $(RM) "$(VERSIONED)/$<" + +# Info.plist is just versioned and copied into the bundle +$(CONTENTS)$/%.plist : application/%.plist + make_versioned.sh "$<" "$@" + +# The InfoPlist.strings file has to be in UTF-16, thus a back-and-forth conversion +# is needed for versioning +# +# THIS CODE IS PRESERVED FOR FUTURE LOCALIZATION EFFORTS +#$(CONTENTS)$/Resources$/InfoPlist.strings : application/InfoPlist.strings +# iconv -f UTF-16 -t UTF-8 "$<" > "$(VERSIONED)/tmp.utf8" +# make_versioned.sh "$(VERSIONED)/tmp.utf8" "$(VERSIONED)/$<" +# iconv -f UTF-8 -t UTF-16 "$(VERSIONED)/$<" > "$@" +# $(RM) "$(VERSIONED)/tmp.utf8" "$(VERSIONED)/$<" + +.ENDIF # "$(OS)"!="MACOSX" + |