diff options
author | Herve Quiroz <hq@FreeBSD.org> | 2005-02-03 01:11:00 +0000 |
---|---|---|
committer | Herve Quiroz <hq@FreeBSD.org> | 2005-02-03 01:11:00 +0000 |
commit | 38d38bf8c0a37cd4e78cabdac371bbbcfdc5edbc (patch) | |
tree | 80689b93b903216016cd596f801b8621b63ed755 /graphics/jpatch | |
parent | 6436bcf7c2b8bbc58087aaa39c086991cb70380d (diff) | |
download | ports-38d38bf8c0a37cd4e78cabdac371bbbcfdc5edbc.tar.gz ports-38d38bf8c0a37cd4e78cabdac371bbbcfdc5edbc.zip |
Notes
Diffstat (limited to 'graphics/jpatch')
-rw-r--r-- | graphics/jpatch/Makefile | 10 | ||||
-rw-r--r-- | graphics/jpatch/files/jpatch | 3 | ||||
-rw-r--r-- | graphics/jpatch/files/jpatch.sh.in | 5 |
3 files changed, 11 insertions, 7 deletions
diff --git a/graphics/jpatch/Makefile b/graphics/jpatch/Makefile index 9fddb68575b1..69900270057c 100644 --- a/graphics/jpatch/Makefile +++ b/graphics/jpatch/Makefile @@ -16,17 +16,19 @@ DISTNAME= ${PORTNAME}${PORTVERSION:S/.b/beta/} MAINTAINER= ports@FreeBSD.org COMMENT= A spline based 3D modeling tool -USE_JAVA= 1.4+ +RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper + +USE_JAVA= yes +JAVA_VERSION= 1.4+ NO_BUILD= yes PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \ bin/jpatch -post-patch: - @${SED} 's,%%JAVAJARDIR%%,${JAVAJARDIR},' ${FILESDIR}/jpatch > ${WRKSRC}/jpatch +SUB_FILES= jpatch.sh do-install: ${INSTALL_DATA} ${WRKSRC}/jpatch.jar ${JAVAJARDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/jpatch ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/jpatch.sh ${PREFIX}/bin/jpatch .include <bsd.port.mk> diff --git a/graphics/jpatch/files/jpatch b/graphics/jpatch/files/jpatch deleted file mode 100644 index 03697eee8700..000000000000 --- a/graphics/jpatch/files/jpatch +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -java -jar %%JAVAJARDIR%%/jpatch.jar diff --git a/graphics/jpatch/files/jpatch.sh.in b/graphics/jpatch/files/jpatch.sh.in new file mode 100644 index 000000000000..f06241d0a36a --- /dev/null +++ b/graphics/jpatch/files/jpatch.sh.in @@ -0,0 +1,5 @@ +#!/bin/sh +# +# $FreeBSD$ + +JAVA_VERSION="1.4+" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/jpatch.jar" "$@" |