aboutsummaryrefslogtreecommitdiff
path: root/japanese/mozc-tool/files/patch-build_mozc.py
blob: 95c9cb2626046d7ab8e87cd75ea839f1ce908b4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- build_mozc.py.org	2010-09-25 11:04:25.422333501 +0900
+++ build_mozc.py	2010-09-25 11:05:53.458336959 +0900
@@ -69,7 +69,7 @@
 
 def IsLinux():
   """Returns true if the platform is Linux."""
-  return os.name == 'posix' and os.uname()[0] == 'Linux'
+  return os.name == 'posix' and ( os.uname()[0] == 'Linux' or os.uname()[0] == 'FreeBSD' )
 
 
 # TODO(yukawa): Move this function to util.py (b/2715400)
@@ -578,6 +578,8 @@
 
   # default Qt dir to support the current build procedure for Debian.
   default_qtdir = '/usr/local/Trolltech/Qt-4.6.3'
+  if os.uname()[0] == 'FreeBSD':
+    default_qtdir = '@@LOCALBASE@@/lib/qt4'
   if IsWindows():
     default_qtdir = None
   parser.add_option('--qtdir', dest='qtdir',
@@ -629,6 +631,8 @@
     target_names.append(target_name)
 
   make_command = os.getenv('BUILD_COMMAND', 'make')
+  if os.uname()[0] == 'FreeBSD':
+    make_command = os.getenv('BUILD_COMMAND', 'gmake')
   # flags for building in Chrome OS chroot environment
   envvars = [
       'CFLAGS',