blob: cd4155ab8bba6f626468d7892e683c862ee072de (
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
|
# $NetBSD: Makefile,v 1.11 1998/10/19 19:02:45 tsarna Exp $
#
# note: if updated, update shlib version number in patch-aa
DISTNAME= mysql-3.21.33
CATEGORIES= databases
MASTER_SITES= ftp://ftp.digex.net/pub/database/mysql/Downloads/MySQL-3.21/ \
ftp://ftp.netcasting.net/pub/mysql/Downloads/MySQL-3.21/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.tcx.se/
CONFLICTS= mysql-3.21.31 mysql-3.21.32a
NO_CDROM= "Restrictive license."
MYSQL_DATADIR?= /var/mysql
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--localstatedir=${MYSQL_DATADIR} \
--without-perl --without-debug
CONFIGURE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}"
USE_GMAKE= yes
USE_PERL5= yes
USE_LIBTOOL= yes
PLIST_SRC= ${WRKSRC}/.PLIST_SRC
INFO_FILES= mysql.info
pre-install:
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@${CP} ${PKGDIR}/PLIST-client ${PLIST_SRC}
.if (${MACHINE_ARCH} != "i386") && (${MACHINE_ARCH} != "alpha")
CONFIGURE_ARGS+=--without-server
pre-configure:
@${ECHO} '########## Client-only support! ##########'
@${ECHO} 'MySQL does not support pthreads on ${MACHINE_ARCH}, so only the client'
@${ECHO} 'support library and clients will be built.'
@${ECHO} '##########################################'
.else
post-install:
(cd ${WRKSRC}; ./scripts/mysql_install_db)
@${CAT} ${PKGDIR}/PLIST-server >>${PLIST_SRC}
.endif
.include "../../mk/bsd.pkg.mk"
|