openbsd-ports/databases/mysql/Makefile

97 lines
2.5 KiB
Makefile
Raw Normal View History

2003-08-26 20:14:49 -04:00
# $OpenBSD: Makefile,v 1.86 2003/08/27 00:14:49 brad Exp $
# $FreeBSD: Makefile,v 1.44 1999/03/04 21:27:58 dirk Exp $
# Uses pthreads
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)"
VERSION= 3.23.57
DISTNAME= mysql-${VERSION}
FULLPKGNAME= mysql-client-${VERSION}
2003-08-26 20:14:49 -04:00
PKGNAME-server= mysql-server-${VERSION}p1
FULLPKGNAME-tests= mysql-tests-${VERSION}
CATEGORIES= databases
2002-05-13 14:50:36 -04:00
V= MySQL-3.23
MASTER_SITES= http://mysql.secsup.org/Downloads/$V/ \
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
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 to the C++ compiler, needed for
# high load servers otherwise MySQL will crash.
CXX= ${CC}
CXXFLAGS= ${CFLAGS} -felide-constructors -fno-exceptions -fno-rtti
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf
2002-12-14 18:56:43 -05:00
AUTOCONF_NEW= Yes
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static \
--localstatedir="${DB_DIR}" \
--with-comment='OpenBSD port: ${FULLPKGNAME-server}' \
2002-12-14 18:56:43 -05:00
--with-innodb \
--with-libwrap="/usr" \
2003-08-26 20:14:49 -04:00
--with-mysqld-user="_mysql" \
--with-unix-socket-path="${SOCKET_DIR}/mysql.sock" \
--without-bench \
2002-12-14 18:56:43 -05:00
--without-debug \
--without-docs \
--without-gemini \
--without-mit-threads \
2002-12-14 18:56:43 -05:00
--without-perl \
--without-readline
CONFIGURE_ENV= HOSTNAME="/bin/hostname -s"
FLAVORS= bdb
FLAVOR?=
2001-07-22 16:35:29 -04:00
MULTI_PACKAGES= -server -tests
SUBPACKAGE?=
.if ${FLAVOR:L:Mbdb}
. if ${MACHINE_ARCH} != "i386"
BROKEN= "The BerkeleyDB transaction support has not been tested on your architecture yet"
. else
CONFIGURE_ARGS+= --with-berkeley-db
. endif
.else
CONFIGURE_ARGS+= --without-berkeley-db
.endif
.if ${SUBPACKAGE} == "-server"
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
.endif
VMEM_WARNING= Yes
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
@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
do-regress:
@cd ${WRKSRC}/mysql-test && ./mysql-test-run --force
2002-02-08 19:50:14 -05:00
.include <bsd.port.mk>