2005-04-15 19:01:21 +02:00
|
|
|
# New ports collection makefile for: parrot
|
|
|
|
# Date created: 15 April 2005
|
|
|
|
# Whom: Sergey Skvortsov <skv@protey.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= parrot
|
2008-06-24 14:13:38 +02:00
|
|
|
PORTVERSION= 0.6.3
|
|
|
|
CATEGORIES= lang
|
2008-04-17 16:30:31 +02:00
|
|
|
MASTER_SITES= CPAN
|
2008-06-24 14:13:38 +02:00
|
|
|
MASTER_SITE_SUBDIR= ../../authors/id/S/SM/SMASH
|
2005-04-15 19:01:21 +02:00
|
|
|
|
|
|
|
MAINTAINER= skv@FreeBSD.org
|
|
|
|
COMMENT= Parrot - virtual machine for dynamic languages
|
|
|
|
|
2006-11-06 03:13:37 +01:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
|
2007-12-23 14:34:02 +01:00
|
|
|
bison:${PORTSDIR}/devel/bison \
|
2006-11-06 03:13:37 +01:00
|
|
|
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
|
2006-05-10 16:46:47 +02:00
|
|
|
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 \
|
2008-02-07 19:21:59 +01:00
|
|
|
icudata:${PORTSDIR}/devel/icu
|
2006-08-04 10:37:17 +02:00
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2006-03-15 10:10:47 +01:00
|
|
|
USE_GCC= 3.4+
|
2007-09-08 03:12:10 +02:00
|
|
|
USE_PERL5= 5.8.0+
|
2005-04-15 19:01:21 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2007-12-23 14:34:02 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
INSTALL_TARGET= reallyinstall
|
2006-03-15 10:10:47 +01:00
|
|
|
|
2005-04-15 19:01:21 +02:00
|
|
|
CONFIGURE_SCRIPT= Configure.pl
|
2006-03-15 10:10:47 +01:00
|
|
|
CONFIGURE_ARGS= --cc=${CC} --cxx=${CXX} --ld=${CC} --ccflags="${CFLAGS}" \
|
2005-04-15 19:01:21 +02:00
|
|
|
--ldflags="${LDFLAGS} -L/usr/lib -L${LOCALBASE}/lib" \
|
|
|
|
--icu-config=${LOCALBASE}/bin/icu-config \
|
2006-11-06 03:13:37 +01:00
|
|
|
--optimize --parrot_is_shared \
|
|
|
|
--lex=${LOCALBASE}/bin/flex \
|
|
|
|
--yacc=${LOCALBASE}/bin/bison \
|
2006-03-15 10:10:47 +01:00
|
|
|
--verbose \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
|
2006-11-06 03:13:37 +01: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 15:46:21 +02:00
|
|
|
|
2006-03-15 10:10:47 +01:00
|
|
|
post-patch:
|
|
|
|
${PERL} -pi -e "s=libdir}, 'pkgconfig=prefix}, 'libdata/pkgconfig=" \
|
|
|
|
${WRKSRC}/tools/dev/install_files.pl
|
2005-04-15 19:01:21 +02:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
|
|
|
|
|
|
|
|
test:
|
|
|
|
cd ${WRKSRC} && ${MAKE} test
|
|
|
|
|
2006-11-06 03:13:37 +01: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 12:26:10 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-06 03:13:37 +01:00
|
|
|
# JIT only works on x86
|
2007-12-23 14:34:02 +01:00
|
|
|
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
|
2006-11-06 03:13:37 +01:00
|
|
|
CONFIGURE_ARGS+= --jitcapable
|
|
|
|
PLIST_SUB+= JIT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JIT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-04-22 03:41:55 +02:00
|
|
|
.if ${ARCH} == ia64
|
|
|
|
BROKEN= Does not compile on ia64
|
|
|
|
.endif
|
|
|
|
|
2008-06-24 14:13:38 +02:00
|
|
|
pre-configure:
|
|
|
|
@if [ `${ID} -u` -eq 0 ]; then \
|
|
|
|
${ECHO_MSG} "==> Please do not build ${PORTNAME} as 'root' (because of 'perldoc' issue)."; exit 1; fi
|
|
|
|
|
2005-04-20 12:26:10 +02:00
|
|
|
.include <bsd.port.post.mk>
|