mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
c88bfc265f
Reported by: remko
65 lines
1.4 KiB
Makefile
65 lines
1.4 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.5.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= databases ruby
|
|
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
PKGNAMESUFFIX= ${WITH_BDB_VER}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= Ruby interface to Sleepycat's Berkeley DB revision 2 or later
|
|
|
|
USE_BDB= YES
|
|
|
|
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}[2-4]*
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
USE_RUBY_RDOC= yes
|
|
|
|
CONFIGURE_ARGS= --with-db-include=${BDB_INCLUDE_DIR} \
|
|
--with-db-lib=${BDB_LIB_DIR} \
|
|
--with-db-version=${BDB_LIB_NAME:S/^db//}
|
|
INSTALL_TARGET= site-install
|
|
|
|
DOCS= Changes \
|
|
README.en \
|
|
bdb.html \
|
|
bdb.rd \
|
|
docs/*.html \
|
|
docs/*.rd \
|
|
docs/doc
|
|
|
|
post-build:
|
|
.if !defined(NOPORTDOCS)
|
|
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
DOCSDIR= ${RUBY_MODDOCDIR}
|
|
PORTDOCS= *
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
|
|
${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
|
.for f in ${DOCS}
|
|
${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
|
.endfor
|
|
.if ${RUBY_VER} >= 1.8
|
|
cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ri-site
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|