blob: 903785e1a357d0fde19ae1e4bb5a69e2a14e0973 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
# $FreeBSD$
PORTNAME= chicken
PORTVERSION= 4.9.0.1
PORTREVISION= 1
CATEGORIES= lang scheme
MASTER_SITES= http://code.call-cc.org/releases/4.9.0/
MAINTAINER= vmagerya@gmail.com
COMMENT= Scheme-to-C compiler
USES= gmake
MAKEFILE= GNUmakefile
USE_LDCONFIG= yes
MAKE_ARGS+= PLATFORM=bsd PREFIX=${PREFIX} \
TOPMANDIR=${PREFIX}/man ARCH=${NEW_ARCH} \
C_COMPILER="${CC}" \
CXX_COMPILER="${CXX}" \
LIBRARIAN="${AR}" \
DOCDIR="${DOCSDIR}" \
C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}"
NEW_ARCH= ${ARCH:S/i386/x86/:S/amd64/x86-64/}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH} != "amd64" && ${ARCH} != "i386" && ${ARCH} != "sparc64"
MAKE_ARGS+= HACKED_APPLY=
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
# This only works *after* chicken is installed.
regression-test: build
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
.include <bsd.port.post.mk>
|