summaryrefslogtreecommitdiff
path: root/lang/chibi-scheme/Makefile
blob: 7bbfc850f744fc61a51d06cd67501cc488dc2d12 (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
# $NetBSD: Makefile,v 1.2 2020/08/18 10:25:16 leot Exp $

DISTNAME=	chibi-scheme-0.9.1
CATEGORIES=	lang
MASTER_SITES=	http://synthcode.com/scheme/chibi/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://synthcode.com/wiki/chibi-scheme
COMMENT=	Minimal Scheme Implementation for use as an Extension Language
LICENSE=	modified-bsd

USE_TOOLS+=	gmake pkg-config

PKGCONFIG_OVERRIDE+=	chibi-scheme.pc.in

REPLACE_INTERPRETER+=		chibi-scheme
REPLACE.chibi-scheme.old=	chibi-scheme
REPLACE.chibi-scheme.new=	${PREFIX}/bin/chibi-scheme
REPLACE_FILES.chibi-scheme+=	tools/chibi-doc tools/chibi-ffi
REPLACE_FILES.chibi-scheme+=	tools/snow-chibi tools/snow-chibi.scm

CFLAGS.NetBSD+=	-D_KMEMUSER	# Needed for kinfo_proc in <sys/sysctl.h>

MAKE_ENV+=		MANDIR=${PREFIX}/${PKGMANDIR}/man1
MAKE_ENV+=		PREFIX=${PREFIX}

TEST_TARGET=	test

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