summaryrefslogtreecommitdiffstats
path: root/lang/parrot/Makefile
blob: 1b417d24c7da5085abe522fa939c43c5ec98806e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$

PORTNAME=	parrot
PORTVERSION=	7.6.0
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	ftp://ftp.parrot.org/pub/parrot/releases/supported/${PORTVERSION}/ \
		LOCAL/sunpoet

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Parrot - virtual machine for dynamic languages

LICENSE=	ART20

BUILD_DEPENDS=	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
		gm4:${PORTSDIR}/devel/m4 \
		pcre-config:${PORTSDIR}/devel/pcre
LIB_DEPENDS=	libgmp.so:${PORTSDIR}/math/gmp \
		libicudata.so:${PORTSDIR}/devel/icu

OPTIONS_DEFINE=	DOCS

ALL_TARGET=	installable
CONFIGURE_ARGS=	--cc=${CC} --cxx=${CXX} --link=${CXX} \
		--ccflags="${CFLAGS} -I${LOCALBASE}/include" \
		--ld=${CC} --ldflags="${LDFLAGS} -L${LIBDIR} -L${LOCALBASE}/lib" \
		--gc=gms --inline --optimize --parrot_is_shared --verbose \
		--prefix=${PREFIX} \
		--icu-config=${LOCALBASE}/bin/icu-config \
		--lex=${LOCALBASE}/bin/flex \
		--yacc=${LOCALBASE}/bin/bison
CONFIGURE_SCRIPT=	Configure.pl
INSTALL_TARGET=	install-dev
MAKE_JOBS_UNSAFE=	yes
USE_LDCONFIG=	yes
USES=		bison gmake perl5 shebangfix tar:bzip2
SHEBANG_FILES=	tools/dev/create_language.pl \
		tools/dev/gen_makefile.pl \
		tools/dev/pprof2cg.pl \
		tools/dev/reconfigure.pl
perl_OLD_CMD=	perl

DOCSDIR=	share/doc/${PORTNAME}/${PORTVERSION}
PLIST_SUB=	PARROT_VER="${PORTVERSION}"

BROKEN_ia64=	Does not compile on ia64

do-configure:
	(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* \
		${STAGEDIR}${PREFIX}/lib/libparrot.so.${PORTVERSION} \
		${STAGEDIR}${PREFIX}/lib/parrot/${PORTVERSION}/dynext/*.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud