Lines 1-23
Link Here
|
1 |
--- SConstruct.orig 2012-07-18 12:25:59.000000000 +0800 |
1 |
--- SConstruct.orig 2014-11-14 09:17:48.000000000 -0500 |
2 |
+++ SConstruct 2013-09-14 14:44:54.603035259 +0800 |
2 |
+++ SConstruct 2015-04-01 16:11:27.540297600 -0400 |
3 |
@@ -176,10 +176,12 @@ |
3 |
@@ -215,10 +215,11 @@ def CreateEnvironment(): |
4 |
|
4 |
make = 'gmake' |
5 |
libln_builder = Builder(action='ln -s ${SOURCE.name} ${TARGET.name}', |
5 |
tar = 'gtar' |
6 |
chdir=True) |
6 |
libln_builder = Builder(action='cd ${TARGET.dir} && ln -s ${SOURCE.name} ${TARGET.name}') |
7 |
- env = Environment(ENV=os.environ, CFLAGS=cflags, CXXFLAGS=cflags, |
7 |
- env = Environment(ENV=os.environ, CFLAGS=cflags, CXXFLAGS='', |
8 |
- TAR=tar, MAKE=make, WGET=wget, |
8 |
+ env = Environment(ENV=os.environ, |
|
|
9 |
MAKE=make, WGET=wget, W3M=w3m, TAR=tar, |
9 |
- CPPPATH=['.'] + allinc(), |
10 |
- CPPPATH=['.'] + allinc(), |
10 |
- tools=['default', 'textfile']) |
11 |
- tools=['default', 'textfile']) |
11 |
+ env = Environment(tools=['default', 'textfile'], **ARGUMENTS) |
12 |
+ tools=['default', 'textfile'], |
12 |
+ env['ENV'] = os.environ |
13 |
+ **ARGUMENTS) |
13 |
+ env['TAR'] = tar |
|
|
14 |
+ env['MAKE'] = make |
15 |
+ env['CPPPATH'] = ['.'] + allinc() |
14 |
+ env['CPPPATH'] = ['.'] + allinc() |
16 |
+ |
|
|
17 |
env.Append(BUILDERS={'InstallAsSymlink': libln_builder}) |
15 |
env.Append(BUILDERS={'InstallAsSymlink': libln_builder}) |
|
|
16 |
env['ENDIANNESS'] = "be" if sys.byteorder == "big" else "le" |
18 |
return env |
17 |
return env |
19 |
|
18 |
@@ -375,7 +376,6 @@ def DoConfigure(): |
20 |
@@ -324,7 +326,6 @@ |
|
|
21 |
conf.CheckFunc('getopt_long') |
19 |
conf.CheckFunc('getopt_long') |
22 |
conf.CheckFunc('getpagesize') |
20 |
conf.CheckFunc('getpagesize') |
23 |
conf.CheckFunc('get_opt') |
21 |
conf.CheckFunc('get_opt') |
Lines 25-31
Link Here
|
25 |
conf.CheckCHeader('inttypes.h') |
23 |
conf.CheckCHeader('inttypes.h') |
26 |
conf.CheckCHeader('locale.h') |
24 |
conf.CheckCHeader('locale.h') |
27 |
conf.CheckCHeader('libintl.h') |
25 |
conf.CheckCHeader('libintl.h') |
28 |
@@ -420,7 +421,7 @@ |
26 |
@@ -463,7 +463,7 @@ def DoInstall(): |
29 |
lib_target_bin), |
27 |
lib_target_bin), |
30 |
] |
28 |
] |
31 |
|
29 |
|
Lines 32-36
Link Here
|
32 |
- lib_pkgconfig_target = env.Install(os.path.join(libdir, 'pkgconfig'), |
30 |
- lib_pkgconfig_target = env.Install(os.path.join(libdir, 'pkgconfig'), |
33 |
+ lib_pkgconfig_target = env.Install(os.path.join(env['PREFIX'], 'libdata/pkgconfig'), |
31 |
+ lib_pkgconfig_target = env.Install(os.path.join(env['PREFIX'], 'libdata/pkgconfig'), |
34 |
['sunpinyin-2.0.pc']) |
32 |
['sunpinyin-2.0.pc']) |
35 |
libdata_target = env.Install(libdatadir, |
33 |
bin_target = env.Install(bindir, bins) |
36 |
['data/lm_sc.t3g', |
34 |
man1_target = env.Install(man1dir, man1s) |