- Mapnik searches for py2cairo -> added dep if --with-cairo
- Explicitly give includes and libs for icu, boost, proj,
jpeg, libtif, and cairo
- pkg-config is not only used for cairo -> moved it out
of the `if build.include? 'with-cairo'` block
ClosesHomebrew/homebrew#17032.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
The patch has been merged upstream.
Add `unless ARGV.build_head?` to the patch block.
Note in the comments to remove the patch at version 2.0.2.
Mapnik HEAD builds well again.
FixesHomebrew/homebrew#12683
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Add patch to mapnik.rb to use an absolute path into site-packages
rather than a relative path in the file `paths.py`. The upstream
bug report is noted in the formula comments and is where the patch
offered by the developer came from.
FixesHomebrew/homebrew#12026.
ClosesHomebrew/homebrew#12043.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
mapnik compiles can take ~1.5 GB per job for some .cpp files
so lets be cautious by limiting to CPUS/2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Mapnik by default tries to install to the site-packages in /System
when brewed against system Python. This causes a build error
because that directory is not writeable. Mapnik correctly
determines the versioned site-packages name without modification,
but for Homebrew it needs the proper prefix.
* Add the standard `which_python` function to the formula.
* Add a scons argument for `PYTHON_PREFIX`
* Add the standard caveat for `PYTHONPATH`.
Discussed upstream: https://github.com/mapnik/mapnik/issues/1155
and tested on Lion against the system Python.
FixesHomebrew/homebrew#11389ClosesHomebrew/homebrew#11407.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
- new download link for mapnik 2.0.0 - and tweaks to avoid needing
external scons and to properly set the CC/CXX/JOBS so that the mapnik
build scripts will pick them up
ClosesHomebrew/homebrew#8177.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>