mongodb: respect cflags and compiler.
This commit is contained in:
parent
74e2bc041f
commit
32b5a42994
1 changed files with 12 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'mongodb'
|
||||
pkgname=mongodb
|
||||
version=3.2.0
|
||||
revision=2
|
||||
revision=3
|
||||
hostmakedepends="scons"
|
||||
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel
|
||||
gperftools-devel libsasl-devel yaml-cpp-devel valgrind-devel"
|
||||
|
@ -29,7 +29,7 @@ _scons_args=" --use-system-boost \
|
|||
--nostrip \
|
||||
--disable-warnings-as-errors"
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*) _scons_args+=" --wiredtiger=off";;
|
||||
i686*) _scons_args+=" --wiredtiger=off --storageEngine=mmapv1";;
|
||||
esac
|
||||
# ETOOHUGE
|
||||
nodebug=1
|
||||
|
@ -49,15 +49,21 @@ post_configure() {
|
|||
}
|
||||
|
||||
do_build() {
|
||||
scons core ${makejobs} \
|
||||
scons core tools ${makejobs} \
|
||||
CC=$CC \
|
||||
CFLAGS="$CFLAGS" \
|
||||
CXX=$CXX \
|
||||
CXXFLAGS="$CXXFLAGS" \
|
||||
LIBPATH="${XBPS_CROSS_BASE}/usr/lib" \
|
||||
CPPPATH="${XBPS_CROSS_BASE}/usr/include" \
|
||||
--prefix="/usr" \
|
||||
$_scons_args
|
||||
}
|
||||
|
||||
do_install() {
|
||||
scons install \
|
||||
--prefix="${DESTDIR}/usr" \
|
||||
$_scons_args
|
||||
for b in mongos mongod mongosniff mongo mongoperf; do
|
||||
vbin $b
|
||||
done
|
||||
|
||||
vinstall ${FILESDIR}/mongodb.conf 644 etc/mongodb
|
||||
|
||||
|
|
Loading…
Reference in a new issue