diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-09-02 17:46:51 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-09-02 17:46:51 +0000 |
commit | bc0886ded37ac6a88e1a0c25e784b5b38689f6a9 (patch) | |
tree | 7fc7e959708d1507ffef4bd59a9d3204945b48ed | |
parent | a45a482d89e80a26e29ec9572bfd7d50c252ff68 (diff) |
fixed makefile version bug; generalized Wish Shell.app location
svn path=/trunk/; revision=1995
-rw-r--r-- | packages/darwin_app/Makefile | 50 | ||||
-rw-r--r-- | packages/darwin_app/README | 17 | ||||
-rw-r--r-- | packages/darwin_app/TODO | 7 |
3 files changed, 46 insertions, 28 deletions
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 5ecd529c..4db16b9b 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -7,7 +7,12 @@ DESTDIR = installroot PD_APP_CONTENTS = /Applications/$(PD_APP_NAME).app/Contents INSTALL_PREFIX = $(PD_APP_CONTENTS)/Resources -WISH_SHELL_CONTENTS = /Applications/Utilities/Wish\ Shell.app/Contents +# source for the Wish Shell.app used to build Pd +# download TclTkAquaStandalone-8.?.?.dmg from http://tcltkaqua.sourceforge.net/ +# and mount it. The files will be copied from the mounted .dmg image. +#WISH_SHELL = /Applications/Utilities/Wish\ Shell.app +WISH_SHELL = /Volumes/TclTkAquaStandalone-8.?.*/Wish\ Shell.app +WISH_SHELL_CONTENTS = $(WISH_SHELL)/Contents PD_FILE_ROOT = $(DESTDIR)$(INSTALL_PREFIX)/lib/pd ABSTRACTIONS_DIR = $(PD_FILE_ROOT)/doc/abstractions @@ -23,7 +28,7 @@ PD_BUGFIX_VERSION = $(shell /usr/bin/grep 'Pd version' ../../pd/src/s_main.c | / PD_VERSION = $(PD_MAJOR_VERSION).$(PD_MINOR_VERSION).$(PD_BUGFIX_VERSION) # release version for this distro -PACKAGE_VERSION = beta3 +PACKAGE_VERSION = beta4 PACKAGE_NAME = pd-$(PD_VERSION)-$(PACKAGE_VERSION) DMG_NAME = $(PACKAGE_NAME) @@ -47,13 +52,13 @@ FLEXT_VERSION = $(shell grep PROJECT_NUMBER ../../externals/grill/flext/flext.do GEM_VERSION = $(shell grep "GEM_VERSION" ../../Gem/src/Base/GemVersion.h | cut -d '"' -f 2) -MAXLIB_VERSION = $(shell grep "#define VERSION" ../../externals/maxlib/maxlib.c | cut -d '"' -f 2) +MAXLIB_VERSION = $(shell grep "define VERSION" ../../externals/maxlib/maxlib.c | cut -d '"' -f 2) -OSC_VERSION = $(shell grep "#define VERSION" ../../externals/OSCx/OSC.c | cut -d '"' -f 2) +OSC_VERSION = $(shell grep "define VERSION" ../../externals/OSCx/OSC.c | cut -d '"' -f 2) PDP_VERSION = $(shell grep PDP_VERSION= ../../externals/pdp/configure | cut -d '=' -f 2) -PMPD_VERSION = $(shell grep "#define VERSION" ../../externals/pmpd/src/pmpd.c | cut -d '"' -f 2) +PMPD_VERSION = $(shell grep "define VERSION" ../../externals/pmpd/src/pmpd.c | cut -d '"' -f 2) TOXY_MAJOR_VERSION = $(shell grep TOXY_VERSION ../../externals/miXed/toxy/build_counter | cut -d ' ' -f 3 | cut -d '"' -f 2) TOXY_RELEASE = $(shell grep TOXY_RELEASE ../../externals/miXed/toxy/build_counter | cut -d ' ' -f 3 | cut -d '"' -f 2) @@ -63,7 +68,7 @@ TOXY_VERSION = $(TOXY_MAJOR_VERSION) $(TOXY_RELEASE) $(TOXY_BUILD) ZEXY_VERSION = $(shell grep VERSION ../../externals/zexy/src/zexy.h | cut -d ' ' -f 3 | cut -d '"' -f 2) -darwin_app: darwin_app_wrapper darwin_app_core darwin_unix_pkg darwin_app_externals \ +darwin_app: darwin_app_wrapper darwin_app_core darwin_app_externals \ darwin_app_docs darwin_app_abstractions @@ -112,9 +117,9 @@ darwin_app_readme: # these cause this error: # Makefile:308: *** unterminated call to function `shell': missing `)'. Stop. # -# echo "<li>maxlib: $(MAXLIB_VERSION)" >> $(README_FILE) -# echo "<li>osc: $(OSC_VERSION)" >> $(README_FILE) -# echo "<li>pmpd: $(PMPD_VERSION)" >> $(README_FILE) + echo "<li>maxlib: $(MAXLIB_VERSION)" >> $(README_FILE) + echo "<li>osc: $(OSC_VERSION)" >> $(README_FILE) + echo "<li>pmpd: $(PMPD_VERSION)" >> $(README_FILE) echo "<li>pd-abstractions: `date +20%y.%m.%d`" >> $(README_FILE) echo "<li>pd-doc: `date +20%y.%m.%d`" >> $(README_FILE) echo "<li>pd-externals: `date +20%y.%m.%d`" >> $(README_FILE) @@ -133,19 +138,15 @@ darwin_app_wrapper: # note: use the "standalone" Wish shell to make a "standalone" pd app install -d "$(DESTDIR)$(PD_APP_CONTENTS)/MacOS" install -m0755 -p \ - /Applications/Utilities/Wish\ Shell.app/Contents/MacOS/Wish\ Shell \ + $(WISH_SHELL_CONTENTS)/MacOS/Wish\ Shell \ "$(DESTDIR)$(PD_APP_CONTENTS)/MacOS" install -d "$(DESTDIR)$(PD_APP_CONTENTS)/Resources" install -m0644 -p \ - /Applications/Utilities/Wish\ Shell.app/Contents/Resources/Wish\ Shell.rsrc \ + $(WISH_SHELL_CONTENTS)/Resources/Wish\ Shell.rsrc \ "$(DESTDIR)$(PD_APP_CONTENTS)/Resources" # install -d "$(DESTDIR)$(PD_APP_CONTENTS)/Frameworks" - cp -Rp \ - /Applications/Utilities/Wish\ Shell.app/Contents/Frameworks \ - "$(DESTDIR)$(PD_APP_CONTENTS)" - cp -Rp \ - /Applications/Utilities/Wish\ Shell.app/Contents/Frameworks \ - "$(DESTDIR)$(PD_APP_CONTENTS)/Resources" + cp -Rp $(WISH_SHELL_CONTENTS)/Frameworks "$(DESTDIR)$(PD_APP_CONTENTS)" + cp -Rp $(WISH_SHELL_CONTENTS)/Frameworks "$(DESTDIR)$(PD_APP_CONTENTS)/Resources" # install -d "$(DESTDIR)$(PD_APP_CONTENTS)/Frameworks" \ # "$(DESTDIR)$(PD_APP_CONTENTS)/Resources" @@ -161,20 +162,24 @@ darwin_app_wrapper: mv "$(DESTDIR)$(PD_APP_CONTENTS)/MacOS/Wish Shell" "$(DESTDIR)$(PD_APP_CONTENTS)/MacOS/Pd" -# INSTALL_PREFIX=$(INSTALL_PREFIX) is for pd-MSP 0.37.1 -# prefix=$(INSTALL_PREFIX) is for pd-CVS 0.37 darwin_app_core: # apply some patches - cd ../../pd/src/ && patch -p0<../../packages/darwin_app/patches/socket.patch +# with CVS version, next line causes: s_inter.c:645: error: parse error before "if" +# cd ../../pd/src/ && patch -p0<../../packages/darwin_app/patches/socket.patch cd ../../pd/src/ && patch -p0<../../packages/darwin_app/patches/makefile.in.patch cd ../../pd/src/ && patch -p0<../../packages/darwin_app/patches/u_main.tk.patch cd ../../pd/src/ && patch -p0<../../packages/darwin_app/patches/configure.jackosx.patch - cd ../../pd/src/ && patch -p0<../../packages/darwin_app/patches/s_audio_jack.patch +# this patch isn't applied properly, so pd doesn't compile +# cd ../../pd/src/ && patch -p0<../../packages/darwin_app/patches/s_audio_jack.patch # pd core cd ../../pd/src/ && ./configure --enable-jack &&\ make install \ DESTDIR=../../packages/darwin_app/$(DESTDIR) \ - INSTALL_PREFIX=$(INSTALL_PREFIX) + prefix=$(INSTALL_PREFIX) +# The last line above needs to be changed based on which version +# of the pd core source you are compiling: +# INSTALL_PREFIX=$(INSTALL_PREFIX) is for pd-MSP 0.37.1 +# prefix=$(INSTALL_PREFIX) is for pd-CVS 0.37 darwin_app_docs: #---------------------------------------------------------------------------- @@ -210,7 +215,6 @@ darwin_app_externals: darwin_app_externals_flext darwin_app_externals_standard d darwin_app_externals_flext: #---------------------------------------------------------------------------- # FLEXT - cd ../../externals/grill/build/darwin && make install -d $(HELP_DIR)/tutorials cp -rp ../../externals/grill/flext/tutorial $(HELP_DIR)/tutorials/flext diff --git a/packages/darwin_app/README b/packages/darwin_app/README new file mode 100644 index 00000000..bbc78305 --- /dev/null +++ b/packages/darwin_app/README @@ -0,0 +1,17 @@ + +To compile a standalone Pd.app, you need this stuff: + +Tcl/Tk Standalone .app + + 1. download TclTkAquaStandalone-8.?.?.dmg from http://tcltkaqua.sourceforge.net/ + (I used 8.4.7) + 2. mount the dmg + 3. the Makefile will find what it needs in the mounted .dmg + + +JackOSX + + 1. download latest JackOSX from http://www.jackosx.com/download.html + (I used version 0.4.1) + 2. install the .pkg + 3. diff --git a/packages/darwin_app/TODO b/packages/darwin_app/TODO index 32a5bc4d..10a5d7eb 100644 --- a/packages/darwin_app/TODO +++ b/packages/darwin_app/TODO @@ -1,10 +1,7 @@ -- change s_inter.c to use /Applications/Pd.app/Contents/MacOS/Wish\ Shell +- fix socket.patch and s_audio_jack.patch -- AppMain.tcl: - http://www.wordtech-software.com/tcl-bundle-tutorial.html - http://wiki.tcl.tk/tclhttpd/3214 - check WaveSurfer +- add context to all patches - include auto-.pdrc script in package somewhere... |