blob: 044ba32cce0317bfa4c999309157a52af05ec34d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.10 2000/02/15 04:46:23 bad Exp $
#
DISTNAME= mysql-3.22.32
PKGNAME= ${DISTNAME:S/-/-server-/}
CATEGORIES= databases
MASTER_SITES= ftp://ftp.mysql.com/pub/mysql/Downloads/MySQL-3.22/ \
ftp://ftp.netcasting.net/pub/mysql/Downloads/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/
DEPENDS= ${DISTNAME:S/-/-client-/}:../../databases/mysql-client
NO_CDROM= "Restrictive license."
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
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"
|