diff options
author | Robin Gareus <robin@gareus.org> | 2015-01-08 16:57:46 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-01-08 17:59:41 +0100 |
commit | 659c0d093da45cd8dbd74ebb572eaaa45aed9bf4 (patch) | |
tree | d0e2771c871c4f1128870a1ee0d2acfb3c41cefd /libs | |
parent | 7985624037bc8dd7d167408cbecffdad0bb05a4a (diff) |
remove hardcoded major version in build scripts
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/wscript | 26 | ||||
-rw-r--r-- | libs/fst/wscript | 4 | ||||
-rw-r--r-- | libs/timecode/wscript | 3 |
3 files changed, 16 insertions, 17 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript index c61da5149b..567439cf40 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -10,9 +10,7 @@ import sys # default state file version for this build CURRENT_SESSION_FILE_VERSION = 3001 -# Variables for 'waf dist' -APPNAME = 'libardour3' -I18N_PACKAGE = 'ardour3' +I18N_PACKAGE = 'ardour' # Mandatory variables top = '.' @@ -246,7 +244,7 @@ def configure(conf): autowaf.build_version_files( path_prefix + 'ardour/version.h', path_prefix + 'version.cc', - 'libardour3', conf.env['MAJOR'], conf.env['MINOR'], 0, + 'libardour' + str(conf.env['MAJOR']), conf.env['MAJOR'], conf.env['MINOR'], 0, 'LIBARDOUR_API', 'ardour/libardour_visibility.h') autowaf.configure(conf) autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', @@ -367,7 +365,7 @@ def build(bld): obj.vnum = LIBARDOUR_LIB_VERSION obj.install_path = bld.env['LIBDIR'] obj.defines += [ - 'PACKAGE="' + I18N_PACKAGE + '"', + 'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', 'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"', @@ -418,7 +416,7 @@ def build(bld): mo_files = bld.path.ant_glob('po/*.mo') for mo in mo_files: lang = os.path.basename(mo.srcpath()).replace('.mo', '') - bld.install_as(os.path.join(bld.env['LOCALEDIR'], lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'), + bld.install_as(os.path.join(bld.env['LOCALEDIR'], lang, 'LC_MESSAGES', I18N_PACKAGE + str(bld.env['MAJOR']) + '.mo'), mo) if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'): @@ -437,7 +435,7 @@ def build(bld): else: testcommon.use.extend(['libltc', 'librubberband']) testcommon.defines = [ - 'PACKAGE="libardour3test"', + 'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'test"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', 'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"', @@ -516,7 +514,7 @@ def build(bld): session_load_tester.target = 'load-session' session_load_tester.install_path = '' session_load_tester.defines = [ - 'PACKAGE="libardour3profile"', + 'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'profile"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', 'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"', @@ -548,7 +546,7 @@ def build(bld): profilingobj.target = p profilingobj.install_path = '' profilingobj.defines = [ - 'PACKAGE="libardour3profile"', + 'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'profile"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', 'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"', @@ -579,7 +577,7 @@ def create_ardour_test_program(bld, includes, name, target, sources): # not sure about install path testobj.install_path = bld.env['LIBDIR'] testobj.defines = [ - 'PACKAGE="libardour3test"', + 'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'test"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', 'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"', @@ -589,17 +587,17 @@ def shutdown(): autowaf.shutdown() def i18n(bld): - autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources, + autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources, 'Paul Davis') def i18n_pot(bld): - autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources, + autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources, 'Paul Davis') def i18n_po(bld): - autowaf.build_i18n_po(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources, + autowaf.build_i18n_po(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources, 'Paul Davis') def i18n_mo(bld): - autowaf.build_i18n_mo(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources, + autowaf.build_i18n_mo(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources, 'Paul Davis') diff --git a/libs/fst/wscript b/libs/fst/wscript index 7449d5921d..3e4605837d 100644 --- a/libs/fst/wscript +++ b/libs/fst/wscript @@ -18,7 +18,7 @@ scanner_app_src = [ ] # needed for code used from libardour -I18N_PACKAGE = 'ardour3' +I18N_PACKAGE = 'ardour' def options(opt): autowaf.set_options(opt) @@ -82,7 +82,7 @@ def build(bld): '_POSIX_SOURCE', 'USE_WS_PREFIX', 'VST_SCANNER_APP', - 'PACKAGE="' + I18N_PACKAGE + '"', + 'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"', 'LIBARDOUR="' + bld.env['lwrcase_dirname'] + '"', ] obj.install_path = os.path.join(bld.env['LIBDIR']) diff --git a/libs/timecode/wscript b/libs/timecode/wscript index 77a23da088..fadeb0aebd 100644 --- a/libs/timecode/wscript +++ b/libs/timecode/wscript @@ -21,7 +21,8 @@ def build(bld): target = 'timecode', includes = ['.'], export_includes = ['.'], - defines = [ 'LIBTIMECODE_DLL_EXPORTS' ] + defines = [ 'LIBTIMECODE_DLL_EXPORTS' ], + install_path = bld.env['LIBDIR'] ) def shutdown(): |