summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-29 17:23:11 +0000
committerDavid Robillard <d@drobilla.net>2007-04-29 17:23:11 +0000
commitb3fe7cfc892f7d5978ad14eb81e9305fa9c14d13 (patch)
tree4c6617c0397fb1ad3bef1f5fced35fb64b022ccb /SConstruct
parent490e18d80a22dda07bdf88dd440f7100897822de (diff)
Merged with trunk R1761
git-svn-id: svn://localhost/ardour2/branches/midi@1762 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct32
1 files changed, 23 insertions, 9 deletions
diff --git a/SConstruct b/SConstruct
index 57d5dc344c..d00321c155 100644
--- a/SConstruct
+++ b/SConstruct
@@ -16,7 +16,7 @@ import SCons.Node.FS
SConsignFile()
EnsureSConsVersion(0, 96)
-ardour_version = '2.0rc1'
+ardour_version = '2.0rc2'
subst_dict = { }
@@ -382,14 +382,22 @@ env.Append (BUILDERS = {'Tarball' : tarball_bld})
#
if env['VST']:
- sys.stdout.write ("Are you building Ardour for personal use (rather than distribution to others)? [no]: ")
- answer = sys.stdin.readline ()
- answer = answer.rstrip().strip()
- if answer != "yes" and answer != "y":
- print 'You cannot build Ardour with VST support for distribution to others.\nIt is a violation of several different licenses. Build with VST=false.'
- sys.exit (-1);
+ if os.path.isfile('.personal_use_only'):
+ print "Enabling VST support. Note that distributing a VST-enabled ardour\nis a violation of several different licences.\nBuild with VST=false if you intend to distribute ardour to others."
else:
- print "OK, VST support will be enabled"
+ sys.stdout.write ("Are you building Ardour for personal use (rather than distribution to others)? [no]: ")
+ answer = sys.stdin.readline ()
+ answer = answer.rstrip().strip()
+ if answer == "yes" or answer == "y":
+ fh = open('.personal_use_only', 'w')
+ fh.close()
+ print "OK, VST support will be enabled"
+ else:
+ print 'You cannot build Ardour with VST support for distribution to others.\nIt is a violation of several different licenses. Build with VST=false.'
+ sys.exit (-1);
+else:
+ if os.path.isfile('.personal_use_only'):
+ os.remove('.personal_use_only')
#######################
@@ -1091,7 +1099,13 @@ if not conf.CheckFunc('posix_memalign'):
env = conf.Finish()
+# generate the per-user and system rc files from the same source
+
rcbuild = env.SubstInFile ('ardour.rc','ardour.rc.in', SUBST_DICT = subst_dict)
+sysrcbuild = env.SubstInFile ('ardour_system.rc','ardour.rc.in', SUBST_DICT = subst_dict)
+
+# add to the substitution dictionary
+
subst_dict['%VERSION%'] = ardour_version[0:3]
subst_dict['%EXTRA_VERSION%'] = ardour_version[3:]
subst_dict['%REVISION_STRING%'] = ''
@@ -1107,6 +1121,7 @@ env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.rc'))
Default (rcbuild)
+Default (sysrcbuild)
# source tarball
@@ -1116,7 +1131,6 @@ env.Distribute (env['DISTTREE'],
[ 'SConstruct', 'svn_revision.h',
'COPYING', 'PACKAGER_README', 'README',
'ardour.rc.in',
- 'ardour_system.rc',
'tools/config.guess',
'icons/icon/ardour_icon_mac_mask.png',
'icons/icon/ardour_icon_mac.png',