2002-07-11 11:42:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.80 2002/07/11 15:42:17 brad Exp $
|
1999-04-01 01:20:02 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.44 1999/03/04 21:27:58 dirk Exp $
|
2001-08-29 22:10:40 -04:00
|
|
|
# Uses pthreads
|
1999-03-30 01:42:47 -05:00
|
|
|
|
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
|
|
|
|
2002-02-05 19:48:15 -05:00
|
|
|
# More architectures need testing of MySQL+native threads
|
2002-05-19 23:26:27 -04:00
|
|
|
# alpha, m68k, sparc64 - does not work
|
|
|
|
# hppa, m88k, vax - untested
|
2002-05-01 23:04:14 -04:00
|
|
|
WORKING_ARCHS= i386 powerpc sparc
|
2002-02-20 13:03:32 -05:00
|
|
|
|
|
|
|
.for _arch in ${MACHINE_ARCH}
|
|
|
|
. if empty(WORKING_ARCHS:M${_arch})
|
2002-02-05 19:48:15 -05:00
|
|
|
BROKEN= "Support for ${MACHINE_ARCH} threads is currently broken and/or untested with MySQL"
|
2002-02-20 13:03:32 -05:00
|
|
|
. endif
|
|
|
|
.endfor
|
2002-02-05 19:48:15 -05:00
|
|
|
|
2002-02-17 22:25:33 -05:00
|
|
|
VERSION= 3.23.49
|
2001-03-16 16:14:42 -05:00
|
|
|
DISTNAME= mysql-${VERSION}
|
2001-06-02 16:18:43 -04:00
|
|
|
FULLPKGNAME= mysql-client-${VERSION}
|
2001-08-12 18:48:37 -04:00
|
|
|
PKGNAME-server= mysql-server-${VERSION}
|
2001-07-22 16:35:29 -04:00
|
|
|
FULLPKGNAME-tests= mysql-tests-${VERSION}
|
1999-03-30 01:42:47 -05:00
|
|
|
CATEGORIES= databases
|
2001-12-21 22:54:44 -05:00
|
|
|
NEED_VERSION= 1.500
|
2002-05-13 14:50:36 -04:00
|
|
|
V= MySQL-3.23
|
|
|
|
MASTER_SITES= ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/$V/ \
|
|
|
|
ftp://ftp.shellhung.org/pub/Mirror/mysql/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
|
|
|
|
2000-02-16 14:01:20 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
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
|
|
|
|
2001-12-21 22:54:44 -05:00
|
|
|
# Suggested flags to the C++ compiler, needed for
|
|
|
|
# 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
|
|
|
|
|
2002-07-11 11:42:17 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2001-12-21 22:54:44 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/mit-pthreads/config
|
2000-02-16 14:01:20 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --enable-static \
|
2000-08-15 09:24:00 -04:00
|
|
|
--localstatedir="${DB_DIR}" \
|
2002-01-06 02:06:25 -05:00
|
|
|
--with-innodb \
|
|
|
|
--with-comment='OpenBSD port: ${FULLPKGNAME-server}' \
|
2001-06-02 16:18:43 -04:00
|
|
|
--with-libwrap="/usr" \
|
2001-01-21 12:09:12 -05:00
|
|
|
--with-mysqld-user="mysql" \
|
2002-02-18 22:58:57 -05:00
|
|
|
--with-unix-socket-path="${SOCKET_DIR}/mysql.sock" \
|
2000-02-16 14:01:20 -05:00
|
|
|
--without-perl \
|
|
|
|
--without-debug \
|
|
|
|
--without-readline \
|
|
|
|
--without-bench \
|
2001-04-06 23:26:49 -04:00
|
|
|
--without-mit-threads \
|
2001-04-07 00:09:53 -04:00
|
|
|
--without-gemini
|
2002-07-11 11:42:17 -04:00
|
|
|
CONFIGURE_ENV= HOSTNAME="/bin/hostname -s"
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2001-10-05 23:55:34 -04:00
|
|
|
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.5-ltconfig \
|
|
|
|
${PORTSDIR}/infrastructure/patches/patch-lt1.3.5-ltmain_sh \
|
|
|
|
patch-*
|
|
|
|
|
2002-01-06 02:06:25 -05:00
|
|
|
FLAVORS= bdb
|
2001-04-13 14:15:46 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2001-07-22 16:35:29 -04:00
|
|
|
MULTI_PACKAGES= -server -tests
|
2001-06-02 16:18:43 -04:00
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2002-01-06 02:06:25 -05:00
|
|
|
.if ${FLAVOR:L:Mbdb}
|
|
|
|
. if ${MACHINE_ARCH} != "i386"
|
2002-03-19 14:11:39 -05:00
|
|
|
BROKEN= "The BerkeleyDB transaction support has not been tested on your architecture yet"
|
2002-01-06 02:06:25 -05:00
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --with-berkeley-db
|
|
|
|
. endif
|
2001-04-13 14:15:46 -04:00
|
|
|
.else
|
2002-01-06 02:06:25 -05:00
|
|
|
CONFIGURE_ARGS+= --without-berkeley-db
|
2001-06-02 16:18:43 -04:00
|
|
|
.endif
|
|
|
|
|
2001-12-21 22:54:44 -05:00
|
|
|
.if ${SUBPACKAGE} == "-server"
|
2002-01-06 02:06:25 -05:00
|
|
|
RUN_DEPENDS= :mysql-client-3.23.*:databases/mysql \
|
2002-02-09 22:49:53 -05:00
|
|
|
:p5-DBD-Msql-Mysql-*:databases/p5-DBD-Msql-Mysql
|
2001-04-13 14:15:46 -04:00
|
|
|
.endif
|
|
|
|
|
2001-11-11 08:57:32 -05:00
|
|
|
VMEM_WARNING= Yes
|
2000-01-01 00:54:12 -05:00
|
|
|
|
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:
|
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
|
2001-12-21 22:54:44 -05:00
|
|
|
@if [ -f ${PREFIX}/lib/mysql/libmysqlclient.so.10.0 ]; then \
|
|
|
|
cd ${PREFIX}/lib && ln -sf mysql/libmysqlclient.so.10.0 \
|
|
|
|
libmysqlclient.so.10.0 ;\
|
|
|
|
fi
|
|
|
|
|
2002-02-08 19:50:14 -05:00
|
|
|
# Don't try to run the join test. It always fails
|
|
|
|
# though MySQL seems to work just fine otherwise.
|
|
|
|
do-regress:
|
|
|
|
@cd ${WRKSRC}/mysql-test && ./mysql-test-run --skip-test=join
|
|
|
|
|
1999-03-30 01:42:47 -05:00
|
|
|
.include <bsd.port.mk>
|