[bockbuild] Moved Gtk+ files back to main bockbuild repo
[mono.git] / bockbuild / mac-sdk / libtiff.py
1 class LibTiffPackage (Package):
2
3     def __init__(self):
4         Package.__init__(self, 'tiff', '4.0.3',
5                          configure_flags=[
6                          ],
7                          sources=[
8                              'http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz',
9                          ])
10
11         self.needs_lipo = True
12
13         if Package.profile.name == 'darwin':
14             self.sources.extend([
15                 # Fix Snow Leopard build
16                 # http://jira.freeswitch.org/secure/attachment/17487/tiff-4.0.2-macosx-2.patch
17                 'patches/tiff-4.0.2-macosx-2.patch'
18             ])
19
20     def prep(self):
21         Package.prep(self)
22         if Package.profile.name == 'darwin':
23             for p in range(1, len(self.local_sources)):
24                 self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
25
26 LibTiffPackage()