blob: 588a47221752a0e9a441d37ef1b4cf8c59910bab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
class LibTiffPackage (Package):
def __init__(self):
Package.__init__(self, 'tiff', '4.0.9',
configure_flags=[
],
sources=[
'http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz',
])
self.sources.extend([
'patches/tiff/patch-tiffconf.diff',
'patches/tiff/patch-tif_config.diff'
])
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()
|