2005-04-15 13:01:21 -04:00
|
|
|
# New ports collection makefile for: parrot
|
|
|
|
# Date created: 15 April 2005
|
|
|
|
# Whom: Sergey Skvortsov <skv@protey.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= parrot
|
2006-07-07 07:47:33 -04:00
|
|
|
PORTVERSION= 0.4.5
|
2006-11-05 21:13:37 -05:00
|
|
|
PORTREVISION= 2
|
2005-04-15 13:01:21 -04:00
|
|
|
CATEGORIES= lang perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
|
|
MASTER_SITE_SUBDIR= ../../authors/id/L/LT/LTOETSCH
|
|
|
|
|
|
|
|
MAINTAINER= skv@FreeBSD.org
|
|
|
|
COMMENT= Parrot - virtual machine for dynamic languages
|
|
|
|
|
2006-11-05 21:13:37 -05:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
|
|
|
|
bison2:${PORTSDIR}/devel/bison2 \
|
|
|
|
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
|
2006-05-10 10:46:47 -04:00
|
|
|
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 \
|
2006-11-05 21:13:37 -05:00
|
|
|
icudata.36:${PORTSDIR}/devel/icu
|
2006-08-04 04:37:17 -04:00
|
|
|
|
2006-03-15 04:10:47 -05:00
|
|
|
USE_GCC= 3.4+
|
2005-04-15 13:01:21 -04:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2006-03-15 04:10:47 -05:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2005-04-15 13:01:21 -04:00
|
|
|
CONFIGURE_SCRIPT= Configure.pl
|
2006-03-15 04:10:47 -05:00
|
|
|
CONFIGURE_ARGS= --cc=${CC} --cxx=${CXX} --ld=${CC} --ccflags="${CFLAGS}" \
|
2005-04-15 13:01:21 -04:00
|
|
|
--ldflags="${LDFLAGS} -L/usr/lib -L${LOCALBASE}/lib" \
|
|
|
|
--icu-config=${LOCALBASE}/bin/icu-config \
|
2006-11-05 21:13:37 -05:00
|
|
|
--optimize --parrot_is_shared \
|
|
|
|
--lex=${LOCALBASE}/bin/flex \
|
|
|
|
--yacc=${LOCALBASE}/bin/bison \
|
2006-03-15 04:10:47 -05:00
|
|
|
--verbose \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
|
2006-11-05 21:13:37 -05:00
|
|
|
|
|
|
|
PARROT_SHARE_DIR= share/doc/${PORTNAME}
|
|
|
|
PARROT_DOCS= ${PARROT_SHARE_DIR}/docs
|
|
|
|
PARROT_EXAMPLES= ${PARROT_SHARE_DIR}/examples
|
|
|
|
PLIST_SUB+= SHLIB_VER="${PORTVERSION}" \
|
|
|
|
PARROT_DOCS="${PARROT_DOCS}" \
|
|
|
|
PARROT_EXAMPLES="${PARROT_EXAMPLES}"
|
2006-05-29 09:46:21 -04:00
|
|
|
|
2006-03-15 04:10:47 -05:00
|
|
|
post-patch:
|
|
|
|
${PERL} -pi -e "s=libdir}, 'pkgconfig=prefix}, 'libdata/pkgconfig=" \
|
|
|
|
${WRKSRC}/tools/dev/install_files.pl
|
2005-04-15 13:01:21 -04:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
|
|
|
|
|
|
|
|
test:
|
|
|
|
cd ${WRKSRC} && ${MAKE} test
|
|
|
|
|
2006-11-05 21:13:37 -05:00
|
|
|
x-generate-plist:
|
|
|
|
(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX} \
|
|
|
|
| ${SED} -E \
|
|
|
|
's,.*share/nls/.+$$,,g \
|
|
|
|
;s,${PARROT_DOCS}(/.+)?$$,%%PARROT_DOCS%%\1,g \
|
|
|
|
;s,${PARROT_EXAMPLES}(/.+)?$$,%%PARROT_EXAMPLES%%\1,g \
|
|
|
|
;s,${PARROT_SHARE_DIR}(/.+)?$$,%%DOCSDIR%%\1,g \
|
|
|
|
;s,${PORTVERSION}(/.+)?$$,%%SHLIB_VER%%\1,g \
|
|
|
|
' | ${TR} -s '\n') > temp-pkg-plist
|
|
|
|
|
2005-04-20 06:26:10 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-05 21:13:37 -05:00
|
|
|
# JIT only works on x86
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
CONFIGURE_ARGS+= --jitcapable
|
|
|
|
PLIST_SUB+= JIT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JIT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-04-20 06:26:10 -04:00
|
|
|
.if ${PERL_LEVEL} < 500800
|
2006-03-15 04:10:47 -05:00
|
|
|
IGNORE= perl 5.8 or newer required. Install lang/perl5.8 and try again
|
2005-04-20 06:26:10 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|