1999-07-12 19:41:58 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 1999/07/12 17:41:58 bad Exp $
|
1999-05-07 01:37:00 +02:00
|
|
|
#
|
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
DISTNAME= mysql-3.22.22
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-server-/}
|
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ftp://ftp.mysql.com/pub/mysql/Downloads/MySQL-3.22/ \
|
1999-07-12 19:41:58 +02:00
|
|
|
ftp://ftp.netcasting.net/pub/mysql/Downloads/MySQL-3.22/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.22/
|
1999-05-07 01:37:00 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.mysql.com/
|
1999-05-07 01:37:00 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
DEPENDS= ${DISTNAME:S/-/-client-/}:../../databases/mysql-client
|
1999-05-07 01:37:00 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
NO_CDROM= "Restrictive license."
|
1999-05-07 01:37:00 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
MYSQL_DATADIR?= /var/mysql
|
1999-05-07 01:37:00 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR} \
|
|
|
|
--with-named-z-libs=z --with-named-curses=curses \
|
|
|
|
--without-perl --without-debug --without-bench \
|
|
|
|
--without-docs --with-low-memory
|
1999-05-07 01:37:00 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
CFLAGS+= -Dunix
|
1999-05-07 01:37:00 +02:00
|
|
|
|
|
|
|
# platforms on which included mit-pthreads is usable
|
1999-06-20 23:06:17 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
|
|
|
|
NetBSD-*-sparc SunOS-*-sparc
|
1999-05-07 01:37:00 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
USE_GMAKE=
|
|
|
|
USE_PERL5=
|
1999-05-07 01:37:00 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && for dir in dbug heap isam merge mysys strings; do \
|
|
|
|
${MV} $$dir/Makefile.in $$dir/Makefile.in.orig; \
|
|
|
|
${SED} -e '/^install-exec:/s/install-pkglibLIBRARIES//' $$dir/Makefile.in.orig >$$dir/Makefile.in; \
|
|
|
|
done
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@cd ${WRKSRC}/scripts && \
|
|
|
|
${MAKE_PROGRAM} safe_mysqld mysql_install_db && \
|
|
|
|
${INSTALL_SCRIPT} safe_mysqld mysql_install_db ${PREFIX}/bin/
|
|
|
|
${PREFIX}/bin/mysql_install_db --force
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|