Initial commit of newLISP.
[newlisp.git] / makefile_osx_package
blob0b229439ea31102b8c8575ac681d716747e4deb2
1 # prepare Mac OSX package root directory in ../Package_contents
3 datadir=../Package_contents/usr/share
4 bindir=../Package_contents/usr/bin
5 mandir=../Package_contents/usr/share/man
6 appdir=../Package_contents/Applications
8 GUISERVER = ../Package_contents/usr/share/newlisp/guiserver
10 osx-package:
11         -mkdir ../Package_contents
12         -mkdir ../Package_contents/usr
13         -mkdir ../Package_contents/usr/bin
14         -mkdir ../Package_contents/usr/share
15         -mkdir ../Package_contents/usr/share/man
16         -mkdir ../Package_contents/usr/share/man/man1
17         -mkdir ../Package_contents/Applications
18         # identical from install section in main Makefile
19         -install -d $(datadir)/newlisp
20         -install -d $(datadir)/newlisp/modules
21         -install -d $(datadir)/newlisp/util
22         -install -d $(datadir)/doc/newlisp
23         -install -m 755 newlisp $(bindir)/newlisp
24         -install -m 644 examples/init.lsp.example $(datadir)/newlisp/init.lsp.example
25         -install -m 755 util/newlispdoc $(bindir)/newlispdoc
26         -install -m 644 util/syntax.cgi $(datadir)/newlisp/util/syntax.cgi
27         -install -m 644 util/newlisp.vim $(datadir)/newlisp/util/newlisp.vim
28         -install -m 644 util/link.lsp $(datadir)/newlisp/util/link.lsp
29         -install -m 644 util/httpd-conf.lsp $(datadir)/newlisp/util/httpd-conf.lsp
30         -install -m 644 doc/COPYING $(datadir)/doc/newlisp/COPYING
31         -install -m 644 doc/CREDITS $(datadir)/doc/newlisp/CREDITS
32         -install -m 644 doc/newlisp_manual.html $(datadir)/doc/newlisp/newlisp_manual.html
33         -install -m 644 doc/newlisp_index.html $(datadir)/doc/newlisp/newlisp_index.html
34         -install -m 644 doc/manual_frame.html $(datadir)/doc/newlisp/manual_frame.html
35         -install -m 644 doc/CodePatterns.html $(datadir)/doc/newlisp/CodePatterns.html
36         -install -m 644 doc/newLISPdoc.html $(datadir)/doc/newlisp/newLISPdoc.html
37         -install -m 644 doc/newLISP-9.3-Release.html $(datadir)/doc/newlisp/newLISP-9.3-Release.html
38         -install -m 644 doc/newlisp.1 $(mandir)/man1/newlisp.1
39         -install -m 644 doc/newlispdoc.1 $(mandir)/man1/newlispdoc.1
40         -install -m 644 modules/cgi.lsp $(datadir)/newlisp/modules/cgi.lsp
41         -install -m 644 modules/crypto.lsp $(datadir)/newlisp/modules/crypto.lsp
42         -install -m 644 modules/ftp.lsp $(datadir)/newlisp/modules/ftp.lsp
43         -install -m 644 modules/gmp.lsp $(datadir)/newlisp/modules/gmp.lsp
44         -install -m 644 modules/infix.lsp $(datadir)/newlisp/modules/infix.lsp
45         -install -m 644 modules/mysql.lsp $(datadir)/newlisp/modules/mysql.lsp
46         -install -m 644 modules/mysql5.lsp $(datadir)/newlisp/modules/mysql5.lsp
47         -install -m 644 modules/odbc.lsp $(datadir)/newlisp/modules/odbc.lsp
48         -install -m 644 modules/pop3.lsp $(datadir)/newlisp/modules/pop3.lsp
49         -install -m 644 modules/postscript.lsp $(datadir)/newlisp/modules/postscript.lsp
50         -install -m 644 modules/smtp.lsp $(datadir)/newlisp/modules/smtp.lsp
51         -install -m 644 modules/sqlite3.lsp $(datadir)/newlisp/modules/sqlite3.lsp
52         -install -m 644 modules/stat.lsp $(datadir)/newlisp/modules/stat.lsp
53         -install -m 644 modules/unix.lsp $(datadir)/newlisp/modules/unix.lsp
54         -install -m 644 modules/xmlrpc-client.lsp $(datadir)/newlisp/modules/xmlrpc-client.lsp
55         -install -m 644 modules/zlib.lsp $(datadir)/newlisp/modules/zlib.lsp
56         # GUI-Server install
57         -install -d $(datadir)/newlisp/guiserver
58         -install -d $(datadir)/doc/newlisp/guiserver
59         -install -m 755 guiserver/newlisp-edit.lsp $(bindir)/newlisp-edit
60         -install -m 644 guiserver/guiserver.jar $(datadir)/newlisp/guiserver.jar
61         -install -m 644 guiserver/guiserver.lsp $(datadir)/newlisp/guiserver.lsp
62         -install -m 644 guiserver/COPYING $(datadir)/doc/newlisp/guiserver/COPYING
63         -install -m 644 guiserver/index.html $(datadir)/doc/newlisp/guiserver/index.html
64         -install -m 644 guiserver/guiserver.lsp.html $(datadir)/doc/newlisp/guiserver/guiserver.lsp.html
65         -install -m 644 guiserver/allfonts-demo.lsp $(datadir)/newlisp/guiserver/allfonts-demo.lsp
66         -install -m 644 guiserver/animation-demo.lsp $(datadir)/newlisp/guiserver/animation-demo.lsp
67         -install -m 644 guiserver/border-layout-demo.lsp $(datadir)/newlisp/guiserver/border-layout-demo.lsp
68         -install -m 644 guiserver/button-demo.lsp $(datadir)/newlisp/guiserver/button-demo.lsp
69         -install -m 644 guiserver/clipboard-demo.lsp $(datadir)/newlisp/guiserver/clipboard-demo.lsp
70         -install -m 644 guiserver/cursor-demo.lsp $(datadir)/newlisp/guiserver/cursor-demo.lsp
71         -install -m 644 guiserver/drag-demo.lsp $(datadir)/newlisp/guiserver/drag-demo.lsp
72         -install -m 644 guiserver/font-demo.lsp $(datadir)/newlisp/guiserver/font-demo.lsp
73         -install -m 644 guiserver/frameless-demo.lsp $(datadir)/newlisp/guiserver/frameless-demo.lsp
74         -install -m 644 guiserver/html-demo.lsp $(datadir)/newlisp/guiserver/html-demo.lsp
75         -install -m 644 guiserver/image-demo.lsp $(datadir)/newlisp/guiserver/image-demo.lsp
76         -install -m 644 guiserver/mouse-demo.lsp $(datadir)/newlisp/guiserver/mouse-demo.lsp
77         -install -m 644 guiserver/move-resize-demo.lsp $(datadir)/newlisp/guiserver/move-resize-demo.lsp
78         -install -m 644 guiserver/pinballs-demo.lsp $(datadir)/newlisp/guiserver/pinballs-demo.lsp
79         -install -m 644 guiserver/properties-demo.lsp $(datadir)/newlisp/guiserver/properties-demo.lsp
80         -install -m 644 guiserver/rotation-demo.lsp $(datadir)/newlisp/guiserver/rotation-demo.lsp
81         -install -m 644 guiserver/shapes-demo.lsp $(datadir)/newlisp/guiserver/shapes-demo.lsp
82         -install -m 644 guiserver/sound-demo.lsp $(datadir)/newlisp/guiserver/sound-demo.lsp
83         -install -m 644 guiserver/stroke-demo.lsp $(datadir)/newlisp/guiserver/stroke-demo.lsp
84         -install -m 644 guiserver/tabs-demo.lsp $(datadir)/newlisp/guiserver/tabs-demo.lsp
85         -install -m 644 guiserver/textrot-demo.lsp $(datadir)/newlisp/guiserver/textrot-demo.lsp
86         -install -m 644 guiserver/widgets-demo.lsp $(datadir)/newlisp/guiserver/widgets-demo.lsp
87         -install -m 644 guiserver/word-count.lsp $(datadir)/newlisp/guiserver/word-count.lsp
88         -install -m 644 guiserver/uppercase.lsp $(datadir)/newlisp/guiserver/uppercase.lsp
90         # get OS X applications package
91         sudo cp -R /Applications/newLISP-GS.app/ $(appdir)/newLISP-GS.app
93         # make the package and image
94         /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker \
95                 -d ~/newlisp/OSX-package/newLISPpackage-project.pmdoc/ -o ~/newlisp/OSX-package/newLISP-image/newLISPpackage.pkg
96 # eof