# $FreeBSD: tags/RELEASE_10_4_0/devel/rubygem-rice/Makefile 441874 2017-05-27 20:33:22Z linimon $

PORTNAME=	rice
PORTVERSION=	2.1.1
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>
