8d890be6073e94fb51d46fc7697611e588e35f4f
[mono.git] / bockbuild / mac-sdk / fontconfig.py
1 class FontConfigPackage (Package):
2
3     def __init__(self):
4         Package.__init__(self, 'fontconfig', '2.10.2',
5                          configure_flags=['--disable-docs'],
6                          sources=[
7                              'http://www.fontconfig.org/release/%{name}-%{version}.tar.gz'
8                          ],
9                          # note: a non-empty DESTDIR keeps fc-cache from running at
10                          # install-time
11                          )
12
13     def build(self):
14         if Package.profile.name == 'darwin':
15             self.configure_flags.extend([
16                 '--with-cache-dir="~/Library/Caches/com.xamarin.fontconfig"',
17                 '--with-default-fonts=/System/Library/Fonts',
18                 '--with-add-fonts=/Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts'
19             ])
20         Package.build(self)
21
22 FontConfigPackage()