1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/lang/parrot/Makefile
Mark Linimon 9839011ec3 Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
2007-09-08 01:12:10 +00:00

83 lines
2.1 KiB
Makefile

# New ports collection makefile for: parrot
# Date created: 15 April 2005
# Whom: Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#
PORTNAME= parrot
PORTVERSION= 0.4.5
PORTREVISION= 2
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
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
bison2:${PORTSDIR}/devel/bison2 \
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 \
icudata.36:${PORTSDIR}/devel/icu
USE_GCC= 3.4+
USE_PERL5= 5.8.0+
USE_GMAKE= yes
INSTALLS_SHLIB= yes
CONFIGURE_SCRIPT= Configure.pl
CONFIGURE_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 \
--lex=${LOCALBASE}/bin/flex \
--yacc=${LOCALBASE}/bin/bison \
--verbose \
--prefix=${PREFIX}
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}"
post-patch:
${PERL} -pi -e "s=libdir}, 'pkgconfig=prefix}, 'libdata/pkgconfig=" \
${WRKSRC}/tools/dev/install_files.pl
do-configure:
cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
test:
cd ${WRKSRC} && ${MAKE} test
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
.include <bsd.port.pre.mk>
# JIT only works on x86
.if ${ARCH} == "i386"
CONFIGURE_ARGS+= --jitcapable
PLIST_SUB+= JIT=""
.else
PLIST_SUB+= JIT="@comment "
.endif
.if ${ARCH} == ia64
BROKEN= Does not compile on ia64
.endif
.include <bsd.port.post.mk>