1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
35 # --- Settings -------------------------------------------------
37 .INCLUDE
: settings.mk
39 # --- Files ----------------------------------------------------
41 .IF
"$(OS)"!="MACOSX" ||
"$(GUIBASE)"=="aqua"
44 @echo
"Nothing to build for OS $(OS) and GUIBASE $(GUIBASE)"
46 .ELSE
# "$(OS)"!="MACOSX"
48 BUNDLE
= $(MISC
)$/OpenOffice.org.app
49 CONTENTS
= $(BUNDLE
)$/Contents
50 VERSIONED
= $(MISC
)$/versioned
53 $(CONTENTS
)$/Resources
$/Scripts
$/main.scpt \
54 $(CONTENTS
)$/Resources
$/Scripts
$/PostInstall.scpt
57 ZIP1TARGET
= osxbundle
59 ZIP1LIST
= * -x Info.plist
-x PkgInfo
61 # --- Targets --------------------------------------------------
65 $(ZIP1TARGETN
) : $(scriptfiles
)
67 # create application bundle from apple script source
68 $(CONTENTS
)$/Resources
$/Scripts
$/main.scpt
: application
/main.applescript
70 make_versioned.sh
"$<" "$(VERSIONED)/$<"
71 osacompile
-o
$(BUNDLE
) -c OOo2
-s
"$(VERSIONED)/$<"
73 $(CONTENTS
)$/Resources
$/Scripts
$/%.scpt
: application
/%.applescript
74 make_versioned.sh
"$<" "$(VERSIONED)/$<"
75 osacompile
-d
-o
"$@" "$(VERSIONED)/$<"
76 $(RM
) "$(VERSIONED)/$<"
78 # The InfoPlist.strings file has to be in UTF-16, thus a back-and-forth conversion
79 # is needed for versioning
81 # THIS CODE IS PRESERVED FOR FUTURE LOCALIZATION EFFORTS
82 #$(CONTENTS)$/Resources$/InfoPlist.strings : application/InfoPlist.strings
83 # iconv -f UTF-16 -t UTF-8 "$<" > "$(VERSIONED)/tmp.utf8"
84 # make_versioned.sh "$(VERSIONED)/tmp.utf8" "$(VERSIONED)/$<"
85 # iconv -f UTF-8 -t UTF-16 "$(VERSIONED)/$<" > "$@"
86 # $(RM) "$(VERSIONED)/tmp.utf8" "$(VERSIONED)/$<"
88 .ENDIF
# "$(OS)"!="MACOSX"