2001-04-06 23:26:49 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2001/04/07 03:26:49 brad Exp $
|
1999-04-01 01:20:02 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.44 1999/03/04 21:27:58 dirk Exp $
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2001-03-24 17:07:08 -05:00
|
|
|
COMMENT= "multithreaded SQL database"
|
|
|
|
|
2001-03-28 17:12:18 -05:00
|
|
|
VERSION= 3.23.36
|
2001-03-16 16:14:42 -05:00
|
|
|
DISTNAME= mysql-${VERSION}
|
1999-03-30 01:42:47 -05:00
|
|
|
CATEGORIES= databases
|
2001-04-06 23:26:49 -04:00
|
|
|
NEED_VERSION= 1.384
|
2001-02-13 16:03:42 -05:00
|
|
|
MASTER_SITES= http://www.kernelnotes.de/MySQL/Downloads/%SUBDIR%/ \
|
|
|
|
http://www.mysql.net/Downloads/%SUBDIR%/ \
|
|
|
|
http://mysql.he.net/Downloads/%SUBDIR%/ \
|
2001-03-17 13:26:39 -05:00
|
|
|
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/%SUBDIR%/ \
|
2001-03-24 16:47:12 -05:00
|
|
|
ftp://ftp.shellhung.org/pub/Mirror/mysql/Downloads/%SUBDIR%/
|
2001-02-13 16:03:42 -05:00
|
|
|
MASTER_SITE_SUBDIR= MySQL-3.23
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2000-06-25 00:53:10 -04:00
|
|
|
HOMEPAGE= http://www.mysql.com/
|
|
|
|
|
2001-03-26 19:04:28 -05:00
|
|
|
LIB_DEPENDS= pthread.14::devel/pth
|
2001-03-11 19:10:26 -05:00
|
|
|
|
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
|
2001-03-16 16:14:42 -05:00
|
|
|
SUBST_VARS= DB_DIR VERSION
|
2000-08-15 09:24:00 -04:00
|
|
|
|
2000-06-25 00:53:10 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
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}" \
|
2001-01-21 12:09:12 -05:00
|
|
|
--with-libwrap \
|
|
|
|
--with-mysqld-user="mysql" \
|
|
|
|
--with-unix-socket-path="${DB_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 \
|
|
|
|
--without-berkeley-db
|
2001-03-26 19:04:28 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/pth" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib/pth"
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2001-01-21 12:09:12 -05:00
|
|
|
DOCS= manual.html manual.ps manual_toc.html manual.txt
|
|
|
|
|
2000-01-01 00:54:12 -05:00
|
|
|
pre-build:
|
|
|
|
@echo ""
|
|
|
|
@echo "*** WARNING: you may see an error such as"
|
|
|
|
@echo "*** virtual memory exhausted"
|
|
|
|
@echo "*** when building this package. If you do you must increase"
|
|
|
|
@echo "*** your limits. See the man page for your shell and look"
|
|
|
|
@echo "*** for the 'limit' or 'ulimit' command."
|
|
|
|
@echo ""
|
|
|
|
|
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
|
|
|
|
@sed -e s#@PREFIX@#${TRUEPREFIX}#g \
|
2001-03-24 17:07:08 -05:00
|
|
|
${FILESDIR}/startup.sh > ${WRKBUILD}/startup.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/startup.sh ${PREFIX}/lib/mysql
|
2001-01-21 12:09:12 -05:00
|
|
|
cd ${WRKSRC}/Docs; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/mysql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/Flags/*.gif \
|
|
|
|
${PREFIX}/share/doc/mysql/Flags
|
1999-03-30 01:42:47 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|