openbsd-ports/databases/mysql/Makefile

102 lines
2.5 KiB
Makefile
Raw Normal View History

2004-11-22 11:59:29 -05:00
# $OpenBSD: Makefile,v 1.102 2004/11/22 16:59:29 espie Exp $
# Uses pthreads
.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "m88k"
BROKEN= "gen_lex_hash hangs"
.endif
COMMENT= "multithreaded SQL database (client)"
COMMENT-server= "multithreaded SQL database (server)"
2002-02-20 13:03:32 -05:00
COMMENT-tests= "multithreaded SQL database (regression test suite)"
2004-05-21 08:16:21 -04:00
VERSION= 4.0.20
DISTNAME= mysql-${VERSION}
FULLPKGNAME= mysql-client-${VERSION}p1
PKGNAME-server= mysql-server-${VERSION}p1
FULLPKGNAME-tests= mysql-tests-${VERSION}
CATEGORIES= databases
V= MySQL-4.0
MASTER_SITES= http://mysql.mirrors.pair.com/Downloads/$V/
HOMEPAGE= http://www.mysql.com/
2000-09-24 03:03:59 -04:00
MAINTAINER= Brad Smith <brad@openbsd.org>
2002-12-14 18:56:43 -05:00
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-11-22 11:59:29 -05:00
WANTLIB= c crypto m ncurses pthread readline ssl wrap z
2000-02-14 17:32:08 -05:00
DB_DIR?= /var/mysql
SOCKET_DIR= /var/run/mysql
SUBST_VARS= DB_DIR SOCKET_DIR VERSION
# Suggested flags for the C compiler, needed for
# high load servers otherwise MySQL will crash.
CXX= ${CC}
CXXFLAGS= ${CFLAGS} -felide-constructors -fno-exceptions -fno-rtti
VMEM_WARNING= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf
2004-02-25 03:21:18 -05:00
AUTOCONF_VERSION= 2.57
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-thread-safe-client \
--localstatedir="${DB_DIR}" \
--with-comment='OpenBSD port: ${FULLPKGNAME-server}' \
--with-libwrap \
2003-08-26 20:14:49 -04:00
--with-mysqld-user="_mysql" \
--with-openssl \
--with-unix-socket-path="${SOCKET_DIR}/mysql.sock" \
--with-vio \
--without-bench \
2002-12-14 18:56:43 -05:00
--without-debug \
--without-docs \
--without-extra-tools \
2002-12-14 18:56:43 -05:00
--without-readline
2003-12-28 17:17:50 -05:00
.include <bsd.own.mk>
2003-12-28 17:17:50 -05:00
USE_GCC3?= No
2003-12-28 17:17:50 -05:00
.if ${USE_GCC3:L} == "yes"
2004-01-06 09:13:03 -05:00
CONFIGURE_ARGS+= --with-client-ldflags=-lsupc++ \
--with-mysqld-ldflags=-lsupc++
2004-06-24 02:35:51 -04:00
.else
PATCH_LIST= gcc-* patch-*
2003-12-28 17:17:50 -05:00
.endif
. if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+= --enable-assembler
.endif
2001-07-22 16:35:29 -04:00
MULTI_PACKAGES= -server -tests
SUBPACKAGE?=
.if ${SUBPACKAGE} == "-server"
RUN_DEPENDS= :mysql-client-4.0.*:databases/mysql \
2003-12-30 15:42:48 -05:00
:p5-DBD-mysql-*:databases/p5-DBD-mysql
.endif
.if defined(PACKAGING) && ${SUBPACKAGE} == "-tests"
PKG_ARCH= *
.endif
DOCS= manual.html manual.ps manual_toc.html manual.txt
post-install:
2001-01-21 12:09:12 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mysql/Flags
cd ${WRKSRC}/Docs; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/mysql
${INSTALL_DATA} ${WRKSRC}/Docs/Flags/*.gif \
${PREFIX}/share/doc/mysql/Flags
cd ${PREFIX}/lib && ln -sf mysql/libmysqlclient.so.12.0 . && \
ln -sf mysql/libmysqlclient_r.so.12.0 .
2002-02-08 19:50:14 -05:00
do-regress:
@cd ${WRKSRC}/mysql-test && ./mysql-test-run --force
2002-02-08 19:50:14 -05:00
.include <bsd.port.mk>