blob: e9f7a634a3790c06a13e14f80e218759fbb8b882 (
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
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.15 2001/01/10 06:03:13 briggs 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-libs="-lcurses -ltermcap" \
--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 \
NetBSD-*-powerpc
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"
|