Fixing #483400

parent a2cb171f
mapserver (5.0.2-3) unstable; urgency=low
* The setup.py script is not able to manage properly static libraries flavor
for AGG now used embedded in mapserver. The trick is explicitly linking by
manipulating the mapscriptvars file before running setup.py.
(closes: #483400)
-- Francesco Paolo Lovergine <frankie@debian.org> Fri, 06 Jun 2008 10:34:21 +0200
mapserver (5.0.2-2) unstable; urgency=low
* Added embedded AGG 2.4 for use with mapserver. This is a BSD-licensed
......
......@@ -122,8 +122,16 @@ build-arch-stamp: configure-stamp build-agg-stamp
&& $(MAKE) LD_RUN_PATH="" OPTIMIZE="-O2 -g -W -Wall"
# Build python
# This is a dirty hack to properly link agg static libraries using setup.py
# It fixes
# 1. changes a bit mapscriptvars
sed -e 's/ -lagg/\/libagg.a/' -e 's/-L\([^ ]*\.agg-2\.4\/lib\)\/libagg\.a\ -laggfontfreetype/\1\/libagg.a \1\/libaggfontfreetype.a/' \
$(CURDIR)/mapscriptvars >$(CURDIR)/mapscript/python/mapscriptvars
# 2. now changes setup.py to use the changed copy
sed -e 's/\("\)\.\.\/\.\.\/\(mapscriptvars"\)/\1\2/' \
$(CURDIR)/mapscript/python/setup.py >$(CURDIR)/mapscript/python/setup-hack.py
cd $(CURDIR)/mapscript/python && \
set -e; for python in $(PYVERS); do $$python setup.py build; done
set -e; for python in $(PYVERS); do $$python setup-hack.py build; done
# Build ruby
cd $(CURDIR)/mapscript/ruby && set -e ; \
......@@ -154,11 +162,14 @@ clean-first-build:
-$(MAKE) mapscriptvars || touch mapscriptvars
-cd mapscript/perl && $(MAKE) distclean
-cd mapscript/python && \
for python in $(PYVERS); do $$python setup.py clean; done
for python in $(PYVERS); do $$python setup-hack.py clean; done
-$(RM) -rf mapscript/python/build
-$(MAKE) distclean -C $(CURDIR)/mapscript/ruby
-$(RM) -rf $(CURDIR)/mapscript/ruby/mapscript_wrap.c
-$(RM) mapscriptvars
# Clean private python-mapscript hacks
-$(RM) mapscript/python/mapscriptvars
-$(RM) mapscript/python/setup-hack.py
-$(RM) mapscript/perl/mapscript.i \
mapscript/tcl/mapscript.i \
......@@ -215,7 +226,7 @@ install-arch-stamp: build-arch
# Python mapscript
cd $(CURDIR)/mapscript/python && set -e ; \
for python in $(PYVERS); do \
$$python setup.py install --root=$(CURDIR)/debian/python-mapscript ; \
$$python setup-hack.py install --root=$(CURDIR)/debian/python-mapscript ; \
done
# Ruby mapscript
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment