summaryrefslogtreecommitdiffstats
path: root/databases/ruby-qdbm/Makefile
blob: ae78d7049dd34ccd5e07cacf0b5abfea747bf595 (plain)
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
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$

PORTNAME=	qdbm
PORTVERSION=	1.8.78
PORTREVISION=	4
CATEGORIES=	databases
MASTER_SITES=	http://fallabs.com/qdbm/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Ruby API for QDBM

LICENSE=	LGPL21
LICENSE_FILE=	${WRKDIR}/${PORTNAME}-${PORTVERSION}/COPYING

LIB_DEPENDS=	libqdbm.so:databases/qdbm

USES=		iconv shebangfix
SHEBANG_FILES=	curia/rbcrtest depot/rbdptest myrbdoc villa/rbvltest
USE_RUBY=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/ruby
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CONFIGURE_ENV=	ac_cv_lib_iconv_main=yes
MAKE_ENV=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
		LOCALBASE="${LOCALBASE}"
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

post-configure:
	cd ${WRKSRC} && ${SETENV} RB_USER_INSTALL=yes ${MAKE_ENV} \
	    ${MAKE} configure

post-install:
	${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/mod_depot.so \
	    ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/mod_curia.so \
	    ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/mod_villa.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud