summaryrefslogtreecommitdiff
path: root/extra/boost/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/boost/PKGBUILD')
-rw-r--r--extra/boost/PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/extra/boost/PKGBUILD b/extra/boost/PKGBUILD
index 29494d00d..29255aec2 100644
--- a/extra/boost/PKGBUILD
+++ b/extra/boost/PKGBUILD
@@ -12,7 +12,7 @@ pkgver=1.55.0
_boostver=${pkgver//./_}
pkgrel=4
url="http://www.boost.org/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('custom')
makedepends=('icu>=52.1' 'python' 'python2' 'bzip2' 'zlib' 'openmpi')
source=(http://downloads.sourceforge.net/${pkgbase}/${pkgbase}_${_boostver}.tar.gz
@@ -42,6 +42,7 @@ build() {
_bindir="bin.linuxx86"
[[ "${CARCH}" = "x86_64" ]] && _bindir="bin.linuxx86_64"
+ [[ "${CARCH}" = "mips64el" ]] && _bindir="bin.linuxmips"
install -dm755 "${_stagedir}"/bin
install tools/build/v2/engine/${_bindir}/b2 "${_stagedir}"/bin/b2
@@ -58,6 +59,9 @@ build() {
install -dm755 "${_stagedir}"/share/boostbook
cp -a tools/boostbook/{xsl,dtd} "${_stagedir}"/share/boostbook/
+ # Disable context on mips64el, it needs N32-specific assembly.
+ [ "$CARCH" = "mips64el" ] && extra="--without-context --without-coroutine"
+
# default "minimal" install: "release link=shared,static
# runtime-link=shared threading=single,multi"
# --layout=tagged will add the "-mt" suffix for multithreaded libraries
@@ -75,6 +79,7 @@ build() {
cflags="${CPPFLAGS} ${CFLAGS} -O3" linkflags="${LDFLAGS}" \
--layout=system \
--prefix="${_stagedir}" \
+ $extra \
${JOBS} \
install
}