2017-04-10 11:41:01 +00:00
|
|
|
class LibTiffPackage (Package):
|
|
|
|
|
|
|
|
def __init__(self):
|
2019-02-04 20:11:37 +00:00
|
|
|
Package.__init__(self, 'tiff', '4.0.9',
|
2017-04-10 11:41:01 +00:00
|
|
|
configure_flags=[
|
|
|
|
],
|
|
|
|
sources=[
|
|
|
|
'http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz',
|
|
|
|
])
|
2019-08-30 08:39:49 +00:00
|
|
|
self.sources.extend([
|
|
|
|
'patches/tiff/patch-tiffconf.diff',
|
|
|
|
'patches/tiff/patch-tif_config.diff'
|
|
|
|
])
|
2017-04-10 11:41:01 +00:00
|
|
|
|
2019-08-30 08:39:49 +00:00
|
|
|
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)
|
2017-04-10 11:41:01 +00:00
|
|
|
|
|
|
|
LibTiffPackage()
|