diff options
Diffstat (limited to 'packages/libtiff.py')
-rw-r--r-- | packages/libtiff.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/libtiff.py b/packages/libtiff.py index 2cadcc6..588a472 100644 --- a/packages/libtiff.py +++ b/packages/libtiff.py @@ -7,7 +7,18 @@ class LibTiffPackage (Package): sources=[ 'http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz', ]) + self.sources.extend([ + 'patches/tiff/patch-tiffconf.diff', + 'patches/tiff/patch-tif_config.diff' + ]) - self.needs_lipo = True + def build(self): + if Package.profile.name == 'darwin': + Package.configure(self) + for p in range(1, len(self.local_sources)): + self.sh('patch -p0 < "%{local_sources[' + str(p) + ']}"') + Package.make(self) + else: + Package.build(self) LibTiffPackage() |