Lines 1-8
Link Here
|
1 |
# $FreeBSD: head/databases/mongodb40/Makefile 514327 2019-10-12 10:33:00Z pi $ |
1 |
# $FreeBSD: head/databases/mongodb40/Makefile 507372 2019-07-26 20:46:53Z gerald $ |
2 |
|
2 |
|
3 |
PORTNAME= mongodb |
3 |
PORTNAME= mongodb |
4 |
DISTVERSIONPREFIX= r |
4 |
DISTVERSIONPREFIX= r |
5 |
DISTVERSION= 4.0.12 |
5 |
DISTVERSION= 4.2.1 |
6 |
CATEGORIES= databases net |
6 |
CATEGORIES= databases net |
7 |
MASTER_SITES= https://fastdl.mongodb.org/src/ \ |
7 |
MASTER_SITES= https://fastdl.mongodb.org/src/ \ |
8 |
http://fastdl.mongodb.org/src/ \ |
8 |
http://fastdl.mongodb.org/src/ \ |
Lines 10-17
Link Here
|
10 |
PKGNAMESUFFIX= ${PORTVERSION:R:S/.//} |
10 |
PKGNAMESUFFIX= ${PORTVERSION:R:S/.//} |
11 |
DISTNAME= mongodb-src-${DISTVERSIONPREFIX}${DISTVERSION} |
11 |
DISTNAME= mongodb-src-${DISTVERSIONPREFIX}${DISTVERSION} |
12 |
|
12 |
|
13 |
MAINTAINER= dev.ashevchuk@gmail.com |
13 |
MAINTAINER= ronald-lists@klop.ws |
14 |
COMMENT= Distributed document-oriented "NoSQL" database |
14 |
COMMENT= Distributed document-oriented "NoSQL" database (4.2.x Branch) |
15 |
|
15 |
|
16 |
# mongodb is AGPLv3, C++ driver is APACHE20 |
16 |
# mongodb is AGPLv3, C++ driver is APACHE20 |
17 |
LICENSE= AGPLv3 APACHE20 |
17 |
LICENSE= AGPLv3 APACHE20 |
Lines 20-63
Link Here
|
20 |
ONLY_FOR_ARCHS= aarch64 amd64 |
20 |
ONLY_FOR_ARCHS= aarch64 amd64 |
21 |
ONLY_FOR_ARCHS_REASON= "Only supported on amd64 and aarch64 (i386 deprecated in v3)" |
21 |
ONLY_FOR_ARCHS_REASON= "Only supported on amd64 and aarch64 (i386 deprecated in v3)" |
22 |
|
22 |
|
23 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>=2.4.4:devel/py-cheetah@${PY_FLAVOR} \ |
23 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ |
24 |
${PY_TYPING} \ |
24 |
${PY_TYPING} \ |
25 |
${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} \ |
|
|
26 |
${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ |
26 |
${LOCALBASE}/bin/ar:devel/binutils |
27 |
${LOCALBASE}/bin/ar:devel/binutils |
27 |
LIB_DEPENDS= libboost_system.so:devel/boost-libs \ |
28 |
LIB_DEPENDS= libboost_system.so:devel/boost-libs \ |
28 |
libpcre.so:devel/pcre \ |
29 |
libpcre.so:devel/pcre \ |
29 |
libcurl.so:ftp/curl \ |
30 |
libcurl.so:ftp/curl \ |
30 |
libsnappy.so:archivers/snappy |
31 |
libsnappy.so:archivers/snappy |
31 |
|
32 |
|
32 |
USES= compiler:c++14-lang cpe python:2.7,build scons shebangfix |
33 |
USES= compiler:c++17-lang cpe python:3.5+,build scons:py36 shebangfix |
33 |
USE_RC_SUBR= mongod |
34 |
USE_RC_SUBR= mongod |
34 |
|
35 |
|
35 |
CONFLICTS_BUILD= mongo-cxx-driver |
36 |
CONFLICTS_BUILD= mongo-cxx-driver |
36 |
CONFLICTS_INSTALL= mongodb3[46] mongodb42 |
37 |
CONFLICTS_INSTALL= mongodb3[46] mongodb40 |
37 |
|
38 |
|
|
|
39 |
OPTIONS_DEFINE= SASL SSL |
40 |
OPTIONS_DEFAULT= SASL SSL |
41 |
|
38 |
SHEBANG_FILES= src/mongo/installer/compass/install_compass.in |
42 |
SHEBANG_FILES= src/mongo/installer/compass/install_compass.in |
39 |
python_OLD_CMD= @python_interpreter@ |
43 |
python_OLD_CMD= @python_interpreter@ |
40 |
MAKE_ARGS= --prefix=${STAGEDIR}${PREFIX} \ |
44 |
MAKE_ARGS= --prefix=${STAGEDIR}${PREFIX} \ |
41 |
--use-system-pcre --use-system-snappy \ |
45 |
--use-system-zlib \ |
42 |
--use-system-boost --use-system-zlib \ |
46 |
--use-system-pcre \ |
43 |
--cxx-std=14 --libc++ \ |
47 |
--use-system-snappy \ |
|
|
48 |
--use-system-boost \ |
49 |
--libc++ \ |
50 |
--cxx-std=17 \ |
44 |
--runtime-hardening=on \ |
51 |
--runtime-hardening=on \ |
|
|
52 |
-j ${MAKE_JOBS_NUMBER} \ |
45 |
--disable-warnings-as-errors \ |
53 |
--disable-warnings-as-errors \ |
46 |
VERBOSE=on AR=${PREFIX}/bin/ar |
54 |
VERBOSE=on \ |
|
|
55 |
AR=${PREFIX}/bin/ar |
47 |
|
56 |
|
|
|
57 |
.include <bsd.port.pre.mk> |
58 |
|
59 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1201000 |
60 |
LLVM_VER= 70 |
61 |
BUILD_DEPENDS+= llvm${LLVM_VER}>0:devel/llvm${LLVM_VER} |
62 |
CC= ${LOCALBASE}/bin/clang${LLVM_VER} |
63 |
CXX= ${LOCALBASE}/bin/clang++${LLVM_VER} |
64 |
MAKE_ARGS+= CC=${CC} CXX=${CXX} |
65 |
.endif |
66 |
|
48 |
USERS= mongodb |
67 |
USERS= mongodb |
49 |
GROUPS= mongodb |
68 |
GROUPS= mongodb |
50 |
|
69 |
|
51 |
OPTIONS_DEFINE= SASL SSL |
|
|
52 |
OPTIONS_DEFAULT= SASL SSL |
53 |
|
54 |
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 |
70 |
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 |
55 |
SASL_MAKE_ARGS= --use-sasl-client |
71 |
SASL_MAKE_ARGS= --use-sasl-client |
56 |
|
72 |
|
57 |
SSL_USES= ssl |
73 |
SSL_USES= ssl |
58 |
SSL_MAKE_ARGS= --ssl |
74 |
SSL_MAKE_ARGS= --ssl |
59 |
|
|
|
60 |
.include <bsd.port.options.mk> |
61 |
|
75 |
|
62 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 |
76 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 |
63 |
SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" |
77 |
SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" |