Files
ports/benchmarks/sysbench/Makefile
Rong-En Fan f40984f245 - Update to 0.4.8
- Unbreak

PR:		ports/104326
Submitted by:	rafan
Approved by:	portmgr (erwin), Gea-Suan Lin <gslin at gslin.org> (maintainer)
2006-10-12 14:59:01 +00:00

51 lines
1.0 KiB
Makefile

# New ports collection makefile for: sysbench
# Date created: 2005-12-11
# Whom: Gea-Suan Lin <gslin@ccca.nctu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= sysbench
PORTVERSION= 0.4.8
CATEGORIES= benchmarks databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gslin@gslin.org
COMMENT= A modular, cross-platform and multi-threaded benchmark tool
USE_AUTOTOOLS= libtool:15
OPTIONS= MYSQL "Enable MySQL support" on \
POSTGRESQL "Enable PostgreSQL support" off
.include <bsd.port.pre.mk>
.if defined(WITHOUT_MYSQL)
CONFIGURE_ARGS+= --with-mysql=no
.else
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
.endif
.if defined(WITH_POSTGRESQL)
USE_PGSQL= yes
DEFAULT_PGSQL_VER?= 80
IGNORE_WITH_PGSQL= 73 74
CONFIGURE_ARGS+= --with-pgsql
.else
CONFIGURE_ARGS+= --with-pgsql=no
.endif
post-configure:
@${REINPLACE_CMD} -e 's/^program_transform_name/#/' \
${WRKSRC}/scripts/Makefile ${WRKSRC}/sysbench/Makefile
.if defined(NOPORTDOCS)
post-install:
${RM} ${DOCSDIR}/manual.html
${RMDIR} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>