From a45a482d89e80a26e29ec9572bfd7d50c252ff68 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 1 Sep 2004 00:20:12 +0000 Subject: macosx style app svn path=/trunk/; revision=1990 --- .../darwin_app/patches/configure.jackosx.patch | 20 +++++++++++++++++ packages/darwin_app/patches/makefile.in.patch | 11 ++++++++++ packages/darwin_app/patches/s_audio_jack.patch | 13 +++++++++++ packages/darwin_app/patches/socket.patch | 11 ++++++++++ packages/darwin_app/patches/u_main.tk.patch | 25 ++++++++++++++++++++++ packages/darwin_app/patches/unpatch | 3 +++ 6 files changed, 83 insertions(+) create mode 100644 packages/darwin_app/patches/configure.jackosx.patch create mode 100644 packages/darwin_app/patches/makefile.in.patch create mode 100644 packages/darwin_app/patches/s_audio_jack.patch create mode 100644 packages/darwin_app/patches/socket.patch create mode 100644 packages/darwin_app/patches/u_main.tk.patch create mode 100755 packages/darwin_app/patches/unpatch (limited to 'packages') diff --git a/packages/darwin_app/patches/configure.jackosx.patch b/packages/darwin_app/patches/configure.jackosx.patch new file mode 100644 index 00000000..2094f38f --- /dev/null +++ b/packages/darwin_app/patches/configure.jackosx.patch @@ -0,0 +1,20 @@ +Index: configure +=================================================================== +RCS file: /cvsroot/pure-data/pd/src/configure,v +retrieving revision 1.4 +diff -r1.4 configure +5996c5996 +< # support for jack, on either linux or darwin: +--- +> # support for jack on linux : +5999,6001c5999,6004 +< MORECFLAGS=$MORECFLAGS" -DUSEAPI_JACK" +< SYSSRC=$SYSSRC" s_audio_jack.c" +< LDFLAGS=$LDFLAGS" -lrt -ljack" +--- +> if test `uname -s` = Linux +> then +> MORECFLAGS=$MORECFLAGS" -DUSEAPI_JACK" +> SYSSRC=$SYSSRC" s_audio_jack.c" +> LDFLAGS=$LDFLAGS" -lrt -ljack" +> fi diff --git a/packages/darwin_app/patches/makefile.in.patch b/packages/darwin_app/patches/makefile.in.patch new file mode 100644 index 00000000..4543d109 --- /dev/null +++ b/packages/darwin_app/patches/makefile.in.patch @@ -0,0 +1,11 @@ +Index: makefile.in +=================================================================== +RCS file: /cvsroot/pure-data/pd/src/makefile.in,v +retrieving revision 1.3 +diff -r1.3 makefile.in +103,104c103,104 +< /Library/Frameworks/Tk.framework/Versions/Current/Tk \ +< /Library/Frameworks/Tcl.framework/Versions/Current/Tcl \ +--- +> /Applications/Utilities/Wish\ Shell.app/Contents/Frameworks/Tk.framework/Versions/Current/Tk \ +> /Applications/Utilities/Wish\ Shell.app/Contents/Frameworks/Tcl.framework/Versions/Current/Tcl \ diff --git a/packages/darwin_app/patches/s_audio_jack.patch b/packages/darwin_app/patches/s_audio_jack.patch new file mode 100644 index 00000000..e1910ccd --- /dev/null +++ b/packages/darwin_app/patches/s_audio_jack.patch @@ -0,0 +1,13 @@ +Index: s_audio_jack.c +=================================================================== +RCS file: /cvsroot/pure-data/pd/src/s_audio_jack.c,v +retrieving revision 1.4 +diff -r1.4 s_audio_jack.c +43c43,45 +< +--- +> #ifdef MACOSX +> jack_out_max = nframes; +> #else +45a48 +> #endif diff --git a/packages/darwin_app/patches/socket.patch b/packages/darwin_app/patches/socket.patch new file mode 100644 index 00000000..1480f4ae --- /dev/null +++ b/packages/darwin_app/patches/socket.patch @@ -0,0 +1,11 @@ +Index: s_inter.c +=================================================================== +RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v +retrieving revision 1.4 +diff -r1.4 s_inter.c +643a644,648 +> #ifdef MACOSX +> if (setsockopt(xsock, SOL_SOCKET, SO_REUSEADDR, +> &intarg, sizeof(intarg)) < 0) +> post("setsockopt (SO_REUSEADDR) failed\n"); +> #endif diff --git a/packages/darwin_app/patches/u_main.tk.patch b/packages/darwin_app/patches/u_main.tk.patch new file mode 100644 index 00000000..744cdd02 --- /dev/null +++ b/packages/darwin_app/patches/u_main.tk.patch @@ -0,0 +1,25 @@ +Index: u_main.tk +=================================================================== +RCS file: /cvsroot/pure-data/pd/src/u_main.tk,v +retrieving revision 1.3 +diff -r1.3 u_main.tk +34,35c34,36 +< set pd_guidir $pd_gui2/.. +< load $pd_guidir/bin/pdtcl +--- +> # set pd_guidir $pd_gui2/.. +> # load $pd_guidir/bin/pdtcl +> loadpdtcl +340a342 +> global tcl_platform +365,366c367,373 +< $mbar.help add command -label {Pure Documentation...} \ +< -command {menu_documentation} +--- +> if {$tcl_platform(os) != "Darwin"} { +> $mbar.help add command -label {Pure Documentation...} \ +> -command {menu_documentation} +> } else { +> $mbar.help add command -label {Pure Documentation...} \ +> -command {menu_doc_open doc/menus doc-menu.pd} +> } diff --git a/packages/darwin_app/patches/unpatch b/packages/darwin_app/patches/unpatch new file mode 100755 index 00000000..9ba3a16e --- /dev/null +++ b/packages/darwin_app/patches/unpatch @@ -0,0 +1,3 @@ +cd ../../../pd/src +rm s_inter.c makefile.in u_main.tk s_audio_jack.c configure +cvs update s_inter.c makefile.in u_main.tk s_audio_jack.c configure -- cgit v1.2.1