summaryrefslogtreecommitdiff
path: root/lang/sisc/Makefile
blob: abec5b44417f68d07275369bc018dda90e8a76ab (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
PORTNAME=	sisc
PORTVERSION=	1.16.6
PORTREVISION=	3
CATEGORIES=	lang scheme java
MASTER_SITES=	SF/${PORTNAME}/SISC/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Extensible Java-based Scheme interpreter
WWW=		http://sisc.sourceforge.net/

LICENSE=	MPL11 GPLv2+
LICENSE_COMB=	dual

USE_JAVA=	yes
NO_BUILD=	yes
NO_ARCH=	yes

PORTDOCS=	README

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|\(SISC_HOME=\).*$$|\1${DATADIR}|' \
		-e 's|\(JAVA=\)java|\1"${LOCALBASE}/bin/java"|' \
		${WRKSRC}/sisc
	@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' \
		${WRKSRC}/scheme-src/srfi-22/srfi-22.sh

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/sisc ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/*.jar ${WRKSRC}/*.shp ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/scheme-src/*.scm ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/scheme-src/srfi-22/srfi-22.sh ${STAGEDIR}${PREFIX}/bin
.for i in r4rs r5rs srfi-0 srfi-7 ieee-1178-1900
	${LN} -sf ${PREFIX}/bin/srfi-22.sh ${STAGEDIR}${PREFIX}/bin/scheme-${i}
.endfor

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>