summaryrefslogtreecommitdiff
path: root/lang/RScheme/Makefile
blob: 5e9a9f4b274aaec40b0fd7351dae09d654f05c96 (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
# $NetBSD: Makefile,v 1.4 2001/04/14 21:43:46 jtb Exp $

DISTNAME=		rs-0.7.3.1
PKGNAME=		RScheme-0.7.3.1
CATEGORIES=		lang
MASTER_SITES=		ftp://ftp.rscheme.org/pub/rscheme/

MAINTAINER=		packages@netbsd.org
HOMEPAGE=		http://www.rscheme.org
COMMENT=		Scheme implementation

WRKSRC=			${WRKDIR}/${DISTNAME}/src
HAS_CONFIGURE=		#defined
CONFIGURE_ARGS+=	"--prefix=${PREFIX}/lib/RScheme"
ALL_TARGET=		base

pre-configure:
	cd ${WRKDIR}/${DISTNAME} && ${MAKE} stage1

do-install:
	cd ${WRKSRC} && ${MAKE} install-base && ${MAKE} shell && \
	${MAKE} install-shell && ${MAKE} packages

post-install:
	${LN} -fs ${PREFIX}/lib/RScheme/bin/rs ${PREFIX}/bin/RScheme
	${LN} -fs ${PREFIX}/lib/RScheme/bin/rs ${PREFIX}/bin/rscheme
	${LN} -fs ${PREFIX}/lib/RScheme/bin/rsc ${PREFIX}/bin/RSchemec
	${LN} -fs ${PREFIX}/lib/RScheme/bin/rsc ${PREFIX}/bin/rschemec
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/RScheme
	${INSTALL_DATA} ${WRKSRC}/../COPYING ${WRKSRC}/../README \
	${PREFIX}/share/doc/RScheme

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