openbsd-ports/databases/mysql/Makefile

93 lines
2.4 KiB
Makefile
Raw Normal View History

2012-03-15 20:47:54 -04:00
# $OpenBSD: Makefile,v 1.201 2012/03/16 00:47:54 william Exp $
SHARED_ONLY= Yes
COMMENT-main= multithreaded SQL database (client)
COMMENT-server= multithreaded SQL database (server)
COMMENT-tests= multithreaded SQL database (regression test suite/benchmark)
VERSION= 5.1.60
DISTNAME= mysql-${VERSION}
PKGNAME-main= mysql-client-${VERSION}
PKGNAME-server= mysql-server-${VERSION}
2010-04-27 07:03:52 -04:00
PKGNAME-tests= mysql-tests-${VERSION}
REVISION-main= 0
2012-03-15 20:47:54 -04:00
REVISION-server=0
CATEGORIES= databases
V= MySQL-5.1
MASTER_SITES= ${MASTER_SITE_MYSQL:=Downloads/$V/}
SHARED_LIBS= mysqlclient_r 21.0 \
mysqlclient 21.0
2005-12-26 16:32:00 -05:00
HOMEPAGE= http://www.mysql.com/
MAINTAINER= Brad Smith <brad@comstyle.com>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m pthread
2000-02-14 17:32:08 -05:00
DB_DIR?= /var/mysql
SOCKET_DIR= /var/run/mysql
SUBST_VARS= DB_DIR SOCKET_DIR VERSION
2011-11-11 06:37:08 -05:00
MULTI_PACKAGES= -main -server -tests
# Suggested flags for the C compiler, needed for
# high load servers otherwise MySQL will crash.
CXX= ${CC}
CXXFLAGS= ${CFLAGS} -felide-constructors -fno-exceptions -fno-rtti
VMEM_WARNING= Yes
2005-12-26 16:32:00 -05:00
USE_LIBTOOL= Yes
2010-11-10 16:03:03 -05:00
USE_GROFF= Yes
CONFIGURE_STYLE= autoconf
2010-04-02 20:21:14 -04:00
AUTOCONF_VERSION= 2.63
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --localstatedir="${DB_DIR}" \
2006-01-05 19:13:26 -05:00
--with-big-tables \
--with-comment='OpenBSD port: ${FULLPKGNAME-server}' \
--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" \
--with-plugins=max-no-ndb \
--with-ssl=/usr \
--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.port.arch.mk>
2011-11-11 06:37:08 -05:00
.if ${PROPERTIES:Mgcc[34]}
2004-01-06 09:13:03 -05:00
CONFIGURE_ARGS+= --with-client-ldflags=-lsupc++ \
--with-mysqld-ldflags=-lsupc++
2003-12-28 17:17:50 -05:00
.endif
. if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+= --enable-assembler
.endif
RUN_DEPENDS-server= ${BASE_PKGPATH}>=5.1,<5.2 \
databases/p5-DBD-mysql
LIB_DEPENDS-server= ${BASE_PKGPATH}>=5.1,<5.2
WANTLIB-server= ${WANTLIB} crypto mysqlclient ssl wrap z
2010-11-10 16:03:03 -05:00
WANTLIB-main= ${WANTLIB} crypto ncursesw readline ssl z
WANTLIB-tests= ${WANTLIB}
2009-05-29 04:42:06 -04: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} .
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
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>