mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
ae38952ef3
- Optionize
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sisc
|
|
PORTVERSION= 1.16.6
|
|
PORTREVISION= 2
|
|
CATEGORIES= lang scheme java
|
|
MASTER_SITES= SF/${PORTNAME}/SISC/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= An extensible Java-based Scheme interpreter
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
NO_BUILD= yes
|
|
PORTDOCS= COPYING README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|\(SISC_HOME=\).*$$|\1${DATADIR}|' \
|
|
-e 's|\(JAVA=\)java|\1"${LOCALBASE}/bin/java" ; export JAVA_VERSION="${JAVA_VERSION}"|' \
|
|
${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
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|