diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2008-05-20 23:54:28 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2008-05-20 23:54:28 +0000 |
commit | 8f589e65193b5de5294718322dc9b4e6838121e8 (patch) | |
tree | a72366f70f680a90d54b0377bac73797dc88f592 /media-sound/mixxx | |
parent | Prepare for new mixxx (diff) | |
download | historical-8f589e65193b5de5294718322dc9b4e6838121e8.tar.gz historical-8f589e65193b5de5294718322dc9b4e6838121e8.tar.bz2 historical-8f589e65193b5de5294718322dc9b4e6838121e8.zip |
Version bump
Package-Manager: portage-2.1.5
Diffstat (limited to 'media-sound/mixxx')
-rw-r--r-- | media-sound/mixxx/ChangeLog | 10 | ||||
-rw-r--r-- | media-sound/mixxx/Manifest | 5 | ||||
-rw-r--r-- | media-sound/mixxx/files/mixxx-1.6.0_beta2-toolchain.patch | 428 | ||||
-rw-r--r-- | media-sound/mixxx/mixxx-1.6.0_beta2.ebuild | 86 |
4 files changed, 526 insertions, 3 deletions
diff --git a/media-sound/mixxx/ChangeLog b/media-sound/mixxx/ChangeLog index 33bb449140b5..d4a78bbc5b33 100644 --- a/media-sound/mixxx/ChangeLog +++ b/media-sound/mixxx/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/mixxx -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mixxx/ChangeLog,v 1.35 2007/07/02 15:15:32 peper Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mixxx/ChangeLog,v 1.36 2008/05/20 23:54:27 drac Exp $ + +*mixxx-1.6.0_beta2 (20 May 2008) + + 20 May 2008; Samuli Suominen <drac@gentoo.org> + +files/mixxx-1.6.0_beta2-toolchain.patch, +mixxx-1.6.0_beta2.ebuild: + Version bump wrt #147042, thanks to Alex Barker and Markus Giese. 02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org> Manifest: (QA) RESTRICT clean up. diff --git a/media-sound/mixxx/Manifest b/media-sound/mixxx/Manifest index 7964b1cb3c6d..2b141112038f 100644 --- a/media-sound/mixxx/Manifest +++ b/media-sound/mixxx/Manifest @@ -1,10 +1,13 @@ AUX mixxx-1.3.2-gentoo.patch 3606 RMD160 0d25b066db86d4694726c7df46e50e6a2859fa07 SHA1 72d9dd1f91e1f5495cb5b46106e7283579c8b266 SHA256 b98245fd1c75ec173484503031c870f08f1280aad98f0fef119702b6103c4850 +AUX mixxx-1.6.0_beta2-toolchain.patch 16382 RMD160 a511b1afbce24a219999bf2212788e4088525392 SHA1 edd2ff84d4eadad0746f2a8a33a32d48f77c4fac SHA256 d7ff2f5c877634dd0d8162cdeb60fa35b8ab08f5375469a4a6fea5df2ada1351 AUX mixxx.pro 13666 RMD160 94fe2ff62cc992ea95af16d854b60db2733d568f SHA1 30663387cfce2745a95dc4f73d086edba2d30566 SHA256 7e97380c149f52d127e0163f06654096420712ce7d230e98195dd47323d58e05 DIST mixxx-1.2.1.tar.gz 3029353 RMD160 f9f2fdf20d65eba8883163033ffc72ebdcf58f09 SHA1 20c4f496937a2798e889ce8c7d0f0b53f64854c0 SHA256 9b775d7609027873405463a99bda7f0425518f9f639b0122eba0e3220f29f5f0 DIST mixxx-1.4.1.tar.gz 3838962 RMD160 428563fd8eb21c6365c32adc736dfa5cbd7b6c16 SHA1 94b31cd97178d13a580762cb4a914f29248a555b SHA256 1e851762f080cc3464c2e05fbe23e225d98f69e26007b48d35ec5c75be7374ff DIST mixxx-1.4.2.tar.gz 3839230 RMD160 64e7233239b8dad486cbde9a05f24d069ee277b0 SHA1 0406bcdd7c04eaacc74aeb7466c8ea31da19b6e0 SHA256 2673f29c84e80cb309473ae2d2f7be76abf47eaa9b8972e4848fbe7b1dfa2a52 +DIST mixxx-1.6.0-beta2-src.tar.gz 7081765 RMD160 1464294e1f0c5c4109d44b0740c523ac64ca8a91 SHA1 ecf8910c3505a8ea44e663b157572e6032b8e4dc SHA256 82a9eef7ed75c32a025e3093619c255977177f1265cd317693765a4838c7cd8c EBUILD mixxx-1.2.1.ebuild 1516 RMD160 1e1b488ac40d4446939db27c68808e8c608caaa1 SHA1 4df4916560cc6fbfea5b8b43d5f0d42df1f192fe SHA256 eb66a11e072afc93aa86169c522bcc6afc2399e8dc12006a9e62525593d3d8e6 EBUILD mixxx-1.4.1.ebuild 1469 RMD160 92e07414f30285da98f47a0c5e10d77916b00afe SHA1 bc22c7df74bc15250dd8fdbbddca39900df69622 SHA256 577d92f4c020e14401e20d88062287663a6f11c8b807761a22c20f953014d976 EBUILD mixxx-1.4.2.ebuild 1474 RMD160 6bf1f9cc0ca8c536b52263fe2c63df43e4dea3cb SHA1 b7eebd84c01aa2d816b96b8fcb122fd15978858d SHA256 a877580053cb214da4dc4cb5ba39c360fac87839574039a075e376a842f304db -MISC ChangeLog 4590 RMD160 4380d63359f0c6db559a3dca9a66fc4cbc56d665 SHA1 9b955a0d28755746b4b784102e0885e81b82156b SHA256 cf386584ab711e7fc15a00140ba2734eafe3ec60281f918fecb9a6e776460af1 +EBUILD mixxx-1.6.0_beta2.ebuild 2403 RMD160 a44bcb562092dfdefebf697cbb89bf4dd9991df8 SHA1 bc0606378606dbbc6821722251ac95363c855217 SHA256 2619126f9f3a34614bed6626868f3924d386bb97d3005818a3f2dac0818b4077 +MISC ChangeLog 4812 RMD160 d7f303d78c4120609bde4ae44506c7eb9d9031b4 SHA1 7e3ef9a60821b94fc49078ec933874bedbc433a6 SHA256 5149f2a44c3f2d4a14ddc7dc2fa3219fb610cd453e9b47954221fbaf3cea4239 MISC metadata.xml 221 RMD160 600a2278f8a89283311c5bb10b02d54cebef8ca3 SHA1 aff61004cffd7341912643e1ab44a8df84e14c23 SHA256 3341e7789c5ba08aade2440d5ce6d2937e8432775731033190f11df5f64d085e diff --git a/media-sound/mixxx/files/mixxx-1.6.0_beta2-toolchain.patch b/media-sound/mixxx/files/mixxx-1.6.0_beta2-toolchain.patch new file mode 100644 index 000000000000..48cc68a58373 --- /dev/null +++ b/media-sound/mixxx/files/mixxx-1.6.0_beta2-toolchain.patch @@ -0,0 +1,428 @@ +diff -ur mixxx-1.6.0beta2.orig/src/SConscript mixxx-1.6.0beta2/src/SConscript +--- mixxx-1.6.0beta2.orig/src/SConscript 2008-02-04 22:27:19.000000000 +0200 ++++ mixxx-1.6.0beta2/src/SConscript 2008-05-21 01:15:04.000000000 +0300 +@@ -21,6 +21,15 @@ + #Useful functions + # + ++def getSVNRevision(): # GPL code taken from http://trac.zeitherrschaft.org/zzub/browser/trunk/SConstruct ++ # if this is a repository, take the string from svnversion ++ svnversionpath = env.WhereIs('svnversion', os.environ['PATH']) ++ if os.path.isdir('../.svn') and (svnversionpath != None): # we always start in .obj for some reason, so we must use ../.svn ++ rev = os.popen('svnversion ..').readline().strip() ++ if rev != "" and rev != "exported": ++ return rev ++ return "" ++ + #Checks for OpenGL on all three platforms + def CheckOpenGL(): + if not conf.CheckLib('GL') and not conf.CheckLib('opengl32') and not conf.CheckCHeader('/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h'): +@@ -58,6 +67,48 @@ + + return + ++#Check for FFMPEG support ++def CheckFFMPEG(conf, sources): ++ flags_ffmpeg = ARGUMENTS.get('ffmpeg', 0) ++ if int(flags_ffmpeg): ++ if platform == 'linux': ++ #Check for libavcodec, libavformat ++ #I just randomly picked version numbers lower than mine for this - Albert ++ if not conf.CheckForPKG('libavcodec', '51.20.0'): ++ print 'libavcodec not found.' ++ Exit(1) ++ if not conf.CheckForPKG('libavformat', '51.1.0'): ++ print 'libavcodec not found.' ++ Exit(1) ++ else: ++ #Grabs the libs and cflags for ffmpeg ++ env.ParseConfig('pkg-config libavcodec --silence-errors --cflags --libs') ++ env.ParseConfig('pkg-config libavformat --silence-errors --cflags --libs') ++ env.Append(CXXFLAGS = '-D__FFMPEGFILE__') ++ else: ++ # aptitude install libavcodec-dev libavformat-dev liba52-0.7.4-dev libdts-dev ++ env.Append(LIBS = 'avcodec') ++ env.Append(LIBS = 'avformat') ++ env.Append(LIBS = 'z') ++ env.Append(LIBS = 'a52') ++ env.Append(LIBS = 'dts') ++ env.Append(LIBS = 'gsm') ++ env.Append(LIBS = 'dc1394_control') ++ env.Append(LIBS = 'dl') ++ env.Append(LIBS = 'vorbisenc') ++ env.Append(LIBS = 'raw1394') ++ env.Append(LIBS = 'avutil') ++ env.Append(LIBS = 'vorbis') ++ env.Append(LIBS = 'm') ++ env.Append(LIBS = 'ogg') ++ env.Append(CXXFLAGS = '-D__FFMPEGFILE__') ++ sources += Split("""soundsourceffmpeg.cpp """) ++ print "Not working FFMPEG support... enabled" ++ else: ++ print "Not working FFMPEG support... disabled" ++ return ++ ++ + # Checks for pkg-config on Linux + def CheckForPKGConfig( context, version='0.0.0' ): + context.Message( "Checking for pkg-config (at least version %s)... " % version ) +@@ -99,6 +150,22 @@ + result.append(el) + return result + ++def getFlags(env, argflag, default=0): ++ """ ++ * get value passed as an argument to scons as argflag=value ++ * if no value is passed to scons use stored value ++ * if no value is stored, use default ++ Returns the value and stores it in env[argflag] ++ """ ++ flags = ARGUMENTS.get(argflag, -1) ++ if int(flags) < 0: ++ if env.has_key(argflag): ++ flags = env[argflag] ++ else: #default value ++ flags = default ++ env[argflag] = flags ++ return flags ++1 + ###### MAIN LINE ###### + ####################### + #Get the platform/OS that we're building on: +@@ -115,7 +182,6 @@ + print 'Platform: Unknown (assuming Linux-like)' + platform = 'linux' + +- + #Figure out what the QT path is + if platform == 'linux': + default_qtdir = '/usr/share/qt4' +@@ -146,7 +212,55 @@ + env = Environment(tools=['default','qt4', 'msvs'], toolpath=['../', './'], QTDIR=flags_qtdir, QT_LIB='', VCINSTALLDIR = os.getenv('VCInstallDir'), ENV = os.environ) + # env.Append(LIBPATH = (flags_qtdir + "/plugins/iconengines")) + +-#env.Append(CPPPATH='.') ++## Global cache directory ++## Put all project files in it so a rm -rf cache will clean up the config ++if not env.has_key('CACHEDIR'): ++ env['CACHEDIR'] =os.getcwd()+ '/../../cache/' ++if not os.path.isdir(env['CACHEDIR']): ++ os.mkdir(env['CACHEDIR']) ++ ++## Avoid spreading .sconsign files everywhere - keep this line ++env.SConsignFile(env['CACHEDIR']+'/scons_signatures') ++ ++#Hijack scons -h and --help ++cachefile = env['CACHEDIR'] + 'custom.py' ++opts = Options(cachefile) ++opts.Add('prefix', 'Set to your install prefix', '/usr/local') ++opts.Add('qtdir', 'Set to your QT4 directory', '/usr/share/qt4') ++opts.Add('djconsole', 'Set to 1 to enable Hercules support through libdjconsole', 0) ++opts.Add('djconsole_legacy', 'Set to 1 to enable legacy Hercules support (for Hercules MP3 Control only, not MK2', 0) ++opts.Add('hifieq', 'Set to 1 to enable high quality EQs', 1) ++opts.Add('ladspa', '(EXPERIMENTAL) Set to 1 to enable LADSPA plugin support', 0) ++opts.Add('ffmpeg', '(EXPERIMENTAL) Set to 1 to enable FFMPEG support', 0) ++opts.Add('vinylcontrol', 'Set to 1 to enable vinyl control support', 1) ++opts.Add('shoutcast', 'Set to 1 to enable shoutcast support', 0) ++opts.Add('msvshacks', 'Set to 1 to build properly with MS Visual Studio 2005 (Express users should leave this off)', 0) ++opts.Add('cmetrics', 'Set to 1 to enable crash reporting/usage statistics via Case Metrics (This should be disabled on development builds)', 0) ++opts.Add('optimize', 'Set to 1 to enable -O3 compiler optimizations. Set to 2 to enable Pentium 4 optimizations.', 1) ++if not platform == 'win32': ++ opts.Add('gprof', '(DEVELOPER) Set to 1 to enable profiling using gprof', 0) ++ opts.Add('tuned', '(EXPERIMENTAL) Set to 1 to optimise mixxx for this CPU', 0) ++#env = Environment(options = opts) ++opts.Update(env) ++Help(opts.GenerateHelpText(env)) ++ ++# user-defined CXXFLAGS ++if os.environ.has_key('CXXFLAGS'): ++ env.Append(CXXFLAGS = SCons.Util.CLVar( os.environ['CXXFLAGS'] )) ++if os.environ.has_key('CXX'): ++ env['CXX'] = os.environ['CXX'] ++ ++### embed SVN version into build ++build_rev = getSVNRevision() ++### Old way - causes everything to be rebuilt each time the SVN ver moves. :( ++#if build_rev != '': ++# env.Append(CXXFLAGS = '-DBUILD_REV=\\"' + build_rev + '\\"') ++### Put version info into a file, so it doesn't force a rebuild of everything :) ++f = open("../.mixxx_version.svn","w") ++try: ++ f.write('#define BUILD_REV "' + build_rev + '"\n') ++finally: ++ f.close() + + #Mixxx sources to build + sources = Split("""enginebuffercue.cpp input.cpp mixxxmenuplaylists.cpp trackplaylistlist.cpp mixxxkeyboard.cpp configobject.cpp controlobjectthread.cpp +@@ -226,6 +340,9 @@ + + #Check for OpenGL (it's messy to do it for all three platforms) + CheckOpenGL() ++ ++ #Check if FFMPEG was enabled ++ CheckFFMPEG(conf, sources) + + #Platform-specific checks for Linux and Win32... + if platform == 'linux' or platform == 'win32': +@@ -247,7 +364,7 @@ + if os.system("which g++ > /dev/null"): #Checks for non-zero return code + print "Did not find gcc/g++, exiting!" + Exit(1) +- ++ + #Check for pkg-config + if not conf.CheckForPKGConfig('0.15.0'): + print 'pkg-config >= 0.15.0 not found.' +@@ -272,8 +389,8 @@ + Exit(1) + + #Check for libdjconsole, if it was passed as a flag +- flags_djconsole = ARGUMENTS.get('djconsole', 0) +- flags_djconsole_legacy = ARGUMENTS.get('djconsole_legacy', 0) ++ flags_djconsole = getFlags(env, 'djconsole', 0) ++ flags_djconsole_legacy = getFlags(env, 'djconsole_legacy', 0) + if int(flags_djconsole): + if not conf.CheckLibWithHeader('djconsole', 'libdjconsole/djconsole.h', 'C++'): + print "Did not find libdjconsole or it\'s development headers, exiting!" +@@ -401,6 +518,7 @@ + env.Uic4('dlgbpmschemedlg.ui') + env.Uic4('dlgbpmtapdlg.ui') + env.Uic4('dlgprefvinyldlg.ui') ++env.Uic4('dlgprefrecorddlg.ui') + env.Uic4('dlgaboutdlg.ui') + + #Add the QRC file which compiles in some extra resources (prefs icons, etc.) +@@ -456,7 +574,7 @@ + + + #Parse command-line build flags +- ++build_flags = "" + + print "\nFeatures Summary:\n================" + +@@ -478,32 +596,24 @@ + #Hercules support through libdjconsole on Linux + #(handled somewhere else above this in the file... + # just printing the summary here) +-flags_djconsole = ARGUMENTS.get('djconsole', 0) ++flags_djconsole = getFlags(env, 'djconsole', 0) + if int(flags_djconsole) == 0: + print "libdjconsole support... disabled" + else: + print "libdjconsole support... enabled" ++ build_flags += 'djconsole ' + + #High quality EQs +-flags_hifieq = ARGUMENTS.get('hifieq', 1) ++flags_hifieq = getFlags(env, 'hifieq', 1) + if int(flags_hifieq) == 0: + env.Append(CXXFLAGS = '-D__LOFI__ -D__NO_INTTYPES__') #Enables old crappy EQs + print "High quality EQs... disabled" + else: + print "High quality EQs... enabled" +- +-#Experimental Recording +-flags_experimentalrecording = ARGUMENTS.get('experimentalrecord', 0) +-if int(flags_experimentalrecording): +- env.Append(CXXFLAGS = '-D__EXPERIMENTAL_RECORDING__') +- env.Uic4('dlgprefrecorddlg.ui') +- sources += Split(""" dlgprefrecord.cpp enginerecord.cpp writeaudiofile.cpp """ ) +- print "Experimental recording... enabled" +-else: +- print "Experimental recording... disabled" ++ build_flags += 'hifieq ' + + #Case Metrics +-flags_cmetrics = ARGUMENTS.get('cmetrics', 0) ++flags_cmetrics = getFlags(env, 'cmetrics', 0) + if int(flags_cmetrics): + env.Append(CXXFLAGS = '-D__C_METRICS__') + if platform == 'win32': +@@ -515,11 +625,12 @@ + env.Append(CPPPATH='../../lib/cmetrics') + sources += SConscript('../../lib/cmetrics/SConscript') + print "Case Metrics profiling... enabled" ++ build_flags += 'cmetrics ' + else: + print "Case Metrics profiling... disabled" + + #Experimental Shoutcast +-flags_shoutcast = ARGUMENTS.get('shoutcast', 0) ++flags_shoutcast = getFlags(env, 'shoutcast', 0) + if int(flags_shoutcast): + #TODO: check for libshout + env.Append(LIBS = 'shout'); +@@ -528,21 +639,23 @@ + sources += Split(""" dlgprefshoutcast.cpp engineshoutcast.cpp encodervorbis.cpp """ ) + env.Uic4('dlgprefshoutcastdlg.ui') + print "Shoutcast support... enabled" ++ build_flags += 'shoutcast ' + else: + print "Shoutcast support... disabled" + + #LADSPA + #TODO: Make sure we check for ladspa.h and the library... +-flags_ladspa = ARGUMENTS.get('ladspa', 0) ++flags_ladspa = getFlags(env, 'ladspa', 0) + if int(flags_ladspa): + env.Append(CXXFLAGS = '-D__LADSPA__') + sources += Split("""engineladspa.cpp ladspaloader.cpp ladspalibrary.cpp ladspaplugin.cpp ladspainstance.cpp ladspacontrol.cpp ladspainstancestereo.cpp ladspainstancemono.cpp ladspaview.cpp ladspapreset.cpp ladspapresetmanager.cpp ladspapresetknob.cpp ladspapresetinstance.cpp dlgladspa.cpp""") + print "LADSPA support... enabled" ++ build_flags += 'ladspa ' + else: + print "LADSPA support... disabled" + + #Vinyl Control +-flags_vinylcontrol = ARGUMENTS.get('vinylcontrol', 1) ++flags_vinylcontrol = getFlags(env, 'vinylcontrol', 1) + if int(flags_vinylcontrol): + env.Append(CXXFLAGS = '-D__VINYLCONTROL__') + sources += Split(""" vinylcontrol.cpp vinylcontrolproxy.cpp vinylcontrolscratchlib.cpp vinylcontrolxwax.cpp dlgprefvinyl.cpp +@@ -555,24 +668,27 @@ + env.Append(CPPPATH='../../lib/scratchlib') + sources += Split("""../../lib/scratchlib/DAnalyse.cpp """) + print "Vinyl Control... enabled" ++ build_flags += 'vinylcontrol ' + else: + print "Vinyl Control... disabled" + +-flags_msvcdebug = ARGUMENTS.get('msvcdebug', 1) ++flags_msvcdebug = getFlags(env, 'msvcdebug', 1) + if int(flags_msvcdebug) and platform == 'win32': + env.Append(LINKFLAGS = '/DEBUG') + env.Append(CXXFLAGS = '/ZI') + print "MSVC Debugging... enabled" ++ build_flags += 'msvcdebug ' + else: + print "MSVC Debugging... disabled" + +-flags_script = ARGUMENTS.get('script', 0) ++flags_script = getFlags(env, 'script', 0) + if int(flags_script): + if platform == 'win32': + env.Append(LIBS = 'QtScript4') + else: + env.Append(LIBS = 'QtScript') + print "SuperCoolAwesomeScript (name contest pending)... enabled" ++ build_flags += 'script ' + sources += Split("""script/scriptengine.cpp script/scriptcontrolqueue.cpp + script/scriptstudio.cpp script/scriptrecorder.cpp + script/playinterface.cpp script/macro.cpp +@@ -591,9 +707,9 @@ + + #Optimization + if platform == 'win32': +- flags_optimize = ARGUMENTS.get('optimize', 0) #Default to off on win32 ++ flags_optimize = getFlags(env, 'optimize', 0) #Default to off on win32 + else: +- flags_optimize = ARGUMENTS.get('optimize', 1) #Default to on for Linux/OS X ++ flags_optimize = getFlags(env, 'optimize', 1) #Default to on for Linux/OS X + if int(flags_optimize): + if platform == 'win32': + if int(flags_msvcdebug): +@@ -604,6 +720,7 @@ + env.Append(LINKFLAGS = '/LTCG:STATUS') + else: + print "Optimizations... enabled" ++ build_flags += 'optimize=' + str(flags_optimize) + ' ' + if flags_optimize=='1': + env.Append(CXXFLAGS = '-O3') + elif flags_optimize=='2': +@@ -619,80 +736,52 @@ + print "Optimizations... disabled" + + +-#ffmpeg support +-flags_ffmpeg = ARGUMENTS.get('ffmpeg', 0) +-if int(flags_ffmpeg): +- env.Append(LIBS = 'avcodec') +- env.Append(LIBS = 'avformat') +- env.Append(LIBS = 'z') +- env.Append(LIBS = 'a52') +- env.Append(LIBS = 'dts') +- env.Append(LIBS = 'gsm') +- env.Append(LIBS = 'dc1394_control') +- env.Append(LIBS = 'dl') +- env.Append(LIBS = 'vorbisenc') +- env.Append(LIBS = 'raw1394') +- env.Append(LIBS = 'avutil') +- env.Append(LIBS = 'vorbis') +- env.Append(LIBS = 'm') +- env.Append(LIBS = 'ogg') +- env.Append(CXXFLAGS = '-D__FFMPEGFILE__') +- sources += Split("""soundsourceffmpeg.cpp """) +- print "Not working FFMPEG support... enabled" +-else: +- print "Not working FFMPEG support... disabled" ++ + + # Profiling and Optimization + if not platform == 'win32': +- flags_gprof = ARGUMENTS.get('gprof', 0) ++ flags_gprof = getFlags(env, 'gprof', 0) + if int(flags_gprof): + env.Append(CCFLAGS = '-pg') + env.Append(LINKFLAGS = '-pg') + print "gprof profiling support... enabled" ++ build_flags += 'gprof ' + else: + print "gprof profiling support... disabled" +- flags_tuned = ARGUMENTS.get('tuned', 0) ++ flags_tuned = getFlags(env, 'tuned', 0) + if int(flags_tuned): + ccv = env['CCVERSION'].split('.') + if int(ccv[0]) >= 4 and int(ccv[1]) >= 2: + env.Append(CCFLAGS = '-march=native') + env.Append(LINKFLAGS = '-march=native') + print "Optimizing for this CPU... yes" ++ build_flags += 'tuned ' + else: + print "Optimizing for this CPU... no (requires gcc >= 4.2.0)" + else: + print "Optimizing for this CPU... no" + + #Visual Studio 2005 hacks (MSVS Express Edition users shouldn't enable this) +-flags_msvshacks = ARGUMENTS.get('msvshacks', 0) ++flags_msvshacks = getFlags(env, 'msvshacks', 0) + if int(flags_msvshacks): + env.Append(CXXFLAGS = '-D__MSVS2005__') + print "MSVS 2005 hacks... enabled" ++ build_flags += 'msvshacks ' + else: + print "MSVS 2005 hacks... disabled" + + print "================\n" + +-#Hijack scons -h and --help +-opts = Options('custom.py') +-opts.Add('prefix', 'Set to your install prefix', '/usr/local') +-opts.Add('qtdir', 'Set to your QT4 directory', '/usr/share/qt4') +-opts.Add('djconsole', 'Set to 1 to enable Hercules support through libdjconsole', 0) +-opts.Add('djconsole_legacy', 'Set to 1 to enable legacy Hercules support (for Hercules MP3 Control only, not MK2', 0) +-opts.Add('experimentalrecord', '(EXPERIMENTAL) Set to 1 to enable output recording feature', 0) +-opts.Add('hifieq', 'Set to 1 to enable high quality EQs', 1) +-opts.Add('ladspa', '(EXPERIMENTAL) Set to 1 to enable LADSPA plugin support', 0) +-opts.Add('ffmpeg', '(EXPERIMENTAL) Set to 1 to enable FFMPEG support', 0) +-opts.Add('vinylcontrol', 'Set to 1 to enable vinyl control support', 1) +-opts.Add('msvshacks', 'Set to 1 to build properly with MS Visual Studio 2005 (Express users should leave this off)', 0) +-opts.Add('cmetrics', 'Set to 1 to enable crash reporting/usage statistics via Case Metrics (This should be disabled on development builds)', 0) +-opts.Add('optimize', 'Set to 1 to enable -O3 compiler optimizations. Set to 2 to enable Pentium 4 optimizations.', 1) +-if not platform == 'win32': +- opts.Add('gprof', '(DEVELOPER) Set to 1 to enable profiling using gprof', 0) +- opts.Add('tuned', '(EXPERIMENTAL) Set to 1 to optimise mixxx for this CPU', 0) +-#env = Environment(options = opts) +-Help(opts.GenerateHelpText(env)) ++### Put flags info into a file ++f = open("../.mixxx_flags.svn","w") ++try: ++ f.write('#define BUILD_FLAGS "' + build_flags + '"\n') ++finally: ++ f.close() ++ + ++#Save the options to cache ++opts.Save(cachefile, env) + + #Tell SCons to build Mixxx + #========================= diff --git a/media-sound/mixxx/mixxx-1.6.0_beta2.ebuild b/media-sound/mixxx/mixxx-1.6.0_beta2.ebuild new file mode 100644 index 000000000000..764d257a5647 --- /dev/null +++ b/media-sound/mixxx/mixxx-1.6.0_beta2.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mixxx/mixxx-1.6.0_beta2.ebuild,v 1.1 2008/05/20 23:54:27 drac Exp $ + +EAPI=1 + +inherit eutils toolchain-funcs + +MY_P=${P/_/-} + +DESCRIPTION="a QT based Digital DJ tool" +HOMEPAGE="http://mixxx.sourceforge.net" +SRC_URI="mirror://sourceforge/mixxx/${MY_P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="debug djconsole hifieq ladspa recording shout +vinylcontrol" + +# TODO. It bundles libs, like samplerate, why? +RDEPEND="media-libs/mesa + media-libs/libmad + media-libs/libid3tag + media-libs/libvorbis + media-libs/libsndfile + >=media-libs/portaudio-19_pre + djconsole? ( media-libs/libdjconsole ) + shout? ( media-libs/libshout ) + ladspa? ( media-libs/ladspa-sdk ) + media-libs/mesa + virtual/glu + || ( ( x11-libs/qt-core + x11-libs/qt-gui + x11-libs/qt-opengl ) + >=x11-libs/qt-4.3:4 )" +DEPEND="${RDEPEND} + dev-util/scons + dev-util/pkgconfig" + +S=${WORKDIR}/${P/_} + +pkg_setup() { + if ! has_version x11-libs/qt-opengl && ! built_with_use -a =x11-libs/qt-4* opengl qt3support; then + die "Re-emerge x11-libs/qt with USE flag opengl and qt3support." + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + # http://dev.gentoo.org/~vapier/scons-blows.txt + epatch "${FILESDIR}"/${P}-toolchain_and_write.patch + # and more.. + sed -i -e "s:-O3::g" lib/cmetrics/SConscript || die "sed failed." +} + +src_compile() { + local myconf="optimize=0 ffmpeg=0 script=0 prefix=/usr" + + use djconsole && myconf+=" djconsole=1" || myconf+=" djconsole=0" + use hifieq && myconf+=" hifieq=1" || myconf+=" hifieq=0" + use debug && myconf+=" cmetrics=1" || myconf+=" cmetrics=0" + use shout && myconf+=" shoutcast=1" || myconf+=" shoutcast=0" + use ladspa && myconf+=" ladspa=1" || myconf+=" ladspa=0" + use recording && myconf+=" experimentalrecord=1" || myconf+=" experimentalrecord=0" + use vinylcontrol && myconf+=" vinylcontrol=1" || myconf+=" vinylcontrol=0" + + tc-export CXX + $(type -P scons) ${myconf} -c . || die "scons -c . failed." + $(type -P scons) ${myconf} || die "scons failed." +} + +src_install() { + dobin mixxx || die "dobin failed." + + insinto /usr/share/mixxx + doins -r src/{skins,midi,keyboard} || die "doins failed." + + doicon src/mixxx-icon.png + domenu src/mixxx.desktop + + dodoc HERCULES.txt README* + + insinto /usr/share/doc/${PF} + doins Mixxx-Manual.pdf +} |