diff options
author | Karl Linden <karl.j.linden@gmail.com> | 2016-05-27 12:12:46 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-05-28 15:41:44 +0000 |
commit | 5b63ebc7a8533baec212f8b5f54eab88fc784a04 (patch) | |
tree | 749f102aae06fb3d29b847cd31edd934036e0747 /media-sound/klick/files | |
parent | media-gfx/shotwell: Version bump (diff) | |
download | gentoo-5b63ebc7a8533baec212f8b5f54eab88fc784a04.tar.gz gentoo-5b63ebc7a8533baec212f8b5f54eab88fc784a04.tar.bz2 gentoo-5b63ebc7a8533baec212f8b5f54eab88fc784a04.zip |
media-sound/klick: Initial ebuild.
Package-Manager: portage-2.3.0_rc1
Closes: https://github.com/gentoo/gentoo/pull/1548
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'media-sound/klick/files')
-rw-r--r-- | media-sound/klick/files/klick-0.12.2-sconstruct.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/media-sound/klick/files/klick-0.12.2-sconstruct.patch b/media-sound/klick/files/klick-0.12.2-sconstruct.patch new file mode 100644 index 000000000000..c142993b1e61 --- /dev/null +++ b/media-sound/klick/files/klick-0.12.2-sconstruct.patch @@ -0,0 +1,57 @@ +This patch +* replaces deprecated calls, +* makes the build system respect toolchain, +* avoids underlinking. + +--- klick-0.12.2.orig/SConstruct ++++ klick-0.12.2/SConstruct +@@ -11,24 +11,24 @@ + ENV = os.environ, + ) + +-# build options +-opts = Options('scache.conf') +-opts.AddOptions( +- PathOption('PREFIX', 'install prefix', '/usr/local'), +- PathOption('DESTDIR', 'intermediate install prefix', '', PathOption.PathAccept), +- BoolOption('DEBUG', 'debug mode', False), +- BoolOption('OSC', 'OSC support', True), +- BoolOption('TERMINAL', 'terminal control support', True), +- BoolOption('RUBBERBAND', 'use Rubber Band for pitch shifting', False), ++# build variables ++vars = Variables('scache.conf') ++vars.AddVariables( ++ ('CXX', 'C++ compiler'), ++ ('CXXFLAGS', 'C++ compiler flags'), ++ ('LINKFLAGS', 'linker flags'), ++ PathVariable('PREFIX', 'install prefix', '/usr/local'), ++ PathVariable('DESTDIR', 'intermediate install prefix', '', PathVariable.PathAccept), ++ BoolVariable('DEBUG', 'debug mode', False), ++ BoolVariable('OSC', 'OSC support', True), ++ BoolVariable('TERMINAL', 'terminal control support', True), ++ BoolVariable('RUBBERBAND', 'use Rubber Band for pitch shifting', False), + ) +-opts.Update(env) +-opts.Save('scache.conf', env) +-Help(opts.GenerateHelpText(env)) +- +-if env['DEBUG']: +- env.Append(CCFLAGS = ['-g', '-W', '-Wall']) +-else: +- env.Append(CCFLAGS = ['-O2', '-W', '-Wall']) ++vars.Update(env) ++vars.Save('scache.conf', env) ++Help(vars.GenerateHelpText(env)) ++ ++if not env['DEBUG']: + env.Prepend(CPPDEFINES = 'NDEBUG') + + # install paths +@@ -38,6 +38,7 @@ + env.Append(CPPDEFINES = ('DATA_DIR', '\\"%s\\"' % prefix_share)) + + # required libraries ++env.PrependUnique(LIBS = ['stdc++', 'm']) + env.ParseConfig( + 'pkg-config --cflags --libs jack samplerate sndfile' + ) |