mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
06e6677793
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
91 lines
2.8 KiB
Makefile
91 lines
2.8 KiB
Makefile
# New ports collection makefile for: JAI Image I/O Tools
|
|
# Date created: 2004-01-10
|
|
# Whom: OISHI Masakuni <yamasa@bsdhouse.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jai-imageio
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= java graphics
|
|
MASTER_SITES= #
|
|
DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION:S/./_/g}-lib-linux-i586
|
|
|
|
MAINTAINER= java@FreeBSD.org
|
|
COMMENT= Plug-ins for the Java Image I/O Framework
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
RESTRICTED= Redistribution is not permitted
|
|
|
|
DOWNLOAD_URL= http://java.sun.com/products/java-media/jai/downloads/download-iio.html
|
|
|
|
TARGET_DIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} JAVA_HOME=${JAVA_HOME:S/^${PREFIX}\///}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
|
|
IGNORE= you must manually fetch the "Linux Install" distribution (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
|
|
.endif
|
|
|
|
.if ${JAVA_PORT_OS} == "native"
|
|
WITH_PLUGINWRAPPER= yes
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/pluginwrapper/jai.so:${PORTSDIR}/www/linuxpluginwrapper
|
|
.endif
|
|
|
|
.if defined(NOINSTALL_IN_JRE)
|
|
PLIST_SUB+= INSTALL_IN_JRE="@comment "
|
|
.else
|
|
PLIST_SUB+= INSTALL_IN_JRE=""
|
|
.endif
|
|
|
|
pre-install:
|
|
.if defined(NOINSTALL_IN_JRE)
|
|
SUB_FILES= pkg-message-jre
|
|
SUB_LIST= TARGET_DIR=${TARGET_DIR}
|
|
.endif
|
|
.if defined(WITH_PLUGINWRAPPER)
|
|
SUB_FILES= pkg-message-libmap
|
|
.if defined(NOINSTALL_IN_JRE)
|
|
SUB_LIST= LIBDIR=${TARGET_DIR}/lib
|
|
.else
|
|
SUB_LIST= LIBDIR=${JAVA_HOME}/jre/lib/i386
|
|
.endif
|
|
.endif
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Creating destination directory..."
|
|
@${MKDIR} ${TARGET_DIR}
|
|
@${ECHO_MSG} " [DONE]"
|
|
@${ECHO_MSG} -n ">> Installing libraries..."
|
|
@${INSTALL_DATA} ${WRKSRC}/COPYRIGHT-jai_imageio.txt ${TARGET_DIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE-jai_imageio.txt ${TARGET_DIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README-jai_imageio.html ${TARGET_DIR}
|
|
@${MKDIR} ${TARGET_DIR}/jar
|
|
@${INSTALL_DATA} ${WRKSRC}/clibwrapper_jiio.jar ${TARGET_DIR}/jar
|
|
@${INSTALL_DATA} ${WRKSRC}/jai_imageio.jar ${TARGET_DIR}/jar
|
|
@${INSTALL_DATA} ${WRKSRC}/mlibwrapper_jai.jar ${TARGET_DIR}/jar
|
|
@${MKDIR} ${TARGET_DIR}/lib
|
|
@${INSTALL_DATA} ${WRKSRC}/libclib_jiio.so ${TARGET_DIR}/lib
|
|
.if !defined(NOINSTALL_IN_JRE)
|
|
@${LN} -sf ${TARGET_DIR}/jar/clibwrapper_jiio.jar ${JAVA_HOME}/jre/lib/ext
|
|
@${LN} -sf ${TARGET_DIR}/jar/jai_imageio.jar ${JAVA_HOME}/jre/lib/ext
|
|
@${TEST} -e ${JAVA_HOME}/jre/lib/ext/mlibwrapper_jai.jar || ${LN} -sf ${TARGET_DIR}/jar/mlibwrapper_jai.jar ${JAVA_HOME}/jre/lib/ext
|
|
@${LN} -sf ${TARGET_DIR}/lib/libclib_jiio.so ${JAVA_HOME}/jre/lib/i386
|
|
.endif
|
|
@${ECHO_MSG} " [DONE]"
|
|
|
|
post-install:
|
|
.if defined(NOINSTALL_IN_JRE) || defined(WITH_PLUGINWRAPPER)
|
|
@${CAT} ${PKGMESSAGE}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|