openbsd-ports/lang/rubinius/Makefile
jeremy 1b09215e21 Enable llvm use by rubinius, now that llvm has been updated to 2.8.
This enables the JIT compiler, which provides dramatic speedups (~8x
for some simple tests).

OK @sthen
2011-01-13 00:21:03 +00:00

80 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2011/01/13 00:21:03 jeremy Exp $
SHARED_ONLY= Yes
COMMENT = Ruby virtual machine and core library
V= 1.2.0
DISTNAME = rubinius-${V}-20101221
PKGNAME = rubinius-$V
REVISION = 2
CATEGORIES = lang lang/ruby
HOMEPAGE = http://rubini.us/
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c crypto curses db gdbm m pthread readline ssl stdc++ \
${MODRUBY_WANTLIB}
MASTER_SITES = http://asset.rubini.us/
BUILD_DEPENDS = devel/bison \
devel/ruby-rake \
devel/libffi \
devel/llvm
LIB_DEPENDS = databases/gdbm \
databases/db/v4 \
${MODRUBY_LIB_DEPENDS}
MODULES = lang/ruby
USE_GMAKE = Yes
USE_LIBTOOL= Yes
RAKE_VER = 0.8.7
RAKE_COMPILER_VER = 0.6.0
RDOC_VER = 2.5.1
RUBY_DEBUG_VER = 0.10.47
SUBST_VARS= V RAKE_VER RAKE_COMPILER_VER RDOC_VER RUBY_DEBUG_VER
WRKDIST= ${WRKDIR}/rubinius-${V}
CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-DOPENSSL_NO_STATIC_ENGINE -I${LOCALBASE}/include" \
RELEASE=1
MAKE_ENV += CC="${CC}"
do-configure:
${SUBST_CMD} ${WRKSRC}/rakelib/vm.rake
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${RUBY} configure \
--prefix=${PREFIX}/lib/rubinius --skip-prebuilt --rake=${RAKE}
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} build
do-install:
cd ${WRKSRC} && FAKEROOT=${WRKINST} ${RAKE} install
ln -s ${TRUEPREFIX}/lib/rubinius/bin/rbx ${PREFIX}/bin/rbx
mkdir ${PREFIX}/lib/rubinius/gems/1.8/{,cache,doc,gems,specifications}
for dir in sitelibdir sitearchdir; do \
mkdir -p ${WRKINST}/`RBX_RUNTIME=${PREFIX}/lib/rubinius/runtime \
RBX_LIB=${PREFIX}/lib/rubinius/lib \
${PREFIX}/lib/rubinius/bin/rbx -rrbconfig -e \
"puts RbConfig::CONFIG['$$dir']"`; done
# Some failures and likely infinite loop in mspec ci
do-regress:
cd ${WRKSRC} && ${RAKE} vm:test
cd ${WRKSRC} && RUBY=${RUBY} ${RUBY} mspec/bin/mspec ci --background --agent
REGRESS_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
.include <bsd.port.mk>