X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=wscript;h=1f5fa5b5257a1351f38f9beba483ebfda325d636;hb=f5ba686a28a44f57ebac6c812fa1a242812a4996;hp=7049535918c466e9d4c8b03616d90bfb775a4c58;hpb=42b01b86c03b1d624d1a3e1baedc9dc6dce4d412;p=dcpomatic.git diff --git a/wscript b/wscript index 704953591..1f5fa5b52 100644 --- a/wscript +++ b/wscript @@ -26,7 +26,7 @@ import distutils.spawn from waflib import Logs APPNAME = 'dcpomatic' -VERSION = '2.3.5' +VERSION = '2.3.8' def options(opt): opt.load('compiler_cxx') @@ -159,6 +159,22 @@ def configure(conf): else: conf.check_cfg(package='libcurl', args='--cflags --libs', uselib_store='CURL', mandatory=True) + # libicu + if conf.check_cfg(package='icu-i18n', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None: + if conf.check_cfg(package='icu', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None: + conf.check_cxx(fragment=""" + #include + int main(void) { + UErrorCode status = U_ZERO_ERROR; + UCharsetDetector* detector = ucsdet_open (&status); + return 0; }\n + """, + mandatory=True, + msg='Checking for libicu', + okmsg='yes', + libpath=['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'], + lib=['icuio', 'icui18n', 'icudata', 'icuuc'], + uselib_store='ICU') # libsndfile conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True)