lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Assorted fixes for macosx 10.2.8


From: Graham Percival
Subject: Re: [PATCH] Assorted fixes for macosx 10.2.8
Date: Wed, 7 Dec 2005 12:57:52 -0800

I don't understand most of these patch, but I found the stepmake/stepmake/*-vars.make patches very useful. (I can now compile lily again! :) Han-Wen, could I apply those?

- Graham

On 3-Dec-05, at 3:54 AM, Johannes Schindelin wrote:

---

 Documentation/user/GNUmakefile      |    1 +
 lily/GNUmakefile                    |    3 ++-
 ly/music-functions-init.ly          |   12 ++++++------
 my-lexer-gcc-3.1.sh                 |   10 ++++++++++
 stepmake/stepmake/compile-vars.make |   10 +++++++---
 stepmake/stepmake/generic-vars.make |    5 +++++
 6 files changed, 31 insertions(+), 10 deletions(-)

diff --git a/Documentation/user/GNUmakefile b/Documentation/user/GNUmakefile
index 6ab1df3..9b9821a 100644
--- a/Documentation/user/GNUmakefile
+++ b/Documentation/user/GNUmakefile
@@ -43,6 +43,7 @@ info: $(INFO_FILES)

 pathsettings:
        @echo export PATH=$(PATH)
+       @echo export LILYPOND_DATADIR=$(LILYPONDPREFIX)
        @echo export LILYPONDPREFIX=$(LILYPONDPREFIX)
        @echo export PYTHONPATH=$(PYTHONPATH)

diff --git a/lily/GNUmakefile b/lily/GNUmakefile
index 8d2e91a..fb9192e 100644
--- a/lily/GNUmakefile
+++ b/lily/GNUmakefile
@@ -67,10 +67,11 @@ endif

 # force these: Make can't know these have to be generated in advance
 $(outdir)/lily-parser.o: $(outdir)/parser.hh
-$(outdir)/lily-lexer.o: $(outdir)/parser.hh $(outdir)/FlexLexer.h
+$(outdir)/lily-lexer.o: $(outdir)/parser.hh
 $(outdir)/lexer.o: $(outdir)/parser.hh $(outdir)/version.hh

 ifneq ($(FLEXLEXER_FILE),)
+$(outdir)/lily-lexer.o: $(outdir)/FlexLexer.h
 $(outdir)/FlexLexer.h: $(FLEXLEXER_FILE) $(config_h)
        cp $< $@
 endif
diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly
index 798f466..50f5b07 100644
--- a/ly/music-functions-init.ly
+++ b/ly/music-functions-init.ly
@@ -51,12 +51,12 @@ displayMusic =
 %% FIXME: guile-1.7 required?
%#(use-modules (scm display-lily))invalid module name for use-syntax ((srfi srfi-39))

-#(use-modules (scm display-lily))
-#(display-lily-init parser)
-displayLilyMusic =
-#(def-music-function (parser location music) (ly:music?)
-   (display-lily-music music)
-   music)
+%#(use-modules (scm display-lily))
+%#(display-lily-init parser)
+%displayLilyMusic =
+%#(def-music-function (parser location music) (ly:music?)
+%   (display-lily-music music)
+%   music)

 applyOutput =
 #(def-music-function (parser location proc) (procedure?)
diff --git a/my-lexer-gcc-3.1.sh b/my-lexer-gcc-3.1.sh
new file mode 100644
index 0000000..c781409
--- /dev/null
+++ b/my-lexer-gcc-3.1.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cd "$(dirname "$0")/lily"
+
+rm out/lexer.cc 2>/dev/null
+make out/lexer.cc
+mv out/lexer.cc out/lexer.cc.orig
+cat out/lexer.cc.orig | sed 's/^class istream;$/#include <iostream>\
+using namespace std;/' > out/lexer.cc
+
diff --git a/stepmake/stepmake/compile-vars.make b/stepmake/stepmake/compile-vars.make
index b39499b..9af6eb5 100644
--- a/stepmake/stepmake/compile-vars.make
+++ b/stepmake/stepmake/compile-vars.make
@@ -3,10 +3,14 @@ ARFLAGS = ru
ALL_LDFLAGS = $(LDFLAGS) $(CONFIG_LDFLAGS) $($(PACKAGE)_LDFLAGS) $(MODULE_LDFLAGS) $(CONFIG_LDFLAGS)

 PIC_FLAGS = -fpic -fPIC
-ifeq ($(MINGW_BUILD),)
-SHARED_FLAGS = -shared
-else
+ifneq ($(MINGW_BUILD),)
 SHARED_FLAGS = -mdll
+else
+ifneq ($(DARWIN_BUILD),)
+SHARED_FLAGS = -bundle -flat_namespace -framework Python
+else
+SHARED_FLAGS = -shared
+endif
 endif

 o-dep-out = $(outdir)/$(subst .o,.dep,$(notdir $@))#
diff --git a/stepmake/stepmake/generic-vars.make b/stepmake/stepmake/generic-vars.make
index fc7e89e..0de08f8 100644
--- a/stepmake/stepmake/generic-vars.make
+++ b/stepmake/stepmake/generic-vars.make
@@ -111,3 +111,8 @@ endif
 ifeq ($(HOST_ARCH),i386-mingw32)
 MINGW_BUILD = yes
 endif
+
+ifeq ($(HOST_ARCH),ppc-darwin)
+DARWIN_BUILD = yes
+endif
+


_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]