aboutsummaryrefslogtreecommitdiffstats
path: root/devel/rubygem-rice/Makefile
blob: 7e981267dbe546bb5eabde12e0a1375b5bed95af (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
# $FreeBSD$

PORTNAME=   rice
PORTVERSION=    2.1.2
CATEGORIES= devel rubygems
MASTER_SITES=   RG

MAINTAINER= ruby@FreeBSD.org
COMMENT=    C++ interface to Rubys C API

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYING

BROKEN_armv6=       fails to configure: could not find ruby.h
BROKEN_powerpc64=   fails to configure: could not find ruby.h

USE_RUBY=   yes
USES=       gem
USE_AUTOTOOLS=  aclocal autoconf
INSTDIR=    ${PREFIX}/${GEM_LIB_DIR}

# Fixup path in mkmf-rice.rb so things that build using it can find -lrice.
post-install:
    ${REINPLACE_CMD} -e 's,${STAGEDIR}${INSTDIR},${INSTDIR},g' \
        ${STAGEDIR}${INSTDIR}/ruby/lib/mkmf-rice.rb

.include <bsd.port.mk>