Changeset View
Changeset View
Standalone View
Standalone View
databases/mysqlwsrep57-server/Makefile
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MPERFSCHM} | .if ${PORT_OPTIONS:MPERFSCHM} | ||||
SUB_LIST+= PERFSCHEMRC="" | SUB_LIST+= PERFSCHEMRC="" | ||||
.else | .else | ||||
SUB_LIST+= PERFSCHEMRC="--skip-performance-schema" | SUB_LIST+= PERFSCHEMRC="--skip-performance-schema" | ||||
.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> | .include <bsd.port.pre.mk> | ||||
.if ${SSL_DEFAULT} == base | .if ${SSL_DEFAULT} == base | ||||
CMAKE_ARGS+= -DWITH_SSL=system | CMAKE_ARGS+= -DWITH_SSL=system | ||||
.else | .else | ||||
CMAKE_ARGS+= -DWITH_SSL=${OPENSSLBASE} | CMAKE_ARGS+= -DWITH_SSL=${OPENSSLBASE} | ||||
.endif | .endif | ||||
# ${LOCALBASE}/include/lz4.h does not compile with Clang 6. | # ${LOCALBASE}/include/lz4.h does not compile with Clang 6. | ||||
# Also MySQL code itself needs -Wno-c++11-narrowing when Clang 6 is used. | # Also MySQL code itself needs -Wno-c++11-narrowing when Clang 6 is used. | ||||
.if ${OSVERSION} >= 1200056 | |||||
CFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS | CFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS | ||||
CXXFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS | CXXFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
. if ${CHOSEN_COMPILER_TYPE} == clang | .if ${CHOSEN_COMPILER_TYPE} == clang | ||||
CXXFLAGS+= -Wno-c++11-narrowing | CXXFLAGS+= -Wno-c++11-narrowing | ||||
. endif | |||||
.endif | .endif | ||||
# Ensure that assertions are not turned on in non-debug builds. | # Ensure that assertions are not turned on in non-debug builds. | ||||
.if !defined(WITH_DEBUG) | .if !defined(WITH_DEBUG) | ||||
CFLAGS+= -DNDEBUG | CFLAGS+= -DNDEBUG | ||||
CXXFLAGS+= -DNDEBUG | CXXFLAGS+= -DNDEBUG | ||||
.endif | .endif | ||||
Show All 20 Lines |