|
Lines 144-150
Link Here
|
| 144 |
|
144 |
|
| 145 |
basedir_map = { |
145 |
basedir_map = { |
| 146 |
'win32': ['win32_static',], |
146 |
'win32': ['win32_static',], |
| 147 |
'darwin': ['/usr/local/', '/usr', '/usr/X11', '/opt/local'], |
147 |
'darwin': ['/usr/local/', '/usr', '/opt/local'], |
| 148 |
'sunos5': [os.getenv('MPLIB_BASE') or '/usr/local',], |
148 |
'sunos5': [os.getenv('MPLIB_BASE') or '/usr/local',], |
| 149 |
'gnu0': ['/usr'], |
149 |
'gnu0': ['/usr'], |
| 150 |
'aix5': ['/usr/local'], |
150 |
'aix5': ['/usr/local'], |
|
Lines 795-800
Link Here
|
| 795 |
default_libraries=['freetype', 'z'], |
795 |
default_libraries=['freetype', 'z'], |
| 796 |
alt_exec='freetype-config') |
796 |
alt_exec='freetype-config') |
| 797 |
|
797 |
|
|
|
798 |
def get_extension(self): |
| 799 |
ext = make_extension('test', []) |
| 800 |
pkg_config.setup_extension(ext, "freetype2") |
| 801 |
ext.include_dirs.append(ext.include_dirs[-1][:-len('/freetype2')]) |
| 802 |
return ext |
| 803 |
|
| 798 |
|
804 |
|
| 799 |
class FT2Font(SetupPackage): |
805 |
class FT2Font(SetupPackage): |
| 800 |
name = 'ft2font' |
806 |
name = 'ft2font' |