2000-08-12 03:26:51 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2000/08/12 01:26:52 jlam Exp $
|
1999-05-07 01:37:00 +02:00
|
|
|
#
|
|
|
|
|
2000-02-15 05:46:23 +01:00
|
|
|
DISTNAME= mysql-3.22.32
|
1999-05-24 22:39:35 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-/-server-/}
|
|
|
|
CATEGORIES= databases
|
2000-08-12 03:26:51 +02:00
|
|
|
MASTER_SITES= ftp://ftp.mysql.com/MySQL-3.22/ \
|
1999-07-12 19:41:58 +02:00
|
|
|
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-12-14 00:57:22 +01: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
|
|
|
|
1999-08-24 20:55:27 +02:00
|
|
|
EXTRACT_USING_PAX= yes
|
|
|
|
|
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 \
|
1999-08-03 22:30:41 +02:00
|
|
|
NetBSD-*-sparc NetBSD-*-m68k SunOS-*-sparc
|
1999-05-07 01:37:00 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
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
|
|
|
|
|
2000-02-15 05:46:23 +01:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC} && ${CP} config.h include/my_config.h
|
|
|
|
|
1999-05-07 01:37:00 +02:00
|
|
|
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"
|