2012-10-01 13:23:35 +00:00
|
|
|
# Created by: Aliaksandr Zahatski <zahatski@gmail.com>
|
2010-02-05 03:59:25 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rakudo
|
2013-01-10 14:34:07 +00:00
|
|
|
PORTVERSION= 2012.11
|
2012-12-18 23:09:07 +00:00
|
|
|
PORTEPOCH= 4
|
2010-02-05 03:59:25 +00:00
|
|
|
CATEGORIES= lang
|
2010-07-29 18:05:19 +00:00
|
|
|
MASTER_SITES= http://cloud.github.com/downloads/rakudo/star/
|
|
|
|
DISTNAME= ${PORTNAME}-star-${PORTVERSION}
|
2010-02-05 03:59:25 +00:00
|
|
|
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
|
|
COMMENT= The Rakudo Perl 6 Compiler targets the Parrot Virtual Machine
|
|
|
|
|
2011-08-02 12:11:59 +00:00
|
|
|
LICENSE= ART20
|
|
|
|
|
2011-01-05 18:12:02 +00:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
|
|
|
|
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
|
|
|
|
${LOCALBASE}/bin/pcre-config:${PORTSDIR}/devel/pcre
|
|
|
|
LIB_DEPENDS= icudata:${PORTSDIR}/devel/icu \
|
|
|
|
gmp.10:${PORTSDIR}/math/gmp
|
2010-02-05 03:59:25 +00:00
|
|
|
|
2011-01-05 18:12:02 +00:00
|
|
|
CONFLICTS= parrot-[0-9]*
|
|
|
|
|
2012-07-30 19:10:52 +00:00
|
|
|
PARROT_VERSION=4.6.0
|
2011-01-05 18:12:02 +00:00
|
|
|
INSTALL_TARGET= install
|
|
|
|
CONFIGURE_SCRIPT= Configure.pl
|
|
|
|
CONFIGURE_PARROT_ARGS= --cc=${CC} --cxx=${CXX} --ld=${CC} --ccflags="${CFLAGS}" \
|
|
|
|
--ldflags="${LDFLAGS} -L/usr/lib -L${LOCALBASE}/lib" \
|
|
|
|
--icu-config=${LOCALBASE}/bin/icu-config \
|
|
|
|
--optimize --parrot_is_shared --inline \
|
|
|
|
--lex=${LOCALBASE}/bin/flex \
|
|
|
|
--yacc=${LOCALBASE}/bin/bison \
|
|
|
|
--verbose \
|
|
|
|
--prefix=${PREFIX}
|
2012-02-07 21:10:03 +00:00
|
|
|
CONFIGURE_ARGS= --with-parrot=${PREFIX}/bin/parrot \
|
|
|
|
--with-nqp=${PREFIX}/bin/nqp
|
2010-11-05 09:42:44 +00:00
|
|
|
|
2010-02-13 02:43:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-09-08 07:47:30 +00:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ia64, powerpc, or sparc64
|
2010-02-13 02:43:12 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-08 11:32:11 +00:00
|
|
|
USES+= bison
|
2012-12-16 06:12:28 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
2010-02-05 03:59:25 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2010-06-07 02:15:53 +00:00
|
|
|
MAN1= perl6.1 rakudo.1
|
2010-02-05 03:59:25 +00:00
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
|
|
|
PLIST_SUB+= PARROT_VERSION=${PARROT_VERSION}
|
|
|
|
|
2010-08-02 12:51:04 +00:00
|
|
|
EXTRA_DOCS= UsingPerl6-draft.pdf cheatsheet.txt
|
|
|
|
|
2010-10-10 09:40:12 +00:00
|
|
|
PORTDOCS= ${EXTRA_DOCS}
|
|
|
|
|
2010-02-05 03:59:25 +00:00
|
|
|
do-configure:
|
2012-10-01 13:23:35 +00:00
|
|
|
cd ${WRKSRC}/parrot \
|
2011-01-05 18:12:02 +00:00
|
|
|
&& ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_PARROT_ARGS} \
|
|
|
|
&& ${MAKE} installable PREFIX=${PREFIX}
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
|
|
|
|
do-install:
|
2012-10-01 13:23:35 +00:00
|
|
|
cd ${WRKSRC}/parrot \
|
2011-01-05 18:12:02 +00:00
|
|
|
&& ${MAKE} install-dev PREFIX=${PREFIX} \
|
2012-10-01 13:23:35 +00:00
|
|
|
&& cd ${WRKSRC}/nqp \
|
2012-02-07 21:10:03 +00:00
|
|
|
&& ${PERL} ${CONFIGURE_SCRIPT} --with-parrot=${PREFIX}/bin/parrot \
|
|
|
|
--prefix=${PREFIX} \
|
|
|
|
&& ${MAKE} install PREFIX=${PREFIX} \
|
2011-01-05 18:12:02 +00:00
|
|
|
&& cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}\
|
|
|
|
&& ${MAKE} PREFIX=${PREFIX} && ${MAKE} ${INSTALL_TARGET} PREFIX=${PREFIX}
|
2010-02-05 03:59:25 +00:00
|
|
|
|
|
|
|
post-install:
|
2010-02-21 22:02:52 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/perl6.1 ${MAN1PREFIX}/man/man1/perl6.1
|
2010-08-02 12:51:04 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${EXTRA_DOCS:S!^!${WRKSRC}/docs/!} ${DOCSDIR}/
|
|
|
|
.endif
|
2010-02-21 22:02:52 +00:00
|
|
|
|
|
|
|
test: build
|
|
|
|
${MAKE} -C ${WRKSRC} test
|
|
|
|
|
|
|
|
regression-test: test
|
2010-02-05 03:59:25 +00:00
|
|
|
|
|
|
|
x-generate-plist:
|
|
|
|
(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX} \
|
|
|
|
| ${SED} -E \
|
|
|
|
's,.*share/nls/.+$$,,g \
|
|
|
|
;s,${PARROT_VERSION}(/.+)?$$,%%PARROT_VERSION%%\1,g \
|
|
|
|
' | ${TR} -s '\n') > temp-pkg-plist
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|