Lines 1-113
Link Here
|
1 |
--- build/depends.py.orig 2013-05-08 23:20:26 UTC |
1 |
--- build/depends.py.orig 2017-01-04 12:00:54.099408000 -0700 |
2 |
+++ build/depends.py |
2 |
+++ build/depends.py 2017-01-04 14:20:53.368874000 -0700 |
3 |
@@ -150,7 +150,7 @@ class FLAC(Dependence): |
3 |
@@ -262,7 +262,7 @@ |
4 |
|
|
|
5 |
class Qt(Dependence): |
6 |
DEFAULT_QTDIRS = {'linux': '/usr/share/qt4', |
7 |
- 'bsd': '/usr/local/lib/qt4', |
8 |
+ 'bsd': '%%LOCALBASE%%/lib/qt4', |
9 |
'osx': '/Library/Frameworks', |
10 |
'windows': 'C:\\qt\\4.6.0'} |
11 |
|
12 |
@@ -219,6 +219,7 @@ class Qt(Dependence): |
13 |
build.env.Append(LIBS = 'QtOpenGL') |
14 |
build.env.Append(LIBS = 'QtXml') |
15 |
build.env.Append(LIBS = 'QtNetwork') |
16 |
+ build.env.Append(LIBS = 'QtSql') |
17 |
build.env.Append(LIBS = 'QtScript') |
18 |
if use_qtwebkit: |
19 |
build.env.Append(LIBS = 'QtWebKit') |
20 |
@@ -264,16 +265,16 @@ class Qt(Dependence): |
21 |
|
4 |
|
22 |
# Set Qt include paths for non-OSX |
5 |
elif build.platform_is_bsd: |
23 |
if not build.platform_is_osx: |
6 |
build.env.Append(LIBS=qt_modules) |
24 |
- include_paths = ['$QTDIR/include/QtCore', |
7 |
- include_paths = ['$QTDIR/include/%s' % module |
25 |
- '$QTDIR/include/QtGui', |
8 |
+ include_paths = ['%%LOCALBASE%%/include/qt4/%s' % module |
26 |
- '$QTDIR/include/QtOpenGL', |
9 |
for module in qt_modules] |
27 |
- '$QTDIR/include/QtXml', |
|
|
28 |
- '$QTDIR/include/QtNetwork', |
29 |
- '$QTDIR/include/QtSql', |
30 |
- '$QTDIR/include/QtScript', |
31 |
- '$QTDIR/include/Qt'] |
32 |
+ include_paths = ['$QTDIR/include/qt4/QtCore', |
33 |
+ '$QTDIR/include/qt4/QtGui', |
34 |
+ '$QTDIR/include/qt4/QtOpenGL', |
35 |
+ '$QTDIR/include/qt4/QtXml', |
36 |
+ '$QTDIR/include/qt4/QtNetwork', |
37 |
+ '$QTDIR/include/qt4/QtSql', |
38 |
+ '$QTDIR/include/qt4/QtScript', |
39 |
+ '$QTDIR/include/qt4/Qt'] |
40 |
if use_qtwebkit: |
41 |
- include_paths.append('$QTDIR/include/QtWebKit') |
42 |
+ include_paths.append('$QTDIR/include/qt4/QtWebKit') |
43 |
build.env.Append(CPPPATH=include_paths) |
10 |
build.env.Append(CPPPATH=include_paths) |
|
|
11 |
elif build.platform_is_osx: |
12 |
@@ -358,7 +358,7 @@ |
13 |
if not build.platform_is_windows and not (using_104_sdk or compiling_on_104): |
14 |
qtdir = build.env['QTDIR'] |
15 |
framework_path = Qt.find_framework_libdir(qtdir, qt5) |
16 |
- if os.path.isdir(framework_path): |
17 |
+ if framework_path and os.path.isdir(framework_path): |
18 |
build.env.Append(LINKFLAGS="-Wl,-rpath," + framework_path) |
19 |
build.env.Append(LINKFLAGS="-L" + framework_path) |
44 |
|
20 |
|
45 |
# Set the rpath for linux/bsd/osx. |
21 |
@@ -1045,12 +1045,11 @@ |
46 |
@@ -387,7 +388,7 @@ class TagLib(Dependence): |
|
|
47 |
# the files correctly. Adding this folder ot the include path should fix |
48 |
# it, though might cause issues. This is safe to remove once we |
49 |
# deprecate Karmic support. rryan 2/2011 |
50 |
- build.env.Append(CPPPATH='/usr/include/taglib/') |
51 |
+ build.env.Append(CPPPATH='%%LOCALBASE%%/include/taglib/') |
52 |
|
22 |
|
53 |
if build.platform_is_windows and build.static_dependencies: |
|
|
54 |
build.env.Append(CPPDEFINES = 'TAGLIB_STATIC') |
55 |
@@ -782,14 +783,9 @@ class MixxxCore(Feature): |
56 |
if build.toolchain_is_gnu: |
23 |
if build.toolchain_is_gnu: |
57 |
# Default GNU Options |
24 |
# Default GNU Options |
58 |
# TODO(XXX) always generate debugging info? |
25 |
- build.env.Append(CCFLAGS='-pipe') |
59 |
- build.env.Append(CCFLAGS = '-pipe') |
26 |
build.env.Append(CCFLAGS='-Wall') |
60 |
build.env.Append(CCFLAGS = '-Wall') |
27 |
build.env.Append(CCFLAGS='-Wextra') |
61 |
build.env.Append(CCFLAGS = '-Wextra') |
|
|
62 |
- build.env.Append(CCFLAGS = '-g') |
63 |
|
28 |
|
64 |
- # Check that g++ is present (yeah, SCONS is a bit dumb here) |
29 |
# Always generate debugging info. |
65 |
- if os.system("which g++ > /dev/null"): #Checks for non-zero return code |
30 |
build.env.Append(CCFLAGS='-g') |
66 |
- raise Exception("Did not find g++.") |
|
|
67 |
elif build.toolchain_is_msvs: |
31 |
elif build.toolchain_is_msvs: |
68 |
# Validate the specified winlib directory exists |
32 |
# Validate the specified winlib directory exists |
69 |
mixxx_lib_path = SCons.ARGUMENTS.get('winlib', '..\\..\\..\\mixxx-win32lib-msvc100-release') |
33 |
mixxx_lib_path = SCons.ARGUMENTS.get( |
70 |
@@ -851,16 +847,19 @@ class MixxxCore(Feature): |
34 |
@@ -1146,11 +1142,13 @@ |
71 |
|
35 |
|
72 |
elif build.platform_is_bsd: |
36 |
elif build.platform_is_bsd: |
73 |
build.env.Append(CPPDEFINES='__BSD__') |
37 |
build.env.Append(CPPDEFINES='__BSD__') |
74 |
- build.env.Append(CPPPATH=['/usr/include', |
38 |
- build.env.Append(CPPPATH=['/usr/include', |
75 |
- '/usr/local/include', |
39 |
- '/usr/local/include', |
76 |
- '/usr/X11R6/include/']) |
40 |
+ build.env.Append(CPPPATH=['%%LOCALBASE%%/include/portaudio2', |
|
|
41 |
+ '%%LOCALBASE%%/include/qt4', |
42 |
+ '%%LOCALBASE%%/include', |
43 |
'/usr/X11R6/include/']) |
77 |
- build.env.Append(LIBPATH=['/usr/lib/', |
44 |
- build.env.Append(LIBPATH=['/usr/lib/', |
78 |
- '/usr/local/lib', |
45 |
- '/usr/local/lib', |
79 |
- '/usr/X11R6/lib']) |
|
|
80 |
build.env.Append(LIBS='pthread') |
81 |
+ build.env.Append(CPPPATH=['%%LOCALBASE%%/include/portaudio2', |
82 |
+ '%%LOCALBASE%%/include/qt4', |
83 |
+ '%%LOCALBASE%%/include']) |
84 |
+ build.env.Append(LIBPATH=['%%LOCALBASE%%/lib/portaudio2', |
46 |
+ build.env.Append(LIBPATH=['%%LOCALBASE%%/lib/portaudio2', |
85 |
+ '%%LOCALBASE%%/lib/qt4', |
47 |
+ '%%LOCALBASE%%/lib/qt4', |
86 |
+ '%%LOCALBASE%%/lib']) |
48 |
+ '%%LOCALBASE%%/lib', |
87 |
+ build.env.Append(LINKFLAGS=['%%LOCALBASE%%/lib/libportaudio.so', |
49 |
'/usr/X11R6/lib']) |
88 |
+ '-Wl,-rpath,%%LOCALBASE%%/lib/qt4', |
50 |
build.env.Append(LIBS='pthread') |
89 |
+ '-Wl,-rpath,%%LOCALBASE%%/lib']) |
|
|
90 |
# why do we need to do this on OpenBSD and not on Linux? if we |
51 |
# why do we need to do this on OpenBSD and not on Linux? if we |
91 |
# don't then CheckLib("vorbisfile") fails |
52 |
@@ -1188,7 +1186,7 @@ |
92 |
- build.env.Append(LIBS=['ogg', 'vorbis']) |
|
|
93 |
+ # build.env.Append(LIBS=['ogg', 'vorbis']) |
94 |
|
95 |
# Define for things that would like to special case UNIX (Linux or BSD) |
96 |
if build.platform_is_bsd or build.platform_is_linux: |
97 |
@@ -897,14 +896,14 @@ class MixxxCore(Feature): |
98 |
# Say where to find resources on Unix. TODO(XXX) replace this with a |
53 |
# Say where to find resources on Unix. TODO(XXX) replace this with a |
99 |
# RESOURCE_PATH that covers Win and OSX too: |
54 |
# RESOURCE_PATH that covers Win and OSX too: |
100 |
if build.platform_is_linux or build.platform_is_bsd: |
55 |
if build.platform_is_linux or build.platform_is_bsd: |
101 |
- prefix = SCons.ARGUMENTS.get('prefix', '/usr/local') |
56 |
- prefix = SCons.ARGUMENTS.get('prefix', '/usr/local') |
102 |
+ prefix = SCons.ARGUMENTS.get('prefix', '%%PREFIX%%') |
57 |
+ prefix = SCons.ARGUMENTS.get('prefix', '%%PREFIX%%') |
103 |
share_path = os.path.join(prefix, 'share/mixxx') |
58 |
share_path = os.path.join (prefix, build.env.get( |
104 |
build.env.Append(CPPDEFINES=('UNIX_SHARE_PATH', r'\"%s\"' % share_path)) |
59 |
'SHAREDIR', default='share'), 'mixxx') |
105 |
lib_path = os.path.join(prefix, 'lib/mixxx') |
60 |
build.env.Append( |
106 |
build.env.Append(CPPDEFINES=('UNIX_LIB_PATH', r'\"%s\"' % lib_path)) |
61 |
@@ -1199,7 +1197,7 @@ |
|
|
62 |
CPPDEFINES=('UNIX_LIB_PATH', r'\"%s\"' % lib_path)) |
107 |
|
63 |
|
108 |
def depends(self, build): |
64 |
def depends(self, build): |
109 |
- return [SoundTouch, ReplayGain, PortAudio, PortMIDI, Qt, |
65 |
- return [SoundTouch, ReplayGain, PortAudio, PortMIDI, Qt, TestHeaders, |
110 |
+ return [SoundTouch, ReplayGain, PortAudio, Qt, |
66 |
+ return [SoundTouch, ReplayGain, PortAudio, Qt, TestHeaders, |
111 |
FidLib, SndFile, FLAC, OggVorbis, OpenGL, TagLib, ProtoBuf] |
67 |
FidLib, SndFile, FLAC, OggVorbis, OpenGL, TagLib, ProtoBuf, |
|
|
68 |
Chromaprint, RubberBand, SecurityFramework, CoreServices, FpClassify] |
112 |
|
69 |
|
113 |
def post_dependency_check_configure(self, build, conf): |
|
|