mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
6ab958cbb1
PR: ports/72950 Submitted by: Kimura Fuyuki (maintainer)
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# New ports collection makefile for: CHICKEN
|
|
# Date created: 31 December 2002
|
|
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= chicken
|
|
PORTVERSION= 1.66
|
|
CATEGORIES= lang scheme
|
|
MASTER_SITES= http://www.call-with-current-continuation.org/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A Scheme-to-C compiler
|
|
|
|
USE_REINPLACE= yes
|
|
USE_LIBTOOL_VER= 15
|
|
INSTALLS_SHLIB= yes
|
|
|
|
MAN1= chicken-config.1 chicken-profile.1 chicken-setup.1 chicken.1 \
|
|
csc.1 csi.1
|
|
INFO= chicken
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= FAQ.html format.txt README LICENSE chicken.html chicken.pdf
|
|
.endif
|
|
|
|
OPTIONS= PCRE "With PCRE support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "ia64"
|
|
BROKEN= "Coredump during build on ia64"
|
|
.endif
|
|
|
|
.if defined(WITH_PCRE)
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
.else
|
|
CONFIGURE_ENV+= ac_cv_header_pcre_h=no
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's/\(install-data-am: \)install-data-local/\1/' \
|
|
${WRKSRC}/Makefile.in
|
|
${REINPLACE_CMD} -e 's|"/usr/local/include" ||' ${WRKSRC}/csc.scm.in
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
|
|
test:
|
|
cd ${WRKSRC}; ${MAKE} test
|
|
|
|
.include <bsd.port.post.mk>
|