define_name='DCPOMATIC_HAVE_AVCOMPONENTDESCRIPTOR_DEPTH_MINUS1',
mandatory=False)
+ # See if we have av_register_all and avfilter_register_all
+ conf.check_cxx(fragment="""
+ extern "C" {\n
+ #include <libavformat/avformat.h>\n
+ #include <libavfilter/avfilter.h>\n
+ }\n
+ int main () { av_register_all(); avfilter_register_all(); }\n
+ """,
+ msg='Checking for av_register_all and avfilter_register_all',
+ uselib='AVFORMAT AVFILTER',
+ define_name='DCPOMATIC_HAVE_AVREGISTER',
+ mandatory=False)
+
# Hack: the previous two check_cxx calls end up copying their (necessary) cxxflags
# to these variables. We don't want to use these for the actual build, so clean them out.
conf.env['CXXFLAGS_AVCODEC'] = []
def post(ctx):
if ctx.cmd == 'install' and ctx.env.TARGET_LINUX:
ctx.exec_command('/sbin/ldconfig')
- # setuid root executables
- for e in ['dcpomatic2_uuid', 'dcpomatic2_disk_writer']:
- # I can't find anything which tells me where things have been installed to,
- # so here's some nasty hacks to guess.
- debian = os.path.join(ctx.out_dir, '../debian/dcpomatic/usr/bin/%s' % e)
- prefix = os.path.join(ctx.env['INSTALL_PREFIX'], 'bin/%s' % e)
- if os.path.exists(debian):
- os.chmod(debian, 0o4755)
- if os.path.exists(prefix):
- os.chmod(prefix, 0o4755)
+ # setuid root executable
+ exe = os.path.join(ctx.env['INSTALL_PREFIX'], 'bin/%s/dcpomatic2_disk_writer')
+ if os.path.exists(exe):
+ os.chmod(exe, 0o4755)
def pot(bld):
bld.recurse('src')