Changeset View
Changeset View
Standalone View
Standalone View
databases/mysql80-server/Makefile
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | |||||
# Since 8.0.20 release innodb engine uses new memory alligned allocator | # Since 8.0.20 release innodb engine uses new memory alligned allocator | ||||
# which is broken on i386 due to different size of types and caused a | # which is broken on i386 due to different size of types and caused a | ||||
# 'static_assert(alignof(T) <= alignof(std::max_align_t))' error | # 'static_assert(alignof(T) <= alignof(std::max_align_t))' error | ||||
.if ${ARCH} == i386 | .if ${ARCH} == i386 | ||||
CMAKE_ARGS+= -DDISABLE_PSI_MEMORY=1 | CMAKE_ARGS+= -DDISABLE_PSI_MEMORY=1 | ||||
.endif | .endif | ||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 | |||||
SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" | |||||
.else | |||||
SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " | |||||
.endif | |||||
.include <bsd.port.pre.mk> | |||||
.if ${ARCH} == "i386" && ${OSVERSION} < 1200000 | |||||
# clang 7.x and 8.x do not build properly on 11i386 | |||||
CPP= clang-cpp${LLVM_DEFAULT} | |||||
CC= clang${LLVM_DEFAULT} | |||||
CXX= clang++${LLVM_DEFAULT} | |||||
BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} | |||||
.endif | |||||
post-extract: | post-extract: | ||||
@${RM} -rv ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h | @${RM} -rv ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h | ||||
.if !defined(CLIENT_ONLY) | .if !defined(CLIENT_ONLY) | ||||
post-install: | post-install: | ||||
${MKDIR} ${STAGEDIR}${ETCDIR} | ${MKDIR} ${STAGEDIR}${ETCDIR} | ||||
${INSTALL_DATA} ${WRKDIR}/my.cnf.sample ${STAGEDIR}${ETCDIR}/my.cnf.sample | ${INSTALL_DATA} ${WRKDIR}/my.cnf.sample ${STAGEDIR}${ETCDIR}/my.cnf.sample | ||||
${MKDIR} ${STAGEDIR}${ETCDIR}/keyring | ${MKDIR} ${STAGEDIR}${ETCDIR}/keyring | ||||
${MKDIR} ${STAGEDIR}${MY_SECDIR} | ${MKDIR} ${STAGEDIR}${MY_SECDIR} | ||||
${MKDIR} ${STAGEDIR}${MY_TMPDIR} | ${MKDIR} ${STAGEDIR}${MY_TMPDIR} | ||||
.endif | .endif | ||||
.include <bsd.port.post.mk> | .include <bsd.port.mk> |