1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/lang/rubinius/Makefile
Stanislav Sedov 422bce3414 - Return my ports back to the pool. I was unable to make any fixes to
my ports in the past 3 weeks while ports were broken on any 10.x
  machines, which means I'm unable to maintain them.  So let people know
  that there's no available support for them until things are back to
  normal (which also means that anyone with spare time will be able
  to fix them without getting approval).
2011-10-24 03:33:20 +00:00

119 lines
3.2 KiB
Makefile

# New ports collection makefile for: rubinius
# Date created: 10/10/2010
# Whom: stas
#
# $FreeBSD$
#
PORTNAME= rubinius
PORTVERSION= 1.2.4
PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/ \
http://asset.rubini.us/prebuilt/:llvm
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${LLVMDIST}:llvm
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= LLVM based ruby language implementation
HAS_CONFIGURE= yes
#execinfo is broken for unknow reason
CONFIGURE_ARGS= --without-execinfo \
-P "${PREFIX}" \
-I "${PREFIX}/include/rubinius" \
-L "${PREFIX}/lib/ruby/rubinius" \
-G "${PREFIX}/lib/ruby/gems/rubinius" \
-B "${PREFIX}/bin" \
-M "${PREFIX}/man" \
--sitedir "${PREFIX}/lib/ruby/site_ruby/rubinius" \
--vendordir "${PREFIX}/lib/ruby/vendor_ruby/rubinius"
LLVMDIST= llvm-2.8.tgz
USE_RUBY= yes
RUBY_NO_RUN_DEPENDS= yes
USE_RAKE= yes
USE_PERL5_BUILD= yes
USE_GMAKE= yes
MAKE_JOBS_UNSAFE= yes
OPTIONS= GDBM "Enable GDBM support" on
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 701000
MANUAL_PACKAGE_BUILD= hangs on pointyhat
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
.if !defined(WITHOUT_GDBM) || exists(${LOCALBASE}/include/gdbm.h)
LIB_DEPENDS= gdbm.4:${PORTSDIR}/databases/gdbm
PLIST_SUB+= GDBM=""
.else
PLIST_SUB+= GDBM="@comment "
.endif
post-extract:
@${MKDIR} ${WRKSRC}/vm/external_libs/prebuilt/
@${CP} ${DISTDIR}/${LLVMDIST} ${WRKSRC}/vm/external_libs/prebuilt/${LLVMDIST}
do-build:
@(cd ${WRKSRC}/; ${SETENV} ${MAKE_ENV} ${RAKE_BIN} build)
do-install:
@(cd ${WRKSRC}/; ${SETENV} ${MAKE_ENV} ${RAKE_BIN} install)
pre-install:
${MKDIR} ${PREFIX}/lib/ruby/site_ruby/rubinius
${MKDIR} ${PREFIX}/lib/ruby/vendor_ruby/rubinius
@${TOUCH} ${PREFIX}/lib/ruby/site_ruby/rubinius/.keep_me
@${TOUCH} ${PREFIX}/lib/ruby/vendor_ruby/rubinius/.keep_me
plist:
truncate -s0 pkg-plist
@${ECHO_CMD} "bin/rbx" >> pkg-plist
#
# Includes
#
@${FIND} -ds ${PREFIX}/include/rubinius ! -type d | \
${SED} 's,^${PREFIX}/*,,' >> pkg-plist
@${FIND} -ds ${PREFIX}/include/rubinius -type d | \
${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
#
# Libs
#
@${FIND} -ds ${PREFIX}/lib/ruby/rubinius ! -type d | \
${SED} 's,^${PREFIX}/*,,' >> pkg-plist
@${FIND} -ds ${PREFIX}/lib/ruby/rubinius -type d | \
${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
#
# Gems
#
@${FIND} -ds ${PREFIX}/lib/ruby/gems/rubinius ! -type d | \
${SED} 's,^${PREFIX}/*,,' >> pkg-plist
@${FIND} -ds ${PREFIX}/lib/ruby/gems/rubinius -type d | \
${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
#
# Site libs and vendor libs
#
@${FIND} -ds ${PREFIX}/lib/ruby/site_ruby/rubinius ! -type d | \
${SED} 's,^${PREFIX}/*,,' >> pkg-plist
@${FIND} -ds ${PREFIX}/lib/ruby/site_ruby/rubinius -type d | \
${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
@${FIND} -ds ${PREFIX}/lib/ruby/vendor_ruby/rubinius ! -type d | \
${SED} 's,^${PREFIX}/*,,' >> pkg-plist
@${FIND} -ds ${PREFIX}/lib/ruby/vendor_ruby/rubinius -type d | \
${SED} 's,^${PREFIX}/*,@dirrm ,' >> pkg-plist
#
# Shared dirs
#
@${ECHO_CMD} "@dirrmtry lib/ruby/site_ruby" >> pkg-plist
@${ECHO_CMD} "@dirrmtry lib/ruby/vendor_ruby" >> pkg-plist
@${ECHO_CMD} "@dirrmtry lib/ruby/gems" >> pkg-plist
@${ECHO_CMD} "@dirrmtry lib/ruby" >> pkg-plist
.include <bsd.port.post.mk>