1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

Fixed a build issue for 8.x

This commit is contained in:
Daichi GOTO 2012-01-30 06:48:45 +00:00
parent 0d5898294b
commit 47cbd52e1d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290101
3 changed files with 27 additions and 1 deletions

View File

@ -73,7 +73,6 @@ BUILD_CMD= ${SETENV} ${MAKE_ENV} ${GMAKE}
BUILD_MOZC_CMD= cd ${BUILD_WRKSRC} && \
${SETENV} BUILD_COMMAND="${WRKSRC}/mozcmake" \
PYTHONPATH=${WRKSRC}/third_party/gyp/local/lib/python${PYTHON_VER}/site-packages \
FLOCK= \
${PYTHON_CMD} build_mozc.py
BUILD_GYP_CMD= cd ${WRKSRC}/third_party/gyp && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP}

View File

@ -0,0 +1,15 @@
--- third_party/gyp/pylib/gyp/common.py.orig 2012-01-29 13:42:31.158806631 +0900
+++ third_party/gyp/pylib/gyp/common.py 2012-01-30 15:35:06.300889252 +0900
@@ -351,8 +351,10 @@
flavors = {
'darwin': 'mac',
'sunos5': 'solaris',
- 'freebsd7': 'freebsd',
- 'freebsd8': 'freebsd',
+ 'freebsd7': 'linux',
+ 'freebsd8': 'linux',
+ 'freebsd9': 'linux',
+ 'freebsd10': 'linux',
}
flavor = flavors.get(sys.platform, 'linux')
return params.get('flavor', flavor)

View File

@ -0,0 +1,12 @@
--- third_party/gyp/pylib/gyp/generator/make.py.orig 2012-01-29 13:42:31.157805247 +0900
+++ third_party/gyp/pylib/gyp/generator/make.py 2012-01-30 15:37:51.791889791 +0900
@@ -1998,6 +1998,9 @@
srcdir_prefix = '$(srcdir)/'
flock_command= 'flock'
+ if os.uname()[0] == 'FreeBSD':
+ flock_command= 'lockf'
+
header_params = {
'default_target': default_target,
'builddir': builddir_name,