34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
--- setupext.py.orig 2013-08-02 09:39:43.914247832 +0200
|
|
+++ setupext.py 2013-08-02 09:40:14.785304342 +0200
|
|
@@ -914,28 +914,13 @@ class LibAgg(SetupPackage):
|
|
self.__class__.found_external = True
|
|
try:
|
|
return self._check_for_pkg_config(
|
|
- 'libagg', 'agg2/agg_basics.h', min_version='PATCH')
|
|
+ 'libagg', 'agg2/agg_basics.h', min_version='2.5.0')
|
|
except CheckFailed as e:
|
|
self.__class__.found_external = False
|
|
return str(e) + ' Using local copy.'
|
|
|
|
def add_flags(self, ext):
|
|
- if self.found_external:
|
|
- pkg_config.setup_extension(ext, 'libagg')
|
|
- else:
|
|
- ext.include_dirs.append('extern/agg24/include')
|
|
- agg_sources = [
|
|
- 'agg_bezier_arc.cpp',
|
|
- 'agg_curves.cpp',
|
|
- 'agg_image_filters.cpp',
|
|
- 'agg_trans_affine.cpp',
|
|
- 'agg_vcgen_contour.cpp',
|
|
- 'agg_vcgen_dash.cpp',
|
|
- 'agg_vcgen_stroke.cpp',
|
|
- 'agg_vpgen_segmentator.cpp'
|
|
- ]
|
|
- ext.sources.extend(
|
|
- os.path.join('extern', 'agg24', 'src', x) for x in agg_sources)
|
|
+ pkg_config.setup_extension(ext, 'libagg', default_include_dirs=["/usr/include/agg2"])
|
|
|
|
|
|
class FreeType(SetupPackage):
|