2013-08-02 08:31:00 +00:00
|
|
|
--- setupext.py.orig 2013-08-02 09:39:43.914247832 +0200
|
|
|
|
+++ setupext.py 2013-08-02 09:40:14.785304342 +0200
|
2015-02-25 03:17:01 +00:00
|
|
|
@@ -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
|
2013-08-02 08:31:00 +00:00
|
|
|
return str(e) + ' Using local copy.'
|
|
|
|
|
|
|
|
def add_flags(self, ext):
|
|
|
|
- if self.found_external:
|
|
|
|
- pkg_config.setup_extension(ext, 'libagg')
|
|
|
|
- else:
|
2015-02-25 03:17:01 +00:00
|
|
|
- ext.include_dirs.append('extern/agg24/include')
|
2013-08-02 08:31:00 +00:00
|
|
|
- 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(
|
2015-02-25 03:17:01 +00:00
|
|
|
- os.path.join('extern', 'agg24', 'src', x) for x in agg_sources)
|
2013-08-02 08:31:00 +00:00
|
|
|
+ pkg_config.setup_extension(ext, 'libagg', default_include_dirs=["/usr/include/agg2"])
|
|
|
|
|
|
|
|
|
|
|
|
class FreeType(SetupPackage):
|