freebsd-ports/comms/java-commapi/Makefile
Mark Linimon 06e6677793 Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
2011-07-21 05:03:02 +00:00

48 lines
1.3 KiB
Makefile

# New ports collection makefile for: Java Commapi
# Date created: 2001/07/01
# Whom: Ari Suutari <ari.suutari@syncrontech.com>
#
# $FreeBSD$
#
PORTNAME= java-commapi
PORTVERSION= 2.0.3
PORTREVISION= 3
CATEGORIES= comms java
MASTER_SITES= #
DISTNAME= comm${PORTVERSION}
MAINTAINER= ari.suutari@syncrontech.com
COMMENT= Sun's Java Communications API
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
NO_CDROM= Sun has a funky license for this software
RESTRICTED= no commercial use
NO_BUILD= YES
WRKSRC= ${WRKDIR}
DISTDESCR= "the Java Communications API ${PORTVERSION} for Generic Platform"
DOWNLOAD_URL= "https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=JAVACOMM-3.0.1-LX-SP-G-F@CDS-CDS_SMI"
PORTDESTDIR= ${JAVA_HOME}/jre/lib/ext
DISTFILE= ${DISTNAME}${EXTRACT_SUFX}
DISTPATH= ${DISTDIR}/${DISTFILE}
PLIST_SUB+= JAVA_HOME=${JAVA_HOME:S/${PREFIX}\///}
PLIST_FILES+= %%JAVA_HOME%%/jre/lib/ext/comm.jar
.include <bsd.port.pre.mk>
.if !exists(${DISTPATH}) && !defined(PACKAGE_BUILDING)
IGNORE=You must manually fetch ${DISTDESCR} (${DISTFILE}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
do-install:
@${ECHO} -n ">> Copying comm.jar to ${PORTDESTDIR}..."
@${INSTALL_DATA} ${WRKSRC}/comm.jar ${PORTDESTDIR}
@${ECHO} " [ DONE ]"
.include <bsd.port.post.mk>