aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-cdb/Makefile
blob: 93064ed0fcdcbbb030a1153a3282ebae8ebadf98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:    Ruby-cdb
# Date created:     8 March 2001
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   cdb
PORTVERSION=    0.4
PORTREVISION=   1
CATEGORIES= databases ruby
MASTER_SITES=   http://www.fan.gr.jp/~kaz/ruby/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= ports@FreeBSD.org
COMMENT=    Ruby interface to D. J. Bernstein's cdb (constant database) library

BUILD_DEPENDS=  ${NONEXISTENT}:${CDB_PORTDIR}:build

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes

CDB_PORTDIR=    ${PORTSDIR}/databases/cdb

WRKSRC=     ${WRKDIR}/ruby-${PORTNAME}
INSTALL_TARGET= site-install

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
BROKEN=     "Does not build on amd64 (needs to link against shared libraries)"
.endif

post-extract:
    ${RM} -f ${WRKSRC}/cdb
    ${LN} -s `cd ${CDB_PORTDIR}; ${MAKE} -V WRKSRC` ${WRKSRC}/cdb

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/
    ${CP} -R ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
    ${MKDIR} ${RUBY_MODDOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
.endif

.include <bsd.port.post.mk>