Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for building matplotlib under Mac OS X 10.7 Lion and XCode > 4.2 #899

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions make.osx
@@ -1,13 +1,13 @@
# -*- makefile -*-
# build mpl into a local install dir with
# make -f make.osx PREFIX=/Users/jdhunter/dev PYVERSION=2.6 fetch deps mpl_install
# make -f make.osx PREFIX=/Users/jdhunter/dev PYVERSION=2.7 fetch deps mpl_install
# (see README.osx for more details)

MPLVERSION=1.1.0
PYVERSION=2.6
PYVERSION=2.7
PYTHON=python${PYVERSION}
MACOSX_DEPLOYMENT_TARGET=10.6
OSX_SDK_VER=10.6
MACOSX_DEPLOYMENT_TARGET=10.7
OSX_SDK_VER=10.7
ARCH_FLAGS?=-arch i386 -arch x86_64

# Dependency versions and URLs
Expand All @@ -25,17 +25,17 @@ ZLIBURL=http://sourceforge.net/projects/libpng/files/zlib/${ZLIBVERSION}/${ZLIBF

PNGFILE=libpng-${PNGVERSION}.tar.gz
PNGDIR=$(basename $(basename ${PNGFILE}))
PNGURL=http://sourceforge.net/projects/libpng/files/libpng15/older-releases/${PNGVERSION}/${PNGFILE}/download
PNGURL=http://sourceforge.net/projects/libpng/files/libpng15/${PNGVERSION}/${PNGFILE}/download
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see, this has made the code more likely to fail. Currently PNGVERSION in this file is 1.5.4 but the 1.5.4 folder only exists in the older-releases folder


FREETYPEFILE=freetype-${FREETYPEVERSION}.tar.bz2
FREETYPEDIR=$(basename $(basename ${FREETYPEFILE}))
FREETYPEURL=http://download.savannah.gnu.org/releases/freetype/${FREETYPEFILE}
FREETYPEURL=http://sourceforge.net/projects/freetype/files/freetype2/${FREETYPEVERSION}/${FREETYPEFILE}/download

## You shouldn't need to configure past this point

export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
export CFLAGS=${ARCH_FLAGS} -I${PREFIX}/include -I${PREFIX}/include/freetype2 -isysroot /Developer/SDKs/MacOSX${OSX_SDK_VER}.sdk
export LDFLAGS=${ARCH_FLAGS} -L${PREFIX}/lib -syslibroot,/Developer/SDKs/MacOSX${OSX_SDK_VER}.sdk
export CFLAGS=${ARCH_FLAGS} -I${PREFIX}/include -I${PREFIX}/include/freetype2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${OSX_SDK_VER}.sdk
export LDFLAGS=${ARCH_FLAGS} -L${PREFIX}/lib -syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${OSX_SDK_VER}.sdk
export MACOSX_DEPLOYMENT_TARGET

help:
Expand Down