openbsd-ports/databases/mysql/Makefile

113 lines
3.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.80 2002/07/11 15:42:17 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)"
# 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
WORKING_ARCHS= i386 powerpc sparc
2002-02-20 13:03:32 -05:00
.for _arch in ${MACHINE_ARCH}
. if empty(WORKING_ARCHS:M${_arch})
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-17 22:25:33 -05:00
VERSION= 3.23.49
DISTNAME= mysql-${VERSION}
FULLPKGNAME= mysql-client-${VERSION}
PKGNAME-server= mysql-server-${VERSION}
2001-07-22 16:35:29 -04:00
FULLPKGNAME-tests= mysql-tests-${VERSION}
CATEGORIES= databases
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/
HOMEPAGE= http://www.mysql.com/
2000-09-24 03:03:59 -04:00
MAINTAINER= Brad Smith <brad@openbsd.org>
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
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/mit-pthreads/config
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static \
--localstatedir="${DB_DIR}" \
--with-innodb \
--with-comment='OpenBSD port: ${FULLPKGNAME-server}' \
--with-libwrap="/usr" \
2001-01-21 12:09:12 -05:00
--with-mysqld-user="mysql" \
--with-unix-socket-path="${SOCKET_DIR}/mysql.sock" \
--without-perl \
--without-debug \
--without-readline \
--without-bench \
--without-mit-threads \
--without-gemini
CONFIGURE_ENV= HOSTNAME="/bin/hostname -s"
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-*
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
# 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
.include <bsd.port.mk>