1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/lang/rakudo/Makefile
Baptiste Daroussin 9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00

94 lines
2.4 KiB
Makefile

# Created by: Aliaksandr Zahatski <zahatski@gmail.com>
# $FreeBSD$
PORTNAME= rakudo
PORTVERSION= 2012.11
PORTEPOCH= 4
CATEGORIES= lang
MASTER_SITES= http://cloud.github.com/downloads/rakudo/star/
DISTNAME= ${PORTNAME}-star-${PORTVERSION}
MAINTAINER= perl@FreeBSD.org
COMMENT= The Rakudo Perl 6 Compiler targets the Parrot Virtual Machine
LICENSE= ART20
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
CONFLICTS= parrot-[0-9]*
PARROT_VERSION=4.6.0
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}
CONFIGURE_ARGS= --with-parrot=${PREFIX}/bin/parrot \
--with-nqp=${PREFIX}/bin/nqp
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
USES+= bison
USE_PERL5_BUILD= yes
USE_GMAKE= yes
MAN1= perl6.1 rakudo.1
MANCOMPRESSED= no
PLIST_SUB+= PARROT_VERSION=${PARROT_VERSION}
EXTRA_DOCS= UsingPerl6-draft.pdf cheatsheet.txt
PORTDOCS= ${EXTRA_DOCS}
do-configure:
cd ${WRKSRC}/parrot \
&& ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_PARROT_ARGS} \
&& ${MAKE} installable PREFIX=${PREFIX}
do-build:
do-install:
cd ${WRKSRC}/parrot \
&& ${MAKE} install-dev PREFIX=${PREFIX} \
&& cd ${WRKSRC}/nqp \
&& ${PERL} ${CONFIGURE_SCRIPT} --with-parrot=${PREFIX}/bin/parrot \
--prefix=${PREFIX} \
&& ${MAKE} install PREFIX=${PREFIX} \
&& cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}\
&& ${MAKE} PREFIX=${PREFIX} && ${MAKE} ${INSTALL_TARGET} PREFIX=${PREFIX}
post-install:
${INSTALL_MAN} ${WRKSRC}/perl6.1 ${MAN1PREFIX}/man/man1/perl6.1
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${EXTRA_DOCS:S!^!${WRKSRC}/docs/!} ${DOCSDIR}/
.endif
test: build
${MAKE} -C ${WRKSRC} test
regression-test: test
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>