View | Details | Raw Unified | Return to bug 196122 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-59 / +35 lines)
Lines 24-40 Link Here
24
SHEBANG_FILES=	scripts/*.sh
24
SHEBANG_FILES=	scripts/*.sh
25
SITESDIR=	mariadb/mariadb-${PORTVERSION}/source
25
SITESDIR=	mariadb/mariadb-${PORTVERSION}/source
26
26
27
BROKEN_arm=	Does not compile on arm
27
BROKEN_armv6=	Does not compile on arm
28
28
29
OPTIONS_DEFINE=		FASTMTX
29
OPTIONS_DEFINE=		FASTMTX
30
OPTIONS_RADIO=		SSL
30
OPTIONS_RADIO=		SSL
31
OPTIONS_RADIO_SSL=	WITHOUT_SSL BUNDLED_SSL OPENSSL
31
OPTIONS_RADIO_SSL=	BUNDLED_SSL OPENSSL WITHOUT_SSL
32
OPTIONS_DEFAULT+=	OPENSSL
32
OPTIONS_DEFAULT+=	OPENSSL
33
NO_OPTIONS_SORT=	yes
33
NO_OPTIONS_SORT=	yes
34
34
35
FASTMTX_DESC=		Replace mutexes with spinlocks
36
WITHOUT_SSL_DESC=	No SSL/TLS support
37
BUNDLED_SSL_DESC=	SSL/TLS support via (bundled) CyaSSL
35
BUNDLED_SSL_DESC=	SSL/TLS support via (bundled) CyaSSL
36
FASTMTX_DESC=           Replace mutexes with spinlocks
37
WITHOUT_SSL_DESC=       No SSL/TLS support
38
38
39
CMAKE_ARGS+=	-DINSTALL_DOCDIR="share/doc/mysql" \
39
CMAKE_ARGS+=	-DINSTALL_DOCDIR="share/doc/mysql" \
40
		-DINSTALL_DOCREADMEDIR="share/doc/mysql" \
40
		-DINSTALL_DOCREADMEDIR="share/doc/mysql" \
Lines 63-105 Link Here
63
63
64
DATADIR=	${PREFIX}/share/mysql
64
DATADIR=	${PREFIX}/share/mysql
65
65
66
# MySQL-Server options
67
.if !defined(CLIENT_ONLY)
66
.if !defined(CLIENT_ONLY)
67
# MySQL-Server options
68
USE_MYSQL=		yes
68
USE_MYSQL=		yes
69
OPTIONS_DEFINE+=	INNODB MROONGA OQGRAPH MAXKEY
69
OPTIONS_DEFINE+=	INNODB MAXKEY MROONGA OQGRAPH
70
OPTIONS_DEFAULT+=	MAXKEY
70
OPTIONS_DEFAULT+=	MAXKEY
71
OPTIONS_SUB=		yes
71
72
72
INNODB_DESC=            Build InnoDB engine next to XtraDB
73
INNODB_DESC=            Build InnoDB engine next to XtraDB
74
MAXKEY_DESC=            Change max key length from 1000 to 4000
73
MROONGA_DESC=		Mroonga Full Text Search engine (gcc)
75
MROONGA_DESC=		Mroonga Full Text Search engine (gcc)
74
OQGRAPH_DESC=		Open Query Graph Computation engine (gcc)
76
OQGRAPH_DESC=		Open Query Graph Computation engine (gcc)
75
MAXKEY_DESC=		Change max key length from 1000 to 4000
76
.endif
77
78
.include <bsd.port.options.mk>
79
80
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000012
81
CMAKE_ARGS+=	-DWITH_JEMALLOC="system"
82
.else
83
CMAKE_ARGS+=	-DWITH_JEMALLOC="no"
84
.endif
85
86
.if ${PORT_OPTIONS:MOPENSSL}
87
USE_OPENSSL=	yes
88
CMAKE_ARGS+=	-DWITH_SSL=yes
89
.elif ${PORT_OPTIONS:MBUNDLED_SSL}
90
CMAKE_ARGS+=	-DWITH_SSL=bundled
91
.elif ${PORT_OPTIONS:MWITHOUT_SSL}
92
CMAKE_FLAGS+=	-DWITH_SSL=no
93
.else
94
CMAKE_FLAGS+=   -DWITH_SSL=no
95
.endif
77
.endif
96
78
97
.if ${PORT_OPTIONS:MFASTMTX}
79
BUNDLED_SSL_CMAKE_ON=   -DWITH_SSL=bundled
98
CMAKE_ARGS+=	-DWITH_FAST_MUTEXES=1
80
FASTMX_CMAKE_ON=	-DWITH_FAST_MUTEXES=1
99
.endif
81
OPENSSL_CMAKE_ON=	-DWITH_SSL=yes
82
OPENSSL_USE=	OPENSSL=yes
83
WITHOUT_SSL_CMAKE_ON=	-DWITH_SSL=no
100
84
101
# MySQL-Client part
102
.if defined(CLIENT_ONLY)
85
.if defined(CLIENT_ONLY)
86
# MySQL-Client part
103
USES+=		readline
87
USES+=		readline
104
.else
88
.else
105
# MySQL-Server part
89
# MySQL-Server part
Lines 117-150 Link Here
117
		-DCMAKE_SKIP_BUILD_RPATH:BOOL=YES \
101
		-DCMAKE_SKIP_BUILD_RPATH:BOOL=YES \
118
		-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
102
		-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
119
103
120
.  if empty(PORT_OPTIONS:MINNODB)
104
INNODB_CMAKE_OFF=	-DWITHOUT_INNOBASE=1
121
PLIST_SUB+=	INNODB="@comment "
105
MAXKEY_EXTRA_PATCHES+=  ${FILESDIR}/extra-patch-include_my_compare.h
122
.  else
106
MROONGA_CMAKE_OFF=	-DWITHOUT_MROONGA=1
123
CMAKE_ARGS+=	-DWITHOUT_INNOBASE=1
107
MROONGA_USE=	GCC=yes
124
PLIST_SUB+=	INNODB=""
108
OQGRAPH_CMAKE_OFF=	-DWITHOUT_OQGRAPH=1
125
.  endif
109
OQGRAPH_USE=	GCC=yes
126
110
OQGRAPH_LIB_DEPENDS=	libboost_system.so:${PORTSDIR}/devel/boost-libs
127
.  if empty(PORT_OPTIONS:MMROONGA)
128
CMAKE_ARGS+=    -DWITHOUT_MROONGA=1
129
PLIST_SUB+=     MROONGA="@comment "
130
.  else
131
USE_GCC?=       yes
132
CMAKE_ARGS+=    -DWITH_MROONGA_STORAGE_ENGINE=1
133
PLIST_SUB+=     MROONGA=""
134
.  endif
135
136
.  if empty(PORT_OPTIONS:MOQGRAPH)
137
CMAKE_ARGS+=	-DWITHOUT_OQGRAPH=1
138
PLIST_SUB+=	OQGRAPH="@comment "
139
.  else
140
USE_GCC?=	yes
141
CMAKE_ARGS+=	-DWITH_OQGRAPH_STORAGE_ENGINE=1
142
PLIST_SUB+=	OQGRAPH=""
143
LIB_DEPENDS+=	libboost_system.so:${PORTSDIR}/devel/boost-libs
144
.  endif
145
.  if ${PORT_OPTIONS:MMAXKEY}
146
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-include_my_compare.h
147
.  endif
148
111
149
post-install:
112
post-install:
150
	# Remove programs to avoid conflict with mariadb100-client
113
	# Remove programs to avoid conflict with mariadb100-client
Lines 156-161 Link Here
156
		${STAGEDIR}${PREFIX}/bin/mysqlaccess
119
		${STAGEDIR}${PREFIX}/bin/mysqlaccess
157
.endif
120
.endif
158
121
122
.include <bsd.port.pre.mk>
123
124
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000012
125
CMAKE_ARGS+=   -DWITH_JEMALLOC="system"
126
.else
127
CMAKE_ARGS+=   -DWITH_JEMALLOC="no"
128
.endif
129
130
# Server segfaults on i386 when built with clang >= 3.4
131
.if ${ARCH} == 'i386' && ${OSVERSION} >= 1001000
132
USE_GCC=        yes
133
.endif
134
159
post-patch:
135
post-patch:
160
	@${REINPLACE_CMD} 's/*.1/${MAN1}/' ${WRKSRC}/man/CMakeLists.txt
136
	@${REINPLACE_CMD} 's/*.1/${MAN1}/' ${WRKSRC}/man/CMakeLists.txt
161
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mysys/my_default.c
137
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mysys/my_default.c
Lines 166-169 Link Here
166
	${MV} ${WRKSRC}/storage/tokudb ${WRKSRC}/skip-tokudb
142
	${MV} ${WRKSRC}/storage/tokudb ${WRKSRC}/skip-tokudb
167
.endif
143
.endif
168
144
169
.include <bsd.port.mk>
145
.include <bsd.port.post.mk>

Return to bug 196122