help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to compile Emacs on Mac OS X with extra libs from MacPorts


From: Peter Dyballa
Subject: Re: How to compile Emacs on Mac OS X with extra libs from MacPorts
Date: Sat, 21 Mar 2009 10:34:29 +0100


Am 21.03.2009 um 04:20 schrieb an0:

Have anyone made it on Mac OS X with MacPorts?

It's always useful to invoke

        ./configure --help

One big bug is that the configure script has hardcoded /sw (Fink) related paths. You could substitute that with /opt ...

I am using:

env PATH=/opt/local/bin:$PATH CPPFLAGS="" ./configure --without- sound --without-pop --with-dbus --with-libotf --with-xpm --with-jpeg --with-tiff --with-gif --with-png --x-includes=/opt/local/include --x- libraries=/opt/local/lib --enable-locallisppath=/Library/Application\ Support/Emacs/calendar23:/Library/Application\ Support/Emacs PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/ usr/lib/pkgconfig CFLAGS="-Wno-pointer-sign -H -pipe -fPIC -mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize-register- move -freorder-blocks -freorder-blocks-and-partition -fthread-jumps - fpeephole -fno-crossjumping" LDFLAGS="-dead_strip -multiply_defined suppress -L/opt/local/lib"

The important things are: not using <variable>+ (this does not seem to work, I've seen this fail in a handful of situations) and particularly:

         --x-includes=/opt/local/include --x-libraries=/opt/local/lib

(the many --with-<graphics> are probably superfluous, CPPFLAGS="" cancels my Fink based environment) I am not sure whether the final -L/ opt/local/lib is necessary. I am testing (on PPC, Tiger 10.4.11) since a few weeks and could not check yet all possible variations ... (MacPorts offers for Tiger an X11R7.3 based X server, quartz-wm, and libraries)


To build Emacs.app, the native Aqua client, I am using:

env PATH=/opt/local/bin:$PATH ./configure --without-sound --without- pop --with-dbus --with-libotf --with-ns --disable-ns-self-contained -- x-includes=/opt/local/include --x-libraries=/opt/local/lib --enable- locallisppath=/Library/Application\ Support/Emacs/calendar23:/Library/ Application\ Support/Emacs PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/ usr/local/lib/pkgconfig:/usr/lib/pkgconfig CFLAGS="-Wno-pointer-sign - H -pipe -fPIC -mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree- vectorize -foptimize-register-move -freorder-blocks -freorder-blocks- and-partition -fthread-jumps -fpeephole -fno-crossjumping" LDFLAGS="- dead_strip -multiply_defined suppress -L/opt/local/lib"


And don't forget to run a final 'sudo make install'! Otherwise Emacs.app won't launch.

--
Greetings

  Pete

Bake pizza not war!







reply via email to

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