patch-gtk2_ardour_SConscript 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. $OpenBSD: patch-gtk2_ardour_SConscript,v 1.3 2015/09/28 15:45:25 ajacoutot Exp $
  2. --- gtk2_ardour/SConscript.orig Sun Dec 2 20:43:52 2012
  3. +++ gtk2_ardour/SConscript Mon Sep 28 10:48:48 2015
  4. @@ -18,7 +18,7 @@ domain = 'gtk2_ardour'
  5. gtkardour.Append(DOMAIN=domain, MAJOR=1,MINOR=0,MICRO=2)
  6. gtkardour.Append(CCFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
  7. gtkardour.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
  8. -gtkardour.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
  9. +gtkardour.Append(CXXFLAGS="-DSIGCXX_DISABLE_DEPRECATED")
  10. gtkardour.Append(CPPPATH="#/") # for top level svn_revision.h
  11. #gtkardour.Append(CXXFLAGS="-DFLOWCANVAS_AA")
  12. gtkardour.Append(PACKAGE=domain)
  13. @@ -27,6 +27,8 @@ gtkardour.Append(POTFILE=domain + '.pot')
  14. if gtkardour['IS_OSX']:
  15. gtkardour.Append (LINKFLAGS="-Xlinker -headerpad -Xlinker 2048")
  16. +env.Append(LINKFLAGS = "-lboost_system-mt")
  17. +
  18. gtkardour.Merge ([
  19. libraries['ardour'],
  20. libraries['ardour_cp'],
  21. @@ -58,7 +60,7 @@ gtkardour.Merge ([
  22. libraries['boost']
  23. ])
  24. -gtkmmtests.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
  25. +gtkmmtests.Append(CXXFLAGS="-DSIGCXX_DISABLE_DEPRECATED")
  26. gtkmmtests.Merge ([
  27. libraries['atkmm'],
  28. @@ -415,7 +417,7 @@ for style in ['', 'BOLD', 'ITALIC']:
  29. if env['GTKOSX']:
  30. ardour_menus = env.Command ('ardour.menus', 'ardour.menus.in', "cpp -E -P -DGTKOSX -DTOP_MENUBAR ardour.menus.in ardour.menus", chdir=1)
  31. else:
  32. - ardour_menus = env.Command ('ardour.menus', 'ardour.menus.in', "cpp -E -P ardour.menus.in ardour.menus", chdir=1)
  33. + ardour_menus = env.Command ('ardour.menus', 'ardour.menus.in', "cpp -E -P ardour.menus.in > ardour.menus", chdir=1)
  34. ardour_dark_theme = env.SubstInFile ('ardour2_ui_dark.rc', 'ardour2_ui_dark.rc.in', SUBST_DICT = my_font_dict)
  35. ardour_light_theme = env.SubstInFile ('ardour2_ui_light.rc', 'ardour2_ui_light.rc.in', SUBST_DICT = my_font_dict)
  36. @@ -531,14 +533,9 @@ if env['FREEDESKTOP']:
  37. env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '22x22', 'mimetypes', 'application-x-ardour2.png'), 'icons/application-x-ardour_22px.png'))
  38. env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '32x32', 'mimetypes', 'application-x-ardour2.png'), 'icons/application-x-ardour_32px.png'))
  39. env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '48x48', 'mimetypes', 'application-x-ardour2.png'), 'icons/application-x-ardour_48px.png'))
  40. - env.Alias('install', env.Command (os.path.join(install_prefix, 'share', 'mime'), [], 'update-mime-database $TARGET'))
  41. - # Update the icon cache #
  42. - env.Alias('install', env.Command (desktop_icon_install_prefix, [], 'touch --no-create $TARGET'))
  43. - env.Alias('install', env.Command (desktop_icon_install_prefix, [], 'gtk-update-icon-cache $TARGET'))
  44. # Make the ardour2.desktop file and install it #
  45. env.Alias('install', env.Command ('ardour2.desktop', 'ardour2.desktop.in', 'cat $SOURCES > $TARGET'))
  46. env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'applications'), 'ardour2.desktop'))
  47. - env.Alias('install', env.Command (os.path.join(install_prefix, 'share', 'applications'), [], 'update-desktop-database $TARGET'))
  48. # uninstall target.. needed to run update-mime-database and update-desktop-database after removal. #`
  49. remove_desktop_files = env.Command ('another_frobnicatory_decoy', [],
  50. [ Delete (install_prefix + '/share/mime/packages/ardour2.xml'),