mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add build instructions and cairo workaround for OSX MacPorts
This commit is contained in:
parent
46f47e7a73
commit
9890f1c977
1 changed files with 20 additions and 1 deletions
21
README.md
21
README.md
|
@ -12,11 +12,15 @@ given day. Good luck!
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
On OS X:
|
On OS X (homebrew):
|
||||||
|
|
||||||
brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
|
brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
|
||||||
brew install sdl cairo
|
brew install sdl cairo
|
||||||
|
|
||||||
|
On OS X (MacPorts):
|
||||||
|
|
||||||
|
sudo port install autoconf213 libsdl cairo +x11 +quartz
|
||||||
|
|
||||||
On Debian-based Linuxes:
|
On Debian-based Linuxes:
|
||||||
|
|
||||||
sudo apt-get install libsdl1.2-dev libcairo2-dev libpango1.0-dev autoconf2.13 freeglut3-dev
|
sudo apt-get install libsdl1.2-dev libcairo2-dev libpango1.0-dev autoconf2.13 freeglut3-dev
|
||||||
|
@ -32,3 +36,18 @@ On Debian-based Linuxes:
|
||||||
../configure
|
../configure
|
||||||
make check && make
|
make check && make
|
||||||
./servo ../src/test/test.html
|
./servo ../src/test/test.html
|
||||||
|
|
||||||
|
|
||||||
|
### Build Workarounds
|
||||||
|
|
||||||
|
#### MacPorts
|
||||||
|
|
||||||
|
Currently, the Makefile for the rust-azure submodule has a hardcoded
|
||||||
|
library path that assumes cairo has been installed with homebrew. If
|
||||||
|
you have installed with MacPorts, you will need to change the library
|
||||||
|
path to cairo. The following command should apply a patch with the fix:
|
||||||
|
|
||||||
|
cd src/rust-azure && git diff 1e811d44^1 1e811d44 | patch -p1
|
||||||
|
|
||||||
|
This problem should go away once Issue #40 is fixed, and an
|
||||||
|
externally-built cairo is no longer needed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue