blob: 67a6a36a742cac668c8ab8946cf357c7d8584d45 (
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
|
# Created by: Andreas Daehn <ad001@uni-rostock.de>
# $FreeBSD$
PORTNAME= jave6
PORTVERSION= 0.1
PORTREVISION= 3
CATEGORIES= graphics java
MASTER_SITES= http://www.jave.de/developer/\
http://ikaria.informatik.uni-rostock.de/public_bsd/FreeBSD/
DISTNAME= jave_6.0_i20060105
EXTRACT_SUFX= .zip
MAINTAINER= ad001@uni-rostock.de
COMMENT= Java ASCII-Art-Generator
USE_JAVA= YES
USE_ZIP= YES
JAVA_VERSION= 1.6+
NO_BUILD= YES
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
LNKTARGET= ${PREFIX}/bin/jave6
HLPSKRIPT= jave6
PLIST_SUB+=DATADIR=%%JAVASHAREDIR%%/${PORTNAME}
NO_STAGE= yes
do-install:
@${ECHO} "Installing JavE6 files in ${DATADIR}..."
@${MKDIR} ${DATADIR}
@${CP} -rv ${WRKDIR}/* ${DATADIR}
@${ECHO} "creating start script ${LNKTARGET}..."
@${ECHO} "#!/bin/sh" > ${DATADIR}/${HLPSKRIPT}
@${ECHO} "JAVA_VERSION=${JAVA_VERSION} exec ${LOCALBASE}/bin/java -jar ${DATADIR}/jave.jar" >> ${DATADIR}/${HLPSKRIPT}
@${CHMOD} a+x ${DATADIR}/${HLPSKRIPT}
@${LN} -sf ${DATADIR}/${HLPSKRIPT} ${LNKTARGET}
@${ECHO} "done."
post-install:
@${ECHO} "Errors may occur while running the program, as it will try to access ${DATADIR}/tmp/ for output."
.include <bsd.port.mk>
|