# $NetBSD: Makefile,v 1.13 2000/08/23 14:46:52 wiz Exp $ # DISTNAME= mysql-3.22.32 PKGNAME= ${DISTNAME:S/-/-server-/} CATEGORIES= databases MASTER_SITES= ftp://ftp.mysql.com/MySQL-3.22/ \ ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.22/ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.mysql.com/ BUILD_DEPENDS= autoconf:../../devel/autoconf DEPENDS= ${DISTNAME:S/-/-client-/}:../../databases/mysql-client RESTRICTED= "Restrictive license." NO_SRC_ON_CDROM= ${RESTRICTED} NO_BIN_ON_CDROM= ${RESTRICTED} EXTRACT_USING_PAX= yes .include "../../mk/bsd.prefs.mk" MYSQL_DATADIR?= /var/mysql 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 CFLAGS+= -Dunix # platforms on which included mit-pthreads is usable ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \ NetBSD-*-sparc NetBSD-*-m68k SunOS-*-sparc USE_PERL5= 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 pre-configure: @cd ${WRKSRC}/mit-pthreads/config && autoconf post-configure: @cd ${WRKSRC} && ${CP} config.h include/my_config.h 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"