Lines 1-11
Link Here
|
1 |
# Created by: proler@gmail.com |
1 |
# Created by: proler@gmail.com |
2 |
# $FreeBSD: head/databases/clickhouse/Makefile 437439 2017-04-01 15:23:30Z gerald $ |
2 |
# $FreeBSD: head/databases/clickhouse/Makefile 435190 2017-03-01 18:30:06Z amdmi3 $ |
3 |
|
3 |
|
4 |
PORTNAME= clickhouse |
4 |
PORTNAME= clickhouse |
5 |
PORTVERSION= 1.1.54165 |
5 |
PORTVERSION= 1.1.54214 |
6 |
PORTREVISION= 1 |
|
|
7 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
8 |
DISTVERSIONSUFFIX= -stable |
7 |
#DISTVERSIONSUFFIX= -stable |
|
|
8 |
DISTVERSIONSUFFIX= -testing |
9 |
CATEGORIES= databases |
9 |
CATEGORIES= databases |
10 |
|
10 |
|
11 |
MAINTAINER= proler@gmail.com |
11 |
MAINTAINER= proler@gmail.com |
Lines 13-25
Link Here
|
13 |
|
13 |
|
14 |
LICENSE= APACHE20 |
14 |
LICENSE= APACHE20 |
15 |
|
15 |
|
16 |
BUILD_DEPENDS= bash:shells/bash |
16 |
BUILD_DEPENDS= bash:shells/bash \ |
17 |
LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \ |
17 |
sparsehash>=0:devel/sparsehash |
18 |
libtcmalloc.so:devel/google-perftools \ |
18 |
LIB_DEPENDS= libtcmalloc.so:devel/google-perftools \ |
19 |
libodbc.so:databases/unixODBC \ |
19 |
libodbc.so:databases/unixODBC \ |
20 |
libltdl.so:devel/libltdl \ |
20 |
libltdl.so:devel/libltdl \ |
21 |
libicudata.so:devel/icu \ |
21 |
libicudata.so:devel/icu \ |
22 |
libboost_program_options.so:devel/boost-libs |
22 |
libboost_program_options.so:devel/boost-libs \ |
|
|
23 |
libzookeeper_mt.so:devel/libzookeeper \ |
24 |
libre2.so:devel/re2 \ |
25 |
libdouble-conversion.so:devel/libdouble-conversion \ |
26 |
libzstd.so:archivers/zstd \ |
27 |
liblz4.so:archivers/liblz4 \ |
28 |
libPocoNet.so:devel/poco |
23 |
|
29 |
|
24 |
USE_GITHUB= yes |
30 |
USE_GITHUB= yes |
25 |
GH_ACCOUNT= yandex |
31 |
GH_ACCOUNT= yandex |
Lines 30-67
Link Here
|
30 |
|
36 |
|
31 |
USES= compiler:c++14-lang cmake iconv mysql ssl readline |
37 |
USES= compiler:c++14-lang cmake iconv mysql ssl readline |
32 |
USE_LDCONFIG= yes |
38 |
USE_LDCONFIG= yes |
33 |
CMAKE_ARGS= -DUSE_INTERNAL_GPERFTOOLS_LIBRARY=0 \ |
39 |
CMAKE_ARGS= -DUNBUNDLED=1 \ |
34 |
-DUSE_INTERNAL_BOOST_LIBRARY=0 \ |
|
|
35 |
-DUSE_INTERNAL_ZLIB_LIBRARY=0 \ |
36 |
-DUSE_STATIC_LIBRARIES=0 \ |
40 |
-DUSE_STATIC_LIBRARIES=0 \ |
37 |
-DNO_WERROR=1 |
41 |
-DNO_WERROR=1 \ |
|
|
42 |
-DENABLE_TESTS=0 \ |
43 |
-DCXX11_ABI= |
38 |
|
44 |
|
39 |
USE_RC_SUBR= ${PORTNAME} |
45 |
USE_RC_SUBR= ${PORTNAME} |
40 |
USERS= clickhouse |
46 |
USERS= clickhouse |
41 |
GROUPS= clickhouse |
47 |
GROUPS= clickhouse |
42 |
|
48 |
|
43 |
#temporary! use PORTVERSION after version match |
49 |
SOVERSION= ${PORTVERSION} |
44 |
SOVERSION= 1.1.54164 |
|
|
45 |
PLIST_SUB= SOVERSION=${SOVERSION} |
50 |
PLIST_SUB= SOVERSION=${SOVERSION} |
46 |
|
51 |
|
47 |
.include <bsd.port.pre.mk> |
52 |
.include <bsd.port.pre.mk> |
48 |
|
53 |
|
49 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 |
54 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 |
50 |
BUILD_DEPENDS+= clang38:devel/llvm38 |
55 |
BUILD_DEPENDS+= clang38:devel/llvm38 |
51 |
CC= clang38 |
56 |
CC= clang38 |
52 |
CXX= clang++38 |
57 |
CXX= clang++38 |
53 |
.endif |
58 |
.endif |
54 |
|
59 |
|
55 |
post-patch: |
60 |
post-patch: |
56 |
@${REINPLACE_CMD} -e 's|/var/lib/clickhouse|/var/db/clickhouse|' ${WRKSRC}/dbms/src/Server/config.xml |
61 |
@${REINPLACE_CMD} -e 's|/var/lib/clickhouse|/var/db/clickhouse|;s|/var/log/clickhouse-server|/var/log/clickhouse|' ${WRKSRC}/dbms/src/Server/config.xml |
57 |
|
62 |
|
58 |
post-install: |
63 |
post-install: |
59 |
@${RM} ${STAGEDIR}${PREFIX}/bin/clickhouse-compressor |
64 |
@${RM} ${STAGEDIR}${PREFIX}/bin/clickhouse-compressor |
60 |
@${RM} ${STAGEDIR}${PREFIX}/bin/config-processor |
65 |
@${RM} ${STAGEDIR}${PREFIX}/bin/config-processor |
61 |
@${RM} ${STAGEDIR}${PREFIX}/bin/corrector_utf8 |
66 |
@${RM} ${STAGEDIR}${PREFIX}/bin/corrector_utf8 |
62 |
@${RM} ${STAGEDIR}${PREFIX}/lib/cmake/Poco/PocoConfig.cmake |
67 |
@${RM} -r ${STAGEDIR}${PREFIX}/include/gtest |
63 |
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/cmake/Poco |
68 |
@${RM} ${STAGEDIR}${PREFIX}/lib/libgtest* |
64 |
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/cmake |
|
|
65 |
|
69 |
|
66 |
${INSTALL_DATA} ${WRKSRC}/dbms/src/Client/config.xml \ |
70 |
${INSTALL_DATA} ${WRKSRC}/dbms/src/Client/config.xml \ |
67 |
${STAGEDIR}${PREFIX}/etc/clickhouse-client/config.xml.sample |
71 |
${STAGEDIR}${PREFIX}/etc/clickhouse-client/config.xml.sample |