summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-mysql/Makefile
blob: 18c5cfc27ec18398037b5f8f394aa1f6b14c4c57 (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
# $NetBSD: Makefile,v 1.7 2000/08/27 10:37:00 jlam Exp $
#

DISTNAME=		Msql-Mysql-modules-1.2214
PKGNAME=		p5-DBD-mysql-1.2214
CATEGORIES=		databases perl5
MASTER_SITES=		${MASTER_SITE_PERL_CPAN:=DBD/}

MAINTAINER=		bad@netbsd.org
HOMEPAGE=		http://www.mysql.com.org/

DEPENDS+=		mysql-client-3.22.32:../../databases/mysql-client
DEPENDS+=		p5-DBI-1.13:../../databases/p5-DBI
DEPENDS+=		p5-Data-Dumper>=2.101:../../devel/p5-Data-Dumper
DEPENDS+=		p5-Data-ShowTable-3.3:../../devel/p5-Data-ShowTable

USE_PERL5=		# defined
PERL5_PACKLIST=		${PERL5_SITEARCH}/auto/Msql-Mysql-modules/.packlist

MYSQL_HEADERDIR=	${PREFIX}/include/mysql
MYSQL_LIBDIR=		${PREFIX}/lib/mysql

MAKE_ENV+=		MYSQL_HEADERDIR="${MYSQL_HEADERDIR}"
MAKE_ENV+=		MYSQL_LIBDIR="${MYSQL_LIBDIR}"
MAKE_ENV+=		IN_MYSQL_DISTRIBUTION=1

MAKE_PARAMS+=		--noprompt
MAKE_PARAMS+=		--mysql-install
MAKE_PARAMS+=		--nomsql-install --nomsql1-install 
MAKE_PARAMS+=		--mysql-incdir=${MYSQL_HEADERDIR}
MAKE_PARAMS+=		--mysql-libdir=${MYSQL_LIBDIR}

do-configure:
	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL ${MAKE_PARAMS}

.include "../../mk/bsd.pkg.mk"