You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
02a34581b2
- separate/refresh patches for the three different versions
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
--- setupext.py.orig 2019-02-25 20:20:29.000000000 -0500
|
|
+++ setupext.py 2019-02-27 23:17:33.000000000 -0500
|
|
@@ -1300,23 +1300,10 @@
|
|
|
|
def check(self):
|
|
self.__class__.found_external = True
|
|
- try:
|
|
- return self._check_for_pkg_config(
|
|
- 'libqhull', 'libqhull/qhull_a.h', min_version='2015.2')
|
|
- except CheckFailed as e:
|
|
- self.__class__.found_pkgconfig = False
|
|
- self.__class__.found_external = False
|
|
- return str(e) + ' Using local copy.'
|
|
+ return ' Using copy installed by MacPorts.'
|
|
|
|
def add_flags(self, ext):
|
|
- if self.found_external:
|
|
- pkg_config.setup_extension(ext, 'qhull',
|
|
- default_libraries=['qhull'])
|
|
- else:
|
|
- ext.include_dirs.insert(0, 'extern')
|
|
- ext.sources.extend(sorted(glob.glob('extern/libqhull/*.c')))
|
|
- if sysconfig.get_config_var('LIBM') == '-lm':
|
|
- ext.libraries.extend('m')
|
|
+ ext.libraries.append('qhull')
|
|
|
|
|
|
class TTConv(SetupPackage):
|