- conf.check_cfg(package='libopenjp2', args='--cflags', atleast_version='2.1.0', uselib_store='OPENJPEG', mandatory=True)
- conf.env.STLIB_OPENJPEG = ['openjp2']
+ if conf.options.jpeg == 'oj2':
+ conf.check_cfg(package='libopenjp2', args='--cflags', atleast_version='2.1.0', uselib_store='OPENJPEG', mandatory=True)
+ conf.env.STLIB_OPENJPEG = ['openjp2']
+ elif conf.options.jpeg == 'oj1':
+ conf.check_cfg(package='libopenjpeg1', args='--cflags', atleast_version='1.5.0', uselib_store='OPENJPEG', mandatory=True)
+ conf.env.STLIB_OPENJPEG = ['openjpeg']
+ conf.check_cfg(package='libasdcp-cth', atleast_version='0.1.3', args='--cflags', uselib_store='ASDCPLIB_CTH', mandatory=True)
+ conf.env.HAVE_ASDCPLIB_CTH = 1
+ conf.env.STLIB_ASDCPLIB_CTH = ['asdcp-cth', 'kumu-cth']