1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

javax.comm ports should use USE_JAVA

Java ports should use the new USE_JAVA infrastructure to
	auto-discover the installed JRE

Informed maintainer.

PR:		ports/56927
Submitted by:	Nick Sayer <nsayer@kfu.com>
This commit is contained in:
Edwin Groothuis 2003-09-29 11:44:09 +00:00
parent 2f4eff9be7
commit 3f7212d8a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89784
4 changed files with 17 additions and 12 deletions

View File

@ -14,12 +14,15 @@ DISTNAME= freebsd-commapi-0.2
MAINTAINER= ari.suutari@syncrontech.com
COMMENT= Java Communication API for FreeBSD
BUILD_DEPENDS= ${JDKDIR}/bin/javac:${PORTSDIR}/java/jdk13 \
${JDKDIR}/jre/lib/ext/comm.jar:${PORTSDIR}/comms/java-commapi
RUN_DEPENDS= ${JDKDIR}/bin/java:${PORTSDIR}/java/jdk13 \
${JDKDIR}/jre/lib/ext/comm.jar:${PORTSDIR}/comms/java-commapi
BUILD_DEPENDS= ${JDKDIR}/jre/lib/ext/comm.jar:${PORTSDIR}/comms/java-commapi
RUN_DEPENDS= ${JDKDIR}/jre/lib/ext/comm.jar:${PORTSDIR}/comms/java-commapi
USE_JAVA= 1.1+
JDKDIR= ${JAVA_HOME}
JDKDIR= ${LOCALBASE}/jdk1.3.1
MAKE_ENV= JAVA_HOME=${JDKDIR}
PLIST_SUB+= JAVA_HOME=${JAVA_HOME:S/${PREFIX}\///}
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
jdk1.3.1/jre/lib/ext/CommDriver.jar
jdk1.3.1/jre/lib/i386/libSerial.so
jdk1.3.1/jre/lib/i386/libParallel.so
jdk1.3.1/jre/lib/javax.comm.properties
%%JAVA_HOME%%/jre/lib/ext/CommDriver.jar
%%JAVA_HOME%%/jre/lib/i386/libSerial.so
%%JAVA_HOME%%/jre/lib/i386/libParallel.so
%%JAVA_HOME%%/jre/lib/javax.comm.properties

View File

@ -15,7 +15,7 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ari.suutari@syncrontech.com
COMMENT= Sun's Java Communications API
RUN_DEPENDS= ${LOCALBASE}/jdk1.3.1/bin/java:${PORTSDIR}/java/jdk13
USE_JAVA= 1.3+
NO_CDROM= "Sun has a funky license for this software"
RESTRICTED= "no commercial use"
@ -24,10 +24,12 @@ NO_BUILD= YES
WRKSRC= ${WRKDIR}/commapi
DISTDESCR= "the Java Communications API ${PORTVERSION} for Solaris/SPARC"
DOWNLOAD_URL= "http://java.sun.com/products/javacomm/"
PORTDESTDIR= ${PREFIX}/jdk1.3.1/jre/lib/ext
PORTDESTDIR= ${JAVA_HOME}/jre/lib/ext
DISTFILE= ${DISTNAME}${EXTRACT_SUFX}
DISTPATH= ${DISTDIR}/${DISTFILE}
PLIST_SUB+= JAVA_HOME=${JAVA_HOME:S/${PREFIX}\///}
.if defined(BATCH) || defined(PACKAGE_BUILDING)
IGNORE= "Should be fetched manually"
.endif

View File

@ -1 +1 @@
jdk1.3.1/jre/lib/ext/comm.jar
%%JAVA_HOME%%/jre/lib/ext/comm.jar