aboutsummaryrefslogtreecommitdiffstats
path: root/lang/sisc/Makefile
blob: a76b1dfc881c26b83d69890c3a1923e162a1ed82 (plain) (blame)
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
# New ports collection makefile for:    SISC
# Date created:             18 March 2003
# Whom:                 Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#

PORTNAME=   sisc
PORTVERSION=    1.7.9
CATEGORIES= lang scheme
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=   .jar

MAINTAINER= ports@FreeBSD.org
COMMENT=    An extensible Java-based Scheme interpreter

BUILD_DEPENDS=  ant:${PORTSDIR}/devel/apache-ant

USE_JAVA=   1.3+

EXTRACT_CMD=    ${JAR}
EXTRACT_BEFORE_ARGS=    -xf

WRKSRC=     ${WRKDIR}/${PORTNAME}
USE_REINPLACE=  yes

post-patch:
    ${REINPLACE_CMD} -e 's|\(SISC_HOME=\).*$$|\1${JAVAJARDIR}|' \
        -e 's|^java|javavm|' ${WRKSRC}/dist/sisc.sh

do-build:
    cd ${WRKSRC}; ${SETENV} JAVA_HOME=${JAVA_HOME} ant sisc-lib

do-install:
    ${INSTALL_DATA} ${WRKSRC}/*.jar ${WRKSRC}/*.shp ${JAVAJARDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/dist/sisc.sh ${PREFIX}/bin/sisc
    ${MKDIR} ${DOCSDIR}
.for i in COPYING README
    ${INSTALL_DATA} ${WRKSRC}/dist/${i} ${DOCSDIR}
.endfor

.include <bsd.port.mk>