Peter Teeson <[EMAIL PROTECTED]> writes:

> In file .../stepmake/stepmake/compile-vars.make
> SHARED_FLAGS = -shared
> is replaced by
> SHARED_FLAGS = -bundle -flat_namespace -undefined suppress
>
> Whether the other patches are required time will tell.
> But at least this allowed me to run make.

You can also build lily on the mac (almost)without patching.
With the attached scripts, I build lily from CVS.

#! /bin/bash

# find fontconfig, freetype and pango from fink
PKG_CONFIG_PATH=/sw/lib/fontconfig2/lib/pkgconfig/:/sw/lib/freetype219/lib/pkgconfig:/sw/lib/pango-ft219/lib/pkgconfig

# find flex 2.5.31 from fink (package flex-devel)
PATH="/sw/lib/flex/bin:$PATH"
CPPFLAGS="-I/sw/lib/flex/include"
LDFLAGS="-L/sw/lib/flex/lib -L/sw/lib -lexpat"
# -shared flag do not work on mac os x
SHARED_FLAGS="-bundle -flat_namespace -undefined suppress"
# tell about fink's kpathsea:
KPATHSEA_FLAGS="--with-kpathsea-include=/sw/include --with-kpathsea-lib=/sw/lib"
#KPATHSEA_FLAGS="--without-kpathsea"

./autogen.sh --noconf
rm -f config.cache
patch -uN < ../aclocal.patch
PKG_CONFIG_PATH="$PKG_CONFIG_PATH" PATH="$PATH" SHARED_FLAGS="$SHARED_FLAGS" 
CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" ./configure --prefix=$(pwd) 
--infodir=$(pwd)/share/info $KPATHSEA_FLAGS 
#! /bin/sh

# find fontconfig, freetype and pango from fink
PKG_CONFIG_PATH=/sw/lib/fontconfig2/lib/pkgconfig/:/sw/lib/freetype219/lib/pkgconfig:/sw/lib/pango-ft219/lib/pkgconfig

# find flex 2.5.31 from fink (package flex-devel)
PATH="/sw/lib/flex/bin:$PATH"
CPPFLAGS="-I/sw/lib/flex/include"
LDFLAGS="-L/sw/lib/flex/lib -L/sw/lib -lexpat"
# -shared flag do not work on mac os x
SHARED_FLAGS="-bundle -flat_namespace -undefined suppress"
# tell about fink's kpathsea:
KPATHSEA_FLAGS="--with-kpathsea-include=/sw/include --with-kpathsea-lib=/sw/lib"
#KPATHSEA_FLAGS="--without-kpathsea"

make PATH="$PATH" SHARED_FLAGS="$SHARED_FLAGS" LDFLAGS="$LDFLAGS"
the aclocal.patch thing is to make gcc find the flex header from fink,
not the one shipped with OS X, for it is obsolete. There may be a better
way to do that (and I'd be glad to hear about).

nicolas
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to