freebsd-ports/databases/ruby-bdb/Makefile
Ade Lovett 76d6ac6122 BerkeleyDB cleanup - stage 2
Update databases/db3 to 3.3.11, and fix the few ports that need sorting
after the shlib version update, and a slight API change from 3.2.x->3.3.x
2002-08-22 19:13:46 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: Ruby-BDB
# Date created: 8 March 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= bdb
PORTVERSION= 0.3.3
PORTREVISION= 1
CATEGORIES= databases ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
.if defined(WITH_BDB4)
PKGNAMESUFFIX= 4
.endif
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
.if defined(WITH_BDB4)
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
.else
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
.endif
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
.if defined(WITH_BDB4)
CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db4" \
--with-db-version=4
.else
CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db3" \
--with-db-version=3
.endif
INSTALL_TARGET= site-install
DOCS= Changes README.en bdb.html bdb.rd docs/*
post-extract:
${RM} -f ${WRKSRC}/examples/*.bdb
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/
${CP} -R ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
.endfor
.endif
.include <bsd.port.mk>