mongodb: respect cflags and compiler.

This commit is contained in:
Enno Boland 2016-01-13 10:38:07 +01:00
parent 74e2bc041f
commit 32b5a42994

View file

@ -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