openbsd-ports/databases/mysql/Makefile

73 lines
2.1 KiB
Makefile
Raw Normal View History

2001-02-13 19:55:40 -05:00
# $OpenBSD: Makefile,v 1.34 2001/02/14 00:55:40 brad Exp $
# $FreeBSD: Makefile,v 1.44 1999/03/04 21:27:58 dirk Exp $
2001-02-13 16:03:42 -05:00
DISTNAME= mysql-3.23.33
CATEGORIES= databases
2001-01-21 12:09:12 -05:00
NEED_VERSION= 1.336
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%/ \
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/%SUBDIR%/
MASTER_SITE_SUBDIR= MySQL-3.23
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
SUBST_VARS= DB_DIR
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static \
--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" \
--without-perl \
--without-debug \
--without-readline \
--without-bench \
2001-01-21 12:09:12 -05:00
--without-mit-threads
FLAVORS= pth
FLAVOR?=
.if ${FLAVOR:L} == "pth"
LIB_DEPENDS= pthread.13::devel/pth
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.else
2001-01-21 12:09:12 -05:00
. if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "powerpc"
2001-02-13 19:55:40 -05:00
BROKEN= "pthreads are currently not working on the ${MACHINE_ARCH} architecture"
. endif
.endif
2001-01-21 12:09:12 -05:00
DOCS= manual.html manual.ps manual_toc.html manual.txt
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 ""
post-install:
2000-01-03 03:36:19 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mysql
2001-01-21 12:09:12 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mysql/Flags
@sed -e s#@PREFIX@#${TRUEPREFIX}#g \
${FILESDIR}/startup.sh > ${WRKDIR}/startup.sh
${INSTALL_SCRIPT} ${WRKDIR}/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
.include <bsd.port.mk>