aboutsummaryrefslogtreecommitdiff
path: root/lang/chicken/Makefile
blob: e6d2cdd9f11b1e0a35517ad74d738860cbd036c5 (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
# New ports collection makefile for:	CHICKEN
# Date created:				31 December 2002
# Whom:					Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#

PORTNAME=	chicken
PORTVERSION=	4.6.0
CATEGORIES=	lang scheme
MASTER_SITES=	http://code.call-cc.org/releases/${PORTVERSION}/

MAINTAINER=	vmagerya@gmail.com
COMMENT=	A Scheme-to-C compiler

USE_GMAKE=	yes
USE_LDCONFIG=	yes
MAKE_ARGS+=	PLATFORM=bsd PREFIX=${PREFIX} \
		TOPMANDIR=${PREFIX}/man ARCH=${NEW_ARCH} \
		C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}"

NEW_ARCH=	${ARCH:S/i386/x86/:S/amd64/x86-64/}

MAN1=		chicken.1 chicken-bug.1 chicken-install.1 chicken-profile.1 \
		chicken-status.1 chicken-uninstall.1 csc.1 csi.1

.include <bsd.port.pre.mk>

.if ${ARCH} != "amd64" && ${ARCH} != "i386" && ${ARCH} != "sparc64"
MAKE_ARGS+=	HACKED_APPLY=
.endif

post-install:
	@${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}

.include <bsd.port.post.mk>