Xamarin Public Jenkins (auto-signing) 966bba02bb Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
2017-06-07 13:16:24 +00:00

27 lines
884 B
Python

class LibTiffPackage (Package):
def __init__(self):
Package.__init__(self, 'tiff', '4.0.8',
configure_flags=[
],
sources=[
'http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz',
])
self.needs_lipo = True
if Package.profile.name == 'darwin':
self.sources.extend([
# Fix Snow Leopard build
# http://jira.freeswitch.org/secure/attachment/17487/tiff-4.0.2-macosx-2.patch
'patches/tiff-4.0.2-macosx-2.patch'
])
def prep(self):
Package.prep(self)
if Package.profile.name == 'darwin':
for p in range(1, len(self.local_sources)):
self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
LibTiffPackage()