summaryrefslogtreecommitdiff
path: root/lang/chicken/Makefile
blob: a599383ae3581ef12d4ca607206e62bef981738b (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.42 2010/05/13 19:32:02 asau Exp $
#

DISTNAME=	chicken-4.5.0
CATEGORIES=	lang
MASTER_SITES=	http://chicken.wiki.br/releases/${PKGVERSION_NOREV}/ \
		http://galinha.ucpel.tche.br/releases/${PKGVERSION_NOREV}/ \
		${HOMEPAGE}

MAINTAINER=	asau@inbox.ru #, airhead@users.sourceforge.net
HOMEPAGE=	http://www.call-with-current-continuation.org/
COMMENT=	Scheme to C compiler, handling R5RS
LICENSE=	modified-bsd

PKG_DESTDIR_SUPPORT=	user-destdir

MAKE_JOBS_SAFE=		no

INFO_FILES=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake makeinfo
UNLIMIT_RESOURCES=	datasize

INSTALLATION_DIRS=	share/chicken
OWN_DIRS=		${PREFIX}/lib/chicken ${PREFIX}/lib/chicken/5

BUILD_TARGET=		all

.include "../../mk/bsd.prefs.mk"

# PLATFORM detection:
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly"
PLATFORM=	bsd
.elif ${OPSYS} == "Linux"
PLATFORM=	linux
.elif ${OPSYS} == "Darwin"
PLATFORM=	macosx
.elif ${OPSYS} == "SunOS"
PLATFORM=	solaris
.else
#PLATFORM+=	${OPSYS} == "Interix"
# possible choices left: mingw-msys mingw cygwin cross-linux-mingw
PKG_FAIL_REASON=	"${OPSYS} is not supported"
.endif

MAKE_ENV+=	HOST=	# fix ${HOST} prepending ${CC}
# Need to have these in MAKE_FLAGS, MAKE_ENV is not enough due to the
# way the build system overrides them.
MAKE_FLAGS+=	PLATFORM=${PLATFORM:Q} PREFIX=${PREFIX:Q} DESTDIR=${DESTDIR:Q}
MAKE_FLAGS+=	TOPMANDIR=${PREFIX:Q}/${PKGMANDIR}
MAKE_FLAGS+=	INFODIR=${PREFIX:Q}/${PKGINFODIR:Q}
MAKE_FLAGS+=	DOCDIR=${PREFIX:Q}/share/doc/${PKGNAME_NOREV}

TEST_TARGET=	check

CHECK_PORTABILITY_SKIP += scripts/test-dist.sh

.include "../../mk/bsd.pkg.mk"