blob: ae5ea8fe3843972cbfaa6dd1c1ef26150a091f99 (
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'libjpeg-turbo'
version = '1.4.1'
licenses = [License.BSD_like]
stype = SourceType.TARBALL
configure_tpl = "%(config-sh)s --prefix=%(prefix)s "\
"--libdir=%(libdir)s %(options)s"
configure_options = " --with-jpeg8"
autoreconf = True
url = 'http://downloads.sourceforge.net/project/libjpeg-turbo/1.4.1/libjpeg-turbo-1.4.1.tar.gz'
patches = ['libjpeg-turbo/0001-jmorecfg-Fix-INT32-re-definition-with-w32api.patch']
files_libs = ['libjpeg','libturbojpeg']
files_devel = ['include/jpeglib.h', 'include/jerror.h', 'include/jconfig.h',
'include/jmorecfg.h','include/turbojpeg.h']
def prepare(self):
if self.config.target_platform in [Platform.DARWIN, Platform.IOS]:
# avoid using xcode's nasm (doesn't support nasm-like arguments)
# instead use cerbero's yasm
self.new_env['NASM'] = 'yasm'
|