2012-09-29 22:38:27 +02:00
|
|
|
# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
|
2003-04-04 23:40:54 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= chicken
|
2015-06-23 01:18:22 +02:00
|
|
|
PORTVERSION= 4.10.0.r1
|
|
|
|
PORTEPOCH= 1
|
2003-08-28 02:09:58 +02:00
|
|
|
CATEGORIES= lang scheme
|
2015-06-22 09:08:26 +02:00
|
|
|
MASTER_SITES= http://code.call-cc.org/dev-snapshots/2015/06/07/
|
2015-06-23 01:18:22 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:.r1=rc1}
|
2003-04-04 23:40:54 +02:00
|
|
|
|
2010-04-15 20:00:58 +02:00
|
|
|
MAINTAINER= vmagerya@gmail.com
|
2013-10-05 15:51:51 +02:00
|
|
|
COMMENT= Scheme-to-C compiler
|
2003-04-04 23:40:54 +02:00
|
|
|
|
2015-04-25 05:51:06 +02:00
|
|
|
USES= cpe gmake
|
|
|
|
CPE_VENDOR= call-cc
|
2011-06-02 08:11:39 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
2008-07-18 00:50:55 +02:00
|
|
|
USE_LDCONFIG= yes
|
2015-06-22 09:08:26 +02:00
|
|
|
MAKE_ARGS+= PLATFORM=bsd \
|
|
|
|
PREFIX=${PREFIX} \
|
|
|
|
MANDIR=${PREFIX}/man \
|
|
|
|
LIBDIR="${PREFIX}/lib" \
|
|
|
|
DOCDIR="${DOCSDIR}" \
|
|
|
|
ARCH=${NEW_ARCH} \
|
2011-11-16 17:18:11 +01:00
|
|
|
C_COMPILER="${CC}" \
|
|
|
|
CXX_COMPILER="${CXX}" \
|
|
|
|
LIBRARIAN="${AR}" \
|
2010-09-20 10:31:46 +02:00
|
|
|
C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}"
|
2003-04-04 23:40:54 +02:00
|
|
|
|
2009-09-07 14:16:58 +02:00
|
|
|
NEW_ARCH= ${ARCH:S/i386/x86/:S/amd64/x86-64/}
|
2004-07-16 18:08:17 +02:00
|
|
|
|
2013-10-05 15:51:51 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2004-07-16 18:08:17 +02:00
|
|
|
|
2013-10-05 15:51:51 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2012-09-29 22:38:27 +02:00
|
|
|
|
2010-04-15 20:00:58 +02:00
|
|
|
.if ${ARCH} != "amd64" && ${ARCH} != "i386" && ${ARCH} != "sparc64"
|
|
|
|
MAKE_ARGS+= HACKED_APPLY=
|
2010-03-27 07:00:19 +01:00
|
|
|
.endif
|
2003-04-04 23:40:54 +02:00
|
|
|
|
|
|
|
post-install:
|
2015-04-20 20:38:19 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
|
2015-06-22 09:08:26 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/chicken/7/*.so
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libchicken*
|
2003-04-04 23:40:54 +02:00
|
|
|
|
2012-09-29 22:38:27 +02:00
|
|
|
# This only works *after* chicken is installed.
|
|
|
|
regression-test: build
|
|
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
2014-06-25 07:35:31 +02:00
|
|
|
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
2012-09-29 22:38:27 +02:00
|
|
|
|
2013-10-05 15:51:51 +02:00
|
|
|
.include <bsd.port.post.mk>
|