Lines 2-57
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= galera |
4 |
PORTNAME= galera |
5 |
PORTVERSION= 25.3.5 |
5 |
PORTVERSION= 25.3.16 |
6 |
DISTVERSIONSUFFIX= -src |
6 |
DISTVERSIONPREFIX= 3- |
7 |
PORTREVISION= 2 |
|
|
8 |
CATEGORIES= databases |
7 |
CATEGORIES= databases |
9 |
MASTER_SITES= https://launchpadlibrarian.net/170877450/ |
8 |
MASTER_SITES= http://releases.galeracluster.com/source/ |
10 |
|
9 |
|
11 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= brnrd@FreeBSD.org |
12 |
COMMENT= Synchronous multi-master replication engine |
11 |
COMMENT= Synchronous multi-master replication engine |
13 |
|
12 |
|
14 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2 |
15 |
|
14 |
|
16 |
BUILD_DEPENDS= checkmk:devel/libcheck \ |
15 |
BUILD_DEPENDS= checkmk:devel/libcheck \ |
17 |
doxygen:devel/doxygen \ |
16 |
|
18 |
${PYTHON_PKGNAMEPREFIX}cloud_sptheme>=0:textproc/py-cloud_sptheme |
|
|
19 |
LIB_DEPENDS= libboost_date_time.so:devel/boost-libs |
17 |
LIB_DEPENDS= libboost_date_time.so:devel/boost-libs |
20 |
|
18 |
|
21 |
USES= execinfo python:build scons shebangfix |
19 |
USES= execinfo scons shebangfix ssl |
22 |
|
20 |
|
23 |
USE_CXXSTD= c++11 |
21 |
USE_CXXSTD= c++11 |
24 |
USE_GCC= yes |
|
|
25 |
USE_LDCONFIG= yes |
22 |
USE_LDCONFIG= yes |
26 |
USE_OPENSSL= yes |
|
|
27 |
|
23 |
|
28 |
LDFLAGS+= -lboost_program_options -lboost_system |
24 |
LDFLAGS+= -lboost_program_options -lboost_system -lssl -lcrypto |
29 |
MAKE_ARGS+= --config=force |
|
|
30 |
|
25 |
|
31 |
SHEBANG_FILES= docs/sphinx-* |
|
|
32 |
|
33 |
PLIST_FILES= lib/libgalera_smm.so \ |
26 |
PLIST_FILES= lib/libgalera_smm.so \ |
34 |
lib/libgalera.so |
27 |
lib/libgalera.so |
35 |
|
28 |
|
36 |
PORTDOCS= * |
29 |
PORTDOCS= AUTHORS README |
37 |
|
30 |
|
38 |
DOCSRCDIR1= ${WRKSRC} |
|
|
39 |
DOC_FILES1= AUTHORS README |
40 |
|
41 |
DOCSRCDIR2= ${DOCSRCDIR1}/docs/build/doc |
42 |
|
43 |
DOCSRCDIR3= ${DOCSRCDIR1}/galerautils |
44 |
DOCSDIR3= ${DOCSDIR}/galerautils |
45 |
DOC_FILES3= ChangeLog README |
46 |
|
47 |
DOCSRCDIR4= ${DOCSRCDIR1}/gcache |
48 |
DOCSDIR4= ${DOCSDIR}/gcache |
49 |
DOC_FILES4= AUTHORS README |
50 |
|
51 |
DOCSRCDIR5= ${DOCSRCDIR1}/gcs |
52 |
DOCSDIR5= ${DOCSDIR}/gcs |
53 |
DOC_FILES5= ChangeLog README doc/*.txt doc/*.odt doc/*.png |
54 |
|
55 |
OPTIONS_DEFINE= BOOSTPOOL BPOSTATIC DEBUG DOCS TEST |
31 |
OPTIONS_DEFINE= BOOSTPOOL BPOSTATIC DEBUG DOCS TEST |
56 |
OPTIONS_GROUP= DOCS |
32 |
OPTIONS_GROUP= DOCS |
57 |
OPTIONS_GROUP_DOCS= EPUB JSON LATEX PICKLE |
33 |
OPTIONS_GROUP_DOCS= EPUB JSON LATEX PICKLE |
Lines 82-90
Link Here
|
82 |
${WRKSRC}/SConstruct |
58 |
${WRKSRC}/SConstruct |
83 |
@${REINPLACE_CMD} -e '/#\/asio/d; s|asio.hpp|boost/&|; \ |
59 |
@${REINPLACE_CMD} -e '/#\/asio/d; s|asio.hpp|boost/&|; \ |
84 |
s|asio/ssl.hpp|boost/&|' ${WRKSRC}/SConstruct |
60 |
s|asio/ssl.hpp|boost/&|' ${WRKSRC}/SConstruct |
85 |
@${REINPLACE_CMD} -e 's|asio.hpp|boost/&|; s|asio/ssl.hpp|boost/&|' \ |
61 |
@${REINPLACE_CMD} -e 's|asio.hpp|boost/&|' -e 's|asio/ssl.hpp|boost/&|' \ |
86 |
${WRKSRC}/galera/src/ist.hpp \ |
62 |
-e 's|gu_boost/asio.hpp|gu_asio.hpp|' \ |
87 |
${WRKSRC}/gcomm/src/asio_protonet.hpp |
63 |
-e 's|asio::error_code|::boost::system::error_code|g' \ |
|
|
64 |
-e 's|asio::system_error|::boost::system::system_error|g' \ |
65 |
-e 's|asio::|::boost::asio::|g' \ |
66 |
${WRKSRC}/galerautils/src/gu_asio.hpp \ |
67 |
${WRKSRC}/galerautils/src/gu_asio.cpp |
88 |
@${REINPLACE_CMD} -e 's|asio::system_error|::boost::system::system_error|g' \ |
68 |
@${REINPLACE_CMD} -e 's|asio::system_error|::boost::system::system_error|g' \ |
89 |
${WRKSRC}/galera/src/ist.cpp \ |
69 |
${WRKSRC}/galera/src/ist.cpp \ |
90 |
${WRKSRC}/gcomm/src/asio_tcp.cpp \ |
70 |
${WRKSRC}/gcomm/src/asio_tcp.cpp \ |
Lines 96-102
Link Here
|
96 |
@${REINPLACE_CMD} -e 's|asio::|boost::&|g' \ |
76 |
@${REINPLACE_CMD} -e 's|asio::|boost::&|g' \ |
97 |
${WRKSRC}/galera/src/ist.*pp \ |
77 |
${WRKSRC}/galera/src/ist.*pp \ |
98 |
${WRKSRC}/galera/src/ist_proto.hpp \ |
78 |
${WRKSRC}/galera/src/ist_proto.hpp \ |
99 |
${WRKSRC}/gcomm/src/asio_addr.hpp \ |
|
|
100 |
${WRKSRC}/gcomm/src/asio_protonet.*pp \ |
79 |
${WRKSRC}/gcomm/src/asio_protonet.*pp \ |
101 |
${WRKSRC}/gcomm/src/asio_tcp.*pp \ |
80 |
${WRKSRC}/gcomm/src/asio_tcp.*pp \ |
102 |
${WRKSRC}/gcomm/src/asio_udp.*pp |
81 |
${WRKSRC}/gcomm/src/asio_udp.*pp |
Lines 113-121
Link Here
|
113 |
${WRKSRC}/galera/SConscript |
92 |
${WRKSRC}/galera/SConscript |
114 |
.endif |
93 |
.endif |
115 |
|
94 |
|
116 |
@${REINPLACE_CMD} -e "s|\[u'Codership Oy'\], 1|\[u'Codership Oy'\], 8|" \ |
|
|
117 |
${WRKSRC}/docs/pasture/source/conf.py |
118 |
|
119 |
.for d in galerautils gcomm gcs |
95 |
.for d in galerautils gcomm gcs |
120 |
@${REINPLACE_CMD} -e 's|= ./|= ../../docs/build/doc/${d}|; \ |
96 |
@${REINPLACE_CMD} -e 's|= ./|= ../../docs/build/doc/${d}|; \ |
121 |
s|= man|= ../../man|' ${WRKSRC}/${d}/doc/Doxyfile |
97 |
s|= man|= ../../man|' ${WRKSRC}/${d}/doc/Doxyfile |
Lines 130-186
Link Here
|
130 |
. endif |
106 |
. endif |
131 |
.endfor |
107 |
.endfor |
132 |
|
108 |
|
133 |
post-build: |
109 |
post-install: |
134 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b man \ |
110 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
135 |
-d build/doctrees source build/man/man1) |
111 |
${INSTALL_MAN} ${WRKSRC}/AUTHORS ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} |
136 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b man \ |
|
|
137 |
-d build/doctrees/pasture pasture/source build/man/man8) |
138 |
|
112 |
|
139 |
.if ${PORT_OPTIONS:MDOCS} |
|
|
140 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b html \ |
141 |
-d build/doctrees source build/doc/galera/html) |
142 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b text \ |
143 |
-d build/doctrees source build/doc/galera/text) |
144 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b html \ |
145 |
-d build/doctrees/pasture pasture/source build/doc/pasture/html) |
146 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b text \ |
147 |
-d build/doctrees/pasture pasture/source build/doc/pasture/text) |
148 |
|
149 |
. if ${PORT_OPTIONS:MEPUB} |
150 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b epub \ |
151 |
-d build/doctrees source build/doc/galera/epub) |
152 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b epub \ |
153 |
-d build/doctrees/pasture pasture/source build/doc/pasture/epub) |
154 |
. endif |
155 |
|
156 |
. if ${PORT_OPTIONS:MJSON} |
157 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b json \ |
158 |
-d build/doctrees source build/doc/galera/json) |
159 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b json \ |
160 |
-d build/doctrees/pasture pasture/source build/doc/pasture/json) |
161 |
. endif |
162 |
|
163 |
. if ${PORT_OPTIONS:MLATEX} |
164 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b latex \ |
165 |
-d build/doctrees source build/doc/galera/latex) |
166 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b latex \ |
167 |
-d build/doctrees/pasture pasture/source \ |
168 |
build/doc/pasture/latex) |
169 |
. endif |
170 |
|
171 |
. if ${PORT_OPTIONS:MPICKLE} |
172 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b pickle \ |
173 |
-d build/doctrees source build/doc/galera/pickle) |
174 |
@(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b pickle \ |
175 |
-d build/doctrees/pasture \ |
176 |
pasture/source build/doc/pasture/pickle) |
177 |
. endif |
178 |
.endif |
179 |
|
180 |
@(cd ${BUILD_WRKSRC}/galerautils/doc && doxygen Doxyfile) |
181 |
@(cd ${BUILD_WRKSRC}/gcomm/doc && doxygen Doxyfile) |
182 |
@(cd ${BUILD_WRKSRC}/gcs/doc && doxygen Doxyfile) |
183 |
|
184 |
do-install: |
113 |
do-install: |
185 |
${INSTALL_LIB} ${WRKDIR}/${DISTNAME}/libgalera_smm.so \ |
114 |
${INSTALL_LIB} ${WRKDIR}/${DISTNAME}/libgalera_smm.so \ |
186 |
${STAGEDIR}${PREFIX}/lib/ |
115 |
${STAGEDIR}${PREFIX}/lib/ |
Lines 187-211
Link Here
|
187 |
@(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libgalera_smm.so \ |
116 |
@(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libgalera_smm.so \ |
188 |
libgalera.so) |
117 |
libgalera.so) |
189 |
|
118 |
|
190 |
@(cd ${WRKSRC}/docs/build/man/man1 && ${INSTALL_MAN} \ |
|
|
191 |
${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/) |
192 |
@(cd ${WRKSRC}/docs/build/man/man3 && ${RM} _*.3 && ${INSTALL_MAN} \ |
193 |
*.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/) |
194 |
@(cd ${WRKSRC}/docs/build/man/man8 && ${INSTALL_MAN} \ |
195 |
${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/) |
196 |
|
197 |
@cd ${STAGEDIR}${MANPREFIX} && \ |
198 |
${FIND} -H -s man/man*/ -maxdepth 1 -type f -print | \ |
199 |
${SED} 's|$$|.gz|' >> ${TMPPLIST} |
200 |
|
201 |
post-install: |
202 |
.if ${PORT_OPTIONS:MDOCS} |
203 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR4} |
204 |
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} |
205 |
(cd ${DOCSRCDIR2} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) |
206 |
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3} |
207 |
${INSTALL_DATA} ${DOC_FILES4:S|^|${DOCSRCDIR4}/|} ${STAGEDIR}${DOCSDIR4} |
208 |
${INSTALL_DATA} ${DOC_FILES5:S|^|${DOCSRCDIR5}/|} ${STAGEDIR}${DOCSDIR5} |
209 |
.endif |
210 |
|
211 |
.include <bsd.port.post.mk> |
119 |
.include <bsd.port.post.mk> |