2010-11-09 03:55:32 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.171 2010/11/09 08:55:32 robert Exp $
|
2009-07-27 11:19:15 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2004-03-10 15:28:07 -05:00
|
|
|
|
2007-08-08 17:33:51 -04:00
|
|
|
COMMENT-main= multithreaded SQL database (client)
|
|
|
|
COMMENT-server= multithreaded SQL database (server)
|
2009-07-27 11:19:15 -04:00
|
|
|
COMMENT-tests= multithreaded SQL database (regression test suite/benchmark)
|
2001-03-24 17:07:08 -05:00
|
|
|
|
2010-06-18 07:31:11 -04:00
|
|
|
VERSION= 5.1.48
|
2001-03-16 16:14:42 -05:00
|
|
|
DISTNAME= mysql-${VERSION}
|
2010-06-18 07:31:11 -04:00
|
|
|
PKGNAME-main= mysql-client-${VERSION}
|
|
|
|
PKGNAME-server= mysql-server-${VERSION}
|
2010-04-27 07:03:52 -04:00
|
|
|
PKGNAME-tests= mysql-tests-${VERSION}
|
1999-03-30 01:42:47 -05:00
|
|
|
CATEGORIES= databases
|
2010-11-09 03:55:32 -05:00
|
|
|
|
|
|
|
REVISION-server=0
|
|
|
|
|
2009-07-27 11:19:15 -04:00
|
|
|
V= MySQL-5.1
|
2009-03-19 18:51:01 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MYSQL:=Downloads/$V/}
|
2009-02-17 05:46:59 -05:00
|
|
|
|
2009-07-27 11:19:15 -04:00
|
|
|
SHARED_LIBS= mysqlclient_r 20.0 \
|
|
|
|
mysqlclient 20.0
|
2005-12-26 16:32:00 -05:00
|
|
|
|
2000-06-25 00:53:10 -04:00
|
|
|
HOMEPAGE= http://www.mysql.com/
|
|
|
|
|
2007-09-01 16:11:21 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2008-08-24 04:40:02 -04:00
|
|
|
# GPLv2
|
2000-02-16 14:01:20 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-07-27 11:19:15 -04:00
|
|
|
WANTLIB= c m pthread
|
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
|
2008-09-17 09:54:54 -04:00
|
|
|
SUBST_VARS= DB_DIR SOCKET_DIR VERSION
|
2010-10-18 13:06:05 -04:00
|
|
|
USE_GROFF = Yes
|
2000-08-15 09:24:00 -04:00
|
|
|
|
2006-10-22 23:18:09 -04:00
|
|
|
# XXX gcc bug, gcc/3.3.5
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CFLAGS+= -mbwx
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
|
2005-12-26 16:32:00 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2002-07-11 11:42:17 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2010-04-02 20:21:14 -04:00
|
|
|
AUTOCONF_VERSION= 2.63
|
2000-02-16 14:01:20 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2009-08-05 10:24:33 -04:00
|
|
|
CONFIGURE_ARGS+= --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" \
|
2009-07-27 11:19:15 -04:00
|
|
|
--with-plugins=max-no-ndb \
|
|
|
|
--with-ssl=/usr \
|
2002-02-18 22:58:57 -05:00
|
|
|
--with-unix-socket-path="${SOCKET_DIR}/mysql.sock" \
|
2002-12-14 18:56:43 -05:00
|
|
|
--without-docs \
|
|
|
|
--without-readline
|
2003-12-28 17:17:50 -05:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2003-12-30 00:57:30 -05:00
|
|
|
|
2010-06-07 17:52:34 -04:00
|
|
|
.if ${COMPILER_VERSION:L:Mgcc[34]*}
|
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
|
|
|
|
2006-11-26 06:08:32 -05:00
|
|
|
MULTI_PACKAGES= -main -server -tests
|
2001-06-02 16:18:43 -04:00
|
|
|
|
2009-07-27 11:19:15 -04:00
|
|
|
RUN_DEPENDS-server= :mysql-client->=5.1,<5.2:${BASE_PKGPATH} \
|
2006-11-26 06:08:32 -05:00
|
|
|
:p5-DBD-mysql-*:databases/p5-DBD-mysql
|
2010-11-06 18:50:02 -04:00
|
|
|
LIB_DEPENDS-server= :mysql-client->=5.1,<5.2:${BASE_PKGPATH}
|
2004-02-04 02:39:18 -05:00
|
|
|
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB-server= ${WANTLIB} crypto ssl stdc++ wrap z \
|
|
|
|
mysqlclient
|
2009-07-27 11:19:15 -04:00
|
|
|
WANTLIB-main= ${WANTLIB} crypto ncurses readline ssl z
|
|
|
|
WANTLIB-tests= ${WANTLIB}
|
2009-05-29 04:42:06 -04:00
|
|
|
|
1999-03-30 01:42:47 -05:00
|
|
|
post-install:
|
2008-08-24 04:40:02 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mysql
|
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} .
|
2008-08-24 04:40:02 -04:00
|
|
|
cp ${FILESDIR}/README.OpenBSD ${WRKBUILD}/README.OpenBSD
|
|
|
|
${SUBST_CMD} ${WRKBUILD}/README.OpenBSD
|
2007-08-08 17:33:51 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD ${PREFIX}/share/doc/mysql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
|
2001-12-21 22:54:44 -05:00
|
|
|
|
2002-02-08 19:50:14 -05:00
|
|
|
do-regress:
|
2009-07-27 11:19:15 -04: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>
|