blob: 6f3b49aa450e6add8d1994e5daa34bc526a92ed0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
|
# New ports collection makefile for: mariadb-server
# Date created: 30 May 2011
# Whom: Doug Barton <dougb@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= mariadb
PKGNAMESUFFIX?= -server
PORTVERSION= 5.2.6
PORTREVISION?= 0
CATEGORIES= databases ipv6
MASTER_SITES= http://www.percona.com/downloads/MariaDB/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://ftp.osuosl.org/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://mirrors.supportex.net/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://technocation.org/mirror/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://mirror.aarnet.edu.au/pub/MariaDB/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://ftp-stud.hs-esslingen.de/pub/Mirrors/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://gd.tuwien.ac.at/db/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://mirrors.fe.up.pt/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://mirror.switch.ch/mirror/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/
MAINTAINER= dgeo@centrale-marseille.fr
COMMENT?= Database server - drop-in replacement for MySQL
CONFLICTS?= mysql-server-[0-9]*
GNU_CONFIGURE= yes
.if !defined(MARIADB_SCRIPTS_SLAVE)
CPPFLAGS+= -I${LOCALBASE}/include
DATADIR= ${PREFIX}/share/mysql
USE_LDCONFIG= ${PREFIX}/lib/mysql
USERS= mysql
GROUPS= mysql
OPTIONS+= STATIC "Build statically linked" On \
SSL "Activate SSL support (yassl)" On \
OPENSSL "Use OpenSSL instead of bundled yassl" Off
MAKE_JOBS_SAFE= yes
.if !defined(MARIADB_CLIENT_SLAVE)
CONFIGURE_ARGS+= --with-libevent=${LOCALBASE}
LIB_DEPENDS+= event-1.4:${PORTSDIR}/devel/libevent
MAN1= innochecksum.1 my_print_defaults.1 myisam_ftdump.1 myisamchk.1 \
myisamlog.1 myisampack.1 mysql.server.1 mysql_client_test_embedded.1 \
mysql_install_db.1 mysql_tzinfo_to_sql.1 mysql_waitpid.1 mysqld_safe.1 \
mysqltest_embedded.1 perror.1 replace.1 resolve_stack_dump.1 resolveip.1
MAN8= mysqld.8 mysqlmanager.8
LICENSE= GPLv2
INFO= mysql
CONFIGURE_ARGS+= --with-embedded-server --enable-local-infile
USE_RC_SUBR= mysql-server
OPTIONS+= ARIADB "Aria storage engine" On \
ARCHIVE "Archive storage plugin" On \
BLACKHOLE "Blackhole storage engine" On \
SPHINX "SE client for Sphinx search daemon" On \
FEDX "FederatedX storage engine (Federated replacement)" On \
FEDERATED "Federated (old) storage engine" Off \
XTRADB "XtraDB (InnoDB replacement) engine" On \
INNODB "InnoDB (old) engine" Off \
OQGRAPH "Open Query Graph Computation engine" Off \
PBXT "MVCC-based transactional engine" Off \
PARTITION "Partitioning support" Off \
NDB "Enable NDB support (implies PARTITION)" Off \
EXAMPLES "Example engine,daemon and ftsearch plugins" Off
.endif # .if !defined(MARIADB_CLIENT_SLAVE)
.include <bsd.port.options.mk>
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
CONFIGURE_ARGS+= --enable-assembler
.endif
.if ${ARCH} == "i386"
CONFIGURE_ARGS+= --with-big-tables
.endif
.if defined(WITH_SSL)
.if defined(WITH_OPENSSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
.else
CONFIGURE_ARGS+= --with-ssl=bundled
MDB_EXTRA_SUBDIRS= extra
.endif
.else
CONFIGURE_ARGS+= --without-ssl
.endif
.if defined(WITH_STATIC)
CONFIGURE_ARGS+= --with-client-ldflags="-static -all-static"
.endif
.if defined(WITH_THREADSAFE)
CONFIGURE_ARGS+= --enable-thread-safe-client
.endif
.if !defined(MARIADB_CLIENT_SLAVE)
.if defined(WITH_ARIADB)
PLIST_SUB+= ARIADB=""
CONFIGURE_ARGS+= --with-plugin-aria --with-aria-tmp-tables
PLUGINS+= aria
.else
CONFIGURE_ARGS+= --without-plugin-aria
PLIST_SUB+= ARIADB="@comment "
.endif
.if defined(WITH_SPHINX)
PLIST_SUB+= SPHINX=""
PLUGINS+= sphinx
.else
CONFIGURE_ARGS+= --without-plugin-sphinx
PLIST_SUB+= SPHINX="@comment "
.endif
.if defined(WITH_ARCHIVE)
PLIST_SUB+= ARCHIVE=""
PLUGINS+= archive
.else
CONFIGURE_ARGS+= --without-plugin-archive
PLIST_SUB+= ARCHIVE="@comment "
.endif
.if defined(WITH_BLACKHOLE)
PLIST_SUB+= BLACKHOLE=""
PLUGINS+= blackhole
.else
CONFIGURE_ARGS+= --without-plugin-blackhole
PLIST_SUB+= BLACKHOLE="@comment "
.endif
.if defined(WITH_FEDERATED)
PLIST_SUB+= FEDERATED=""
PLUGINS+= federated
.else
CONFIGURE_ARGS+= --without-plugin-federated
PLIST_SUB+= FEDERATED="@comment "
.endif
.if defined(WITH_FEDX)
PLIST_SUB+= FEDERATEDX=""
PLUGINS+= federatedx
.else
CONFIGURE_ARGS+= --without-plugin-federatedx
PLIST_SUB+= FEDERATEDX="@comment "
.endif
.if defined(WITH_INNODB)
PLIST_SUB+= INNODB=""
PLUGINS+= innodb_plugin
.else
CONFIGURE_ARGS+= --without-plugin-innodb_plugin
PLIST_SUB+= INNODB="@comment "
.endif
.if defined(WITH_XTRADB)
PLIST_SUB+= XTRADB=""
PLUGINS+= xtradb
.else
CONFIGURE_ARGS+= --without-plugin-xtradb
PLIST_SUB+= XTRADB="@comment "
.endif
.if defined(WITH_OQGRAPH)
CONFIGURE_ARGS+= --with-plugin-oqgraph
PLIST_SUB+= OQGRAPH=""
LIB_DEPENDS+= boost_system.4:${PORTSDIR}/devel/boost-libs
PLUGINS+= oqgraph
.else
CONFIGURE_ARGS+= --without-plugin-oqgraph
PLIST_SUB+= OQGRAPH="@comment "
.endif
.if defined(WITH_PBXT)
CONFIGURE_ARGS+= --with-plugin-pbxt
PLIST_SUB+= PBXT=""
PLUGINS+= pbxt
.else
CONFIGURE_ARGS+= --without-plugin-pbxt
PLIST_SUB+= PBXT="@comment "
.endif
.if defined(WITH_EXAMPLES)
PLIST_SUB+= EXAMPLES=""
.else
CONFIGURE_ARGS+= --without-plugin-example --without-plugin-daemon_example --without-plugin-ftexample
PLIST_SUB+= EXAMPLES="@comment "
.endif
.if defined(WITH_NDB)
CONFIGURE_ARGS+= --with-plugin-ndbcluster
WITH_PARTITION=yes
PLIST_SUB+= NDB=""
PLUGINS+= ndbcluster
.else
CONFIGURE_ARGS+= --without-plugin-ndbcluster
PLIST_SUB+= NDB="@comment "
.endif
.if defined(WITH_PARTITION)
CONFIGURE_ARGS+= --with-plugin-partition
PLUGINS+= partition
.else
CONFIGURE_ARGS+= --without-plugin-partition
.endif
.if defined(WITH_STATIC)
CONFIGURE_ARGS+= --with-mysqld-ldflags="-static -all-static" --with-plugins="${PLUGINS}"
PLIST_SUB+= STATIC="@comment "
.else
PLIST_SUB+= STATIC=""
.endif
.endif # .if !defined(MARIADB_CLIENT_SLAVE)
.if defined(WITH_CHARSET) && ${WITH_CHARSET} != ""
CONFIGURE_ARGS+= --with-charset=${WITH_CHARSET}
.endif
.if defined(WITH_XCHARSET) && ${WITH_XCHARSET} != ""
CONFIGURE_ARGS+= --with-extra-charsets=${WITH_XCHARSET}
.else
CONFIGURE_ARGS+= --with-extra-charsets=complex
.endif
.if defined(WITH_COLLATION) && ${WITH_COLLATION} != ""
CONFIGURE_ARGS+= --with-collation=${WITH_COLLATION}
.endif
.if defined(WITH_STATIC) && ( defined(WITH_OPENSSL) || defined(WITH_NDB) )
pre-extract:
@${ECHO} ''
@${ECHO} "WITH_STATIC is not compatible with WITH_OPENSSL or WITH_NDB"
@${ECHO} ''
@${FALSE}
.endif
.if !defined(MARIADB_CLIENT_SLAVE)
.if !defined(WITH_STATIC)
SUB_FILES= pkg-message
.endif
pre-fetch:
@${ECHO} ''
@${ECHO} ' The following configuration options can be set in /etc/make.conf'
@${ECHO} ''
@${ECHO} " WITH_COLLATION=collate"
@${ECHO} " Default collation (default: latin1_swedish_ci, selected: ${WITH_COLLATION})."
@${ECHO} " WITH_CHARSET=charset"
@${ECHO} " Primary built-in charset (default: latin1, selected: ${WITH_CHARSET})."
@${ECHO} " WITH_XCHARSET=list"
@${ECHO} " Other built-in charsets (default: complex, selected: ${WITH_XCHARSET})."
@${ECHO} ''
EXTRA_PATCHES= ${FILESDIR}/scripts__Makefile.in
MDB_SERVER_SUBDIRS= include @docs_dirs@ sql-common libservices mysys strings dbug ${MDB_EXTRA_SUBDIRS} unittest cmd-line-utils libmysql scripts @sql_server_dirs@ @sql_server@ @man_dirs@ @libmysqld_dirs@ support-files
post-patch:
@${REINPLACE_CMD} -e "s|%%SUBDIRS%%|${MDB_SERVER_SUBDIRS}|" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|%%MANS%%|${MAN1}|" ${WRKSRC}/man/Makefile.in
@${REINPLACE_CMD} -e "s|^\(install:\).*|\1|" ${WRKSRC}/mysql-test/Makefile.in ${WRKSRC}/sql-bench/Makefile.in
@${REINPLACE_CMD} -e "s|^\(aclocal_DATA =\).*|\1|" ${WRKSRC}/support-files/Makefile.in
@${REINPLACE_CMD} -e "s|^\(pkginclude_HEADERS =\).*|\1|" ${WRKSRC}/cmd-line-utils/libedit/Makefile.in
@${REINPLACE_CMD} -e "s|^\(install-data-am:\) install-pkgincludeHEADERS|\1|g" ${WRKSRC}/extra/Makefile.in ${WRKSRC}/include/Makefile.in
@${REINPLACE_CMD} -e "s|^\(install-exec-am:\) install-pkglibLTLIBRARIES|\1|g" ${WRKSRC}/libmysql/Makefile.in
.if !defined(WITH_STATIC)
post-install:
@${CAT} ${PKGMESSAGE}
.endif
.endif # .if !defined(MARIADB_CLIENT_SLAVE)
.endif # .if !defined(MARIADB_SCRIPTS_SLAVE)
.include <bsd.port.mk>
|