2006-01-05 19:13:26 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.114 2006/01/06 00:13:26 brad Exp $
|
2001-08-29 22:10:40 -04:00
|
|
|
# Uses pthreads
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2004-03-30 23:06:20 -05:00
|
|
|
.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "m88k"
|
2004-03-10 15:28:07 -05:00
|
|
|
BROKEN= "gen_lex_hash hangs"
|
|
|
|
.endif
|
|
|
|
|
2001-06-02 16:18:43 -04:00
|
|
|
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)"
|
2001-03-24 17:07:08 -05:00
|
|
|
|
2006-01-05 19:13:26 -05:00
|
|
|
VERSION= 5.0.18
|
2001-03-16 16:14:42 -05:00
|
|
|
DISTNAME= mysql-${VERSION}
|
2006-01-05 19:13:26 -05:00
|
|
|
FULLPKGNAME= mysql-client-${VERSION}
|
2005-12-11 23:55:43 -05:00
|
|
|
PKGNAME-server= mysql-server-${VERSION}
|
|
|
|
FULLPKGNAME-tests= mysql-tests-${VERSION}
|
1999-03-30 01:42:47 -05:00
|
|
|
CATEGORIES= databases
|
2006-01-05 19:13:26 -05:00
|
|
|
V= MySQL-5.0
|
|
|
|
SHARED_LIBS= mysqlclient 15.0 \
|
|
|
|
mysqlclient_r 15.0
|
2005-12-26 16:32:00 -05:00
|
|
|
|
2003-12-30 00:57:30 -05:00
|
|
|
MASTER_SITES= http://mysql.mirrors.pair.com/Downloads/$V/
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2000-06-25 00:53:10 -04:00
|
|
|
HOMEPAGE= http://www.mysql.com/
|
|
|
|
|
2000-09-24 03:03:59 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2002-12-14 18:56:43 -05:00
|
|
|
# GPL
|
2000-02-16 14:01:20 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-01-25 11:01:07 -05:00
|
|
|
WANTLIB= c crypto m pthread ssl z
|
2000-02-14 17:32:08 -05:00
|
|
|
|
2000-08-15 09:24:00 -04:00
|
|
|
DB_DIR?= /var/mysql
|
2002-02-18 22:58:57 -05:00
|
|
|
SOCKET_DIR= /var/run/mysql
|
|
|
|
SUBST_VARS= DB_DIR SOCKET_DIR VERSION
|
2000-08-15 09:24:00 -04:00
|
|
|
|
2003-12-30 00:57:30 -05:00
|
|
|
# Suggested flags for the C compiler, needed for
|
2001-12-21 22:54:44 -05:00
|
|
|
# high load servers otherwise MySQL will crash.
|
2002-01-06 02:06:25 -05:00
|
|
|
CXX= ${CC}
|
2001-12-21 22:54:44 -05:00
|
|
|
CXXFLAGS= ${CFLAGS} -felide-constructors -fno-exceptions -fno-rtti
|
|
|
|
|
2003-12-30 00:57:30 -05:00
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
2002-07-11 11:42:17 -04:00
|
|
|
USE_GMAKE= Yes
|
2005-12-26 16:32:00 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2002-07-11 11:42:17 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2005-01-13 20:42:58 -05:00
|
|
|
AUTOCONF_VERSION= 2.59
|
2000-02-16 14:01:20 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2003-12-30 00:57:30 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-thread-safe-client \
|
2000-08-15 09:24:00 -04:00
|
|
|
--localstatedir="${DB_DIR}" \
|
2006-01-05 19:13:26 -05:00
|
|
|
--with-big-tables \
|
2002-01-06 02:06:25 -05:00
|
|
|
--with-comment='OpenBSD port: ${FULLPKGNAME-server}' \
|
2003-12-30 00:57:30 -05:00
|
|
|
--with-libwrap \
|
2005-12-11 23:55:43 -05:00
|
|
|
--with-low-memory \
|
2003-08-26 20:14:49 -04:00
|
|
|
--with-mysqld-user="_mysql" \
|
2003-12-30 00:57:30 -05:00
|
|
|
--with-openssl \
|
2002-02-18 22:58:57 -05:00
|
|
|
--with-unix-socket-path="${SOCKET_DIR}/mysql.sock" \
|
2003-12-30 00:57:30 -05:00
|
|
|
--with-vio \
|
2000-02-16 14:01:20 -05:00
|
|
|
--without-bench \
|
2002-12-14 18:56:43 -05:00
|
|
|
--without-debug \
|
|
|
|
--without-docs \
|
2003-12-30 00:57:30 -05:00
|
|
|
--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-30 00:57:30 -05:00
|
|
|
|
2003-12-28 17:17:50 -05:00
|
|
|
USE_GCC3?= No
|
2003-12-30 00:57:30 -05:00
|
|
|
|
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++ \
|
2003-12-30 00:57:30 -05:00
|
|
|
--with-mysqld-ldflags=-lsupc++
|
2003-12-28 17:17:50 -05:00
|
|
|
.endif
|
|
|
|
|
2003-12-30 00:57:30 -05:00
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
|
|
CONFIGURE_ARGS+= --enable-assembler
|
|
|
|
.endif
|
2001-04-13 14:15:46 -04:00
|
|
|
|
2001-07-22 16:35:29 -04:00
|
|
|
MULTI_PACKAGES= -server -tests
|
2001-06-02 16:18:43 -04:00
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2001-12-21 22:54:44 -05:00
|
|
|
.if ${SUBPACKAGE} == "-server"
|
2006-01-05 19:13:26 -05:00
|
|
|
RUN_DEPENDS= :mysql-client-5.0.*:databases/mysql \
|
2003-12-30 15:42:48 -05:00
|
|
|
:p5-DBD-mysql-*:databases/p5-DBD-mysql
|
2005-01-25 11:01:07 -05:00
|
|
|
WANTLIB+= wrap
|
|
|
|
.elif empty(SUBPACKAGE)
|
|
|
|
WANTLIB+= ncurses readline
|
2001-04-13 14:15:46 -04:00
|
|
|
.endif
|
|
|
|
|
2004-02-04 02:39:18 -05:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-tests"
|
|
|
|
PKG_ARCH= *
|
2005-01-25 11:01:07 -05:00
|
|
|
WANTLIB=
|
2004-02-04 02:39:18 -05:00
|
|
|
.endif
|
|
|
|
|
2001-12-21 22:54:44 -05:00
|
|
|
DOCS= manual.html manual.ps manual_toc.html manual.txt
|
|
|
|
|
1999-03-30 01:42:47 -05:00
|
|
|
post-install:
|
2005-12-26 16:32:00 -05:00
|
|
|
cd ${PREFIX}/lib && \
|
|
|
|
ln -sf mysql/libmysqlclient.so.${LIBmysqlclient_VERSION} . && \
|
|
|
|
ln -sf mysql/libmysqlclient_r.so.${LIBmysqlclient_r_VERSION} .
|
2001-12-21 22:54:44 -05:00
|
|
|
|
2002-02-08 19:50:14 -05:00
|
|
|
do-regress:
|
2002-11-13 22:51:45 -05:00
|
|
|
@cd ${WRKSRC}/mysql-test && ./mysql-test-run --force
|
2002-02-08 19:50:14 -05:00
|
|
|
|
1999-03-30 01:42:47 -05:00
|
|
|
.include <bsd.port.mk>
|