2017-04-10 11:41:01 +00:00
|
|
|
class LibJpegPackage (Package):
|
|
|
|
|
|
|
|
def __init__(self):
|
2017-06-07 13:16:24 +00:00
|
|
|
Package.__init__(
|
|
|
|
self,
|
|
|
|
'libjpeg',
|
|
|
|
'8',
|
|
|
|
sources=[
|
|
|
|
'http://www.ijg.org/files/jpegsrc.v8.tar.gz',
|
|
|
|
'patches/libjpeg8.patch'])
|
2017-04-10 11:41:01 +00:00
|
|
|
self.source_dir_name = 'jpeg-8'
|
|
|
|
|
2017-06-07 13:16:24 +00:00
|
|
|
def prep(self):
|
|
|
|
Package.prep(self)
|
|
|
|
for p in range(1, len(self.local_sources)):
|
|
|
|
self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
|
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
LibJpegPackage()
|