summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-mysql/Makefile
blob: 8cf0145126782a5f099918697b4ab1f75a5b4d9a (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
# $NetBSD: Makefile,v 1.14 2001/10/18 15:20:07 veego Exp $
#

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

MAINTAINER=		bad@netbsd.org
HOMEPAGE=		http://www.mysql.com/
COMMENT=		perl DBI/DBD driver for MySQL databases

DEPENDS+=		mysql-client>=3.23.35:../../databases/mysql-client
DEPENDS+=		p5-DBI>=1.13:../../databases/p5-DBI
DEPENDS+=		{p5-Data-Dumper>=2.101,perl>=5.6.1nb2}:../../lang/perl5
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"