aboutsummaryrefslogtreecommitdiff
path: root/lang/starlogo/Makefile
blob: 56dba8495ee52c178009f8adceccfde171a63b77 (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
# New ports collection makefile for:    StarLogo
# Version required:	1.0
# Date created:		14th November 1999
# Whom:			Jose Marques
#
# $FreeBSD$
#

DISTNAME=	java-starlogo-beta-2
PKGNAME=	starlogo-1.0
CATEGORIES=	lang java
MASTER_SITES=	http://el.www.media.mit.edu/starlogo/download/

MAINTAINER=	noway@nohow.demon.co.uk

RUN_DEPENDS=	${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk \
		${LOCALBASE}/jdk${JDK_VERSION}/lib/i386/green_threads/libtya.so:${PORTSDIR}/java/tya

WRKSRC=		${WRKDIR}/starlogo-1.0b2
JDK_VERSION=	1.1.8
NO_BUILD=	yes

post-patch:
	@${CAT} ${WRKSRC}/starlogo-unix | ${SED} -e s,@@PREFIX@@,${PREFIX},g | ${SED} -e s,@@JDK_VERSION@@,${JDK_VERSION},g > ${WRKSRC}/starlogo

do-install:
	@${MKDIR} ${PREFIX}/share/java/starlogo
	@${MKDIR} ${PREFIX}/share/java/starlogo/projects
	@${MKDIR} ${PREFIX}/share/java/starlogo/sounds
	@${INSTALL_SCRIPT} ${WRKSRC}/starlogo ${PREFIX}/bin
	@${INSTALL_DATA} ${WRKSRC}/starlogo.jar  ${PREFIX}/share/java/starlogo
	@${INSTALL_DATA} ${WRKSRC}/README        ${PREFIX}/share/java/starlogo
	@${INSTALL_DATA} ${WRKSRC}/reference.txt ${PREFIX}/share/java/starlogo
	@${INSTALL_DATA} ${WRKSRC}/projects/*    ${PREFIX}/share/java/starlogo/projects
	@${INSTALL_DATA} ${WRKSRC}/sounds/*      ${PREFIX}/share/java/starlogo/sounds

.include <bsd.port.mk>