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'
|
# Template file for 'mongodb'
|
||||||
pkgname=mongodb
|
pkgname=mongodb
|
||||||
version=3.2.0
|
version=3.2.0
|
||||||
revision=2
|
revision=3
|
||||||
hostmakedepends="scons"
|
hostmakedepends="scons"
|
||||||
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel
|
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel
|
||||||
gperftools-devel libsasl-devel yaml-cpp-devel valgrind-devel"
|
gperftools-devel libsasl-devel yaml-cpp-devel valgrind-devel"
|
||||||
|
@ -29,7 +29,7 @@ _scons_args=" --use-system-boost \
|
||||||
--nostrip \
|
--nostrip \
|
||||||
--disable-warnings-as-errors"
|
--disable-warnings-as-errors"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*) _scons_args+=" --wiredtiger=off";;
|
i686*) _scons_args+=" --wiredtiger=off --storageEngine=mmapv1";;
|
||||||
esac
|
esac
|
||||||
# ETOOHUGE
|
# ETOOHUGE
|
||||||
nodebug=1
|
nodebug=1
|
||||||
|
@ -49,15 +49,21 @@ post_configure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
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" \
|
--prefix="/usr" \
|
||||||
$_scons_args
|
$_scons_args
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
scons install \
|
for b in mongos mongod mongosniff mongo mongoperf; do
|
||||||
--prefix="${DESTDIR}/usr" \
|
vbin $b
|
||||||
$_scons_args
|
done
|
||||||
|
|
||||||
vinstall ${FILESDIR}/mongodb.conf 644 etc/mongodb
|
vinstall ${FILESDIR}/mongodb.conf 644 etc/mongodb
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue