1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/databases/p5-Mysql/Makefile
Dirk Froemberg 35ba9be9a5 Change the dependencies to MySQL:
The default is mysql322 now, but take mysql321 if it is installed.

(mysql321 installs a static libmysqlclient.a only, mysql322 installs a
static and shared version of the library. Note that the build dependency
to mysql321 is a no op actually. It is in there to improve understanding(?).)
1999-01-14 21:22:29 +00:00

38 lines
1.2 KiB
Makefile

# New ports collection makefile for: p5-Mysql-modules
# Version required: 1.2003
# Date created: September 29th 1996
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $Id: Makefile,v 1.14 1999/01/08 20:33:45 billf Exp $
#
DISTNAME= Msql-Mysql-modules-1.2003
PKGNAME= p5-Mysql-modules-1.2003
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBD
MAINTAINER= vanilla@FreeBSD.ORG
BUILD_DEPENDS= ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/Data/ShowTable.pm:${PORTSDIR}/devel/p5-Data-ShowTable \
${PREFIX}/lib/perl5/site_perl/${PERL_VER}/i386-freebsd/DBI.pm:${PORTSDIR}/databases/p5-DBI
.if !exists(${PREFIX}/lib/mysql/libmysqlclient.a) || exists(${PREFIX}/lib/mysql/libmysqlclient.so)
LIB_DEPENDS= mysqlclient.5:${PORTSDIR}/databases/mysql322
.else
BUILD_DEPENDS+= ${PREFIX}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql321
.endif
CONFIGURE_ENV= PREFIX=${PREFIX} MYSQL_HOME=${PREFIX} IN_MYSQL_DISTRIBUTION=1
USE_PERL5= YES
MAN1= dbimon.1
MAN3= Bundle::Mysql.3 \
DBD::mysql.3 \
Mysql.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
do-configure:
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${PERL5} Makefile.PL
.include <bsd.port.mk>