# New ports collection makefile for:	ruby-interbase
# Date created:		8 Nov 2001
# Whom:			Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD: ports/databases/ruby-interbase/Makefile,v 1.6 2003/03/07 05:58:31 ade Exp $
#

PORTNAME=	interbase
PORTVERSION=	0.05
CATEGORIES=	databases ruby
MASTER_SITES=	http://www.rowlandresearch.com/ruby/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=	ruby

MAINTAINER=	skv@FreeBSD.org
COMMENT=	Ruby interface to Interbase library

LIB_DEPENDS=	gds:${PORTSDIR}/databases/firebird

WRKSRC=		${WRKDIR}/${PORTNAME}

USE_RUBY=	yes
USE_RUBY_EXTCONF=	yes

CONFIGURE_ARGS=	--with-interbase-include-dir="${LOCALBASE}/firebird/include" \
		--with-interbase-lib-dir="${LOCALBASE}/firebird/lib"
INSTALL_TARGET=	site-install

DOCS_EN=	README
DOCS_JA=	README.ja

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif

.include <bsd.port.mk>
