Name: libdcp
Description: DCP reading and writing library
Version: @version@
-Requires: sigc++-2.0 openssl libxml++-2.6 xmlsec1 libasdcp-cth
+Requires: sigc++-2.0 openssl libxml++-2.6 xmlsec1 libasdcp-cth @openjpeg@
Libs: @libs@
Cflags: -I${includedir}
version=VERSION,
includedir='%s/include/libdcp%s' % (bld.env.PREFIX, bld.env.API_VERSION),
libs="-L${libdir} -ldcp%s -lcxml -lboost_system%s" % (bld.env.API_VERSION, boost_lib_suffix),
- install_path='${LIBDIR}/pkgconfig')
+ install_path='${LIBDIR}/pkgconfig',
+ openjpeg='libopenjpeg1' if args.jpeg == 'oj1' else 'libopenjp2')
bld.recurse('src')
bld.recurse('tools')