diff --git a/SConstruct b/SConstruct index cc21831df2..575c530300 100644 --- a/SConstruct +++ b/SConstruct @@ -46,6 +46,7 @@ opts.AddOptions( BoolOption('UNIVERSAL', 'Compile as universal binary. Requires that external libraries are already universal.', 0), BoolOption('VERSIONED', 'Add revision information to ardour/gtk executable name inside the build directory', 0), BoolOption('VST', 'Compile with support for VST', 0), + BoolOption('LV2', 'Compile with support for LV2 (if slv2 is available)', 1), BoolOption('GPROFILE', 'Compile with support for gprofile (Developers only)', 0), BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1) ) @@ -403,7 +404,6 @@ else: if os.path.isfile('.personal_use_only'): os.remove('.personal_use_only') - #################### # push environment #################### @@ -527,6 +527,18 @@ if env['FFT_ANALYSIS']: print ('FFT Analysis cannot be compiled without the FFTW3 headers, which do not seem to be installed') sys.exit (1) conf.Finish() + +if env['LV2']: + conf = env.Configure(custom_tests = { 'CheckPKGExists' : CheckPKGExists }) + + if conf.CheckPKGExists ('\"slv2 >= 0.4.4\"'): + libraries['slv2'] = LibraryInfo() + libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2') + else: + print 'Building Ardour with LV2 support requires SLV2 >= 0.4.4' + print 'WARNING: SLV2 not found, or too old. Ardour will be built without LV2 support.' + env['LV2'] = 0 + conf.Finish() libraries['jack'] = LibraryInfo() libraries['jack'].ParseConfig('pkg-config --cflags --libs jack') @@ -942,7 +954,7 @@ if env['SYSLIBS']: print '%s >= %s not found.' %(pkg, version) DependenciesRequiredMessage() Exit(1) - + env = conf.Finish() libraries['sigc2'] = LibraryInfo() diff --git a/gtk2_ardour/SConscript b/gtk2_ardour/SConscript index 24fd461c37..bc314f2fa4 100644 --- a/gtk2_ardour/SConscript +++ b/gtk2_ardour/SConscript @@ -211,6 +211,7 @@ route_ui.cc selection.cc sfdb_ui.cc send_ui.cc +splash.cc streamview.cc audio_streamview.cc tempo_dialog.cc @@ -270,24 +271,8 @@ if env['VST']: extra_sources += vst_files gtkardour.Append (CCFLAGS="-DVST_SUPPORT", CPPPATH="#libs/fst") -cmt_files=Split(""" -canvas-imageframe.c -editor_imageframe.cc -imageframe.cc -imageframe_socket_handler.cc -imageframe_time_axis.cc -imageframe_time_axis_group.cc -imageframe_time_axis_view.cc -imageframe_view.cc -marker_time_axis.cc -marker_time_axis_view.cc -marker_view.cc -visual_time_axis.cc -""") - -#if env['CMT']: -# extra_sources += cmt_files -# gtkardour.Append (CCFLAGS="-DWITH_CMT") +if env['LV2']: + gtkardour.Append (CCFLAGS="-DHAVE_SLV2") if gtkardour['GTKOSX']: extra_sources += gtkosx_files @@ -506,7 +491,6 @@ env.Alias ('tarball', env.Distribute (env['DISTTREE'], ] + gtkardour_files + vst_files + - cmt_files + pixmap_files + icon_files + skipped_files + diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index a201a1c404..a76fc3c619 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -156,6 +156,8 @@ static const char* authors[] = { N_("Nedko Arnaudov"), N_("Carl Hetherington"), N_("Colin Fletcher"), + N_("Roland Stigge"), + N_("Audun Halland"), 0 }; @@ -178,7 +180,7 @@ About::About () : paypal_pixmap (paypal_xpm) #endif { - set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); + // set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); string path; string t; diff --git a/gtk2_ardour/ardour3_ui_default.conf b/gtk2_ardour/ardour3_ui_default.conf index 8525908cf0..78e40f5515 100644 --- a/gtk2_ardour/ardour3_ui_default.conf +++ b/gtk2_ardour/ardour3_ui_default.conf @@ -4,7 +4,8 @@