aboutsummaryrefslogtreecommitdiffstats
path: root/java/jai-imageio
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2004-01-11 18:53:07 +0800
committernork <nork@FreeBSD.org>2004-01-11 18:53:07 +0800
commit9e87b35ec7c6efdd248f66b95267935652debd9d (patch)
treec11a45a6ac5b717555dc65596d68e2f325a51a5a /java/jai-imageio
parent0a14eb5dce2590e90e14fff9033828929df31ba0 (diff)
downloadfreebsd-ports-gnome-9e87b35ec7c6efdd248f66b95267935652debd9d.tar.gz
freebsd-ports-gnome-9e87b35ec7c6efdd248f66b95267935652debd9d.tar.zst
freebsd-ports-gnome-9e87b35ec7c6efdd248f66b95267935652debd9d.zip
Add jai-imageio 1.0, which is JAI Image I/O Tools provides reader,
writer, and stream plug-ins for the Java Image I/O Framework and Image I/O-based read and write operations for Java Advanced Imaging. PR: CBUG-ML/2572 Submitted by: OISHI Masakuni <yamasa@bsdhouse.org> Committed at: CBUG 2004 New Year Party
Diffstat (limited to 'java/jai-imageio')
-rw-r--r--java/jai-imageio/Makefile87
-rw-r--r--java/jai-imageio/distinfo1
-rw-r--r--java/jai-imageio/pkg-descr8
-rw-r--r--java/jai-imageio/pkg-message-jre7
-rw-r--r--java/jai-imageio/pkg-message-libmap7
-rw-r--r--java/jai-imageio/pkg-plist18
6 files changed, 128 insertions, 0 deletions
diff --git a/java/jai-imageio/Makefile b/java/jai-imageio/Makefile
new file mode 100644
index 000000000000..25102830e602
--- /dev/null
+++ b/java/jai-imageio/Makefile
@@ -0,0 +1,87 @@
+# 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
+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= 1.4+
+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_OS} == "FreeBSD"
+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)
+ @${SED} -e "s:%%TARGET_DIR%%:${TARGET_DIR}:g" ${MASTERDIR}/pkg-message-jre > ${PKGMESSAGE}
+.endif
+.if defined(WITH_PLUGINWRAPPER)
+.if defined(NOINSTALL_IN_JRE)
+ @${ECHO_CMD} >> ${PKGMESSAGE}
+ @${SED} -e "s:%%LIBDIR%%:${TARGET_DIR}/lib:g" ${MASTERDIR}/pkg-message-libmap >> ${PKGMESSAGE}
+.else
+ @${SED} -e "s:%%LIBDIR%%:${JAVA_HOME}/jre/lib/i386:g" ${MASTERDIR}/pkg-message-libmap > ${PKGMESSAGE}
+.endif
+.endif
+
+do-install:
+ @${ECHO_CMD} -n ">> Creating destination directory..."
+ @${MKDIR} ${TARGET_DIR}
+ @${ECHO_CMD} " [DONE]"
+ @${ECHO_CMD} -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_CMD} " [DONE]"
+
+post-install:
+.if defined(NOINSTALL_IN_JRE) || defined(WITH_PLUGINWRAPPER)
+ @${CAT} ${PKGMESSAGE}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/java/jai-imageio/distinfo b/java/jai-imageio/distinfo
new file mode 100644
index 000000000000..2a2a00e3fadd
--- /dev/null
+++ b/java/jai-imageio/distinfo
@@ -0,0 +1 @@
+MD5 (jai_imageio-1_0-lib-linux-i586.tar.gz) = fe907365d9048818fe82c6989d1781bb
diff --git a/java/jai-imageio/pkg-descr b/java/jai-imageio/pkg-descr
new file mode 100644
index 000000000000..19f33a32741a
--- /dev/null
+++ b/java/jai-imageio/pkg-descr
@@ -0,0 +1,8 @@
+JAI Image I/O Tools provides reader, writer, and stream plug-ins for
+the Java Image I/O Framework and Image I/O-based read and write
+operations for Java Advanced Imaging. Reader-writer plug-ins are
+supplied for the BMP, JPEG, JPEG 2000, PNG, PNM, Raw, TIFF, and WBMP
+image formats. The supplied streams and associated service providers
+use the New I/O APIs.
+
+WWW: http://java.sun.com/products/java-media/jai/
diff --git a/java/jai-imageio/pkg-message-jre b/java/jai-imageio/pkg-message-jre
new file mode 100644
index 000000000000..09bcfc552f4c
--- /dev/null
+++ b/java/jai-imageio/pkg-message-jre
@@ -0,0 +1,7 @@
+The JAI Image I/O Tools are not installed in JRE, so you have to add
+ %%TARGET_DIR%%/jar/clibwrapper_jiio.jar
+ %%TARGET_DIR%%/jar/jai_imageio.jar
+ %%TARGET_DIR%%/jar/mlibwrapper_jai.jar
+to the CLASSPATH environment variable, and add
+ %%TARGET_DIR%%/lib
+to the LD_LIBRARY_PATH environment variable.
diff --git a/java/jai-imageio/pkg-message-libmap b/java/jai-imageio/pkg-message-libmap
new file mode 100644
index 000000000000..3de1bfbe677b
--- /dev/null
+++ b/java/jai-imageio/pkg-message-libmap
@@ -0,0 +1,7 @@
+In order to use the JAI Image I/O Tools on FreeBSD native JavaVM,
+describe as follows to your /etc/libmap.conf.
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+[%%LIBDIR%%/libclib_jiio.so]
+libm.so.6 libm.so.2
+libc.so.6 pluginwrapper/jai.so
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/java/jai-imageio/pkg-plist b/java/jai-imageio/pkg-plist
new file mode 100644
index 000000000000..5cf696a628de
--- /dev/null
+++ b/java/jai-imageio/pkg-plist
@@ -0,0 +1,18 @@
+%%T%%/COPYRIGHT-jai_imageio.txt
+%%T%%/LICENSE-jai_imageio.txt
+%%T%%/README-jai_imageio.html
+%%T%%/jar/clibwrapper_jiio.jar
+%%T%%/jar/jai_imageio.jar
+%%T%%/jar/mlibwrapper_jai.jar
+%%T%%/lib/libclib_jiio.so
+%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/clibwrapper_jiio.jar %D/%%JAVA_HOME%%/jre/lib/ext
+%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/jai_imageio.jar %D/%%JAVA_HOME%%/jre/lib/ext
+%%INSTALL_IN_JRE%%@exec [ -e %D/%%JAVA_HOME%%/jre/lib/ext/mlibwrapper_jai.jar ] || /bin/ln -sf %D/%%T%%/jar/mlibwrapper_jai.jar %D/%%JAVA_HOME%%/jre/lib/ext
+%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/lib/libclib_jiio.so %D/%%JAVA_HOME%%/jre/lib/i386
+%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/clibwrapper_jiio.jar
+%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/jai_imageio.jar
+%%INSTALL_IN_JRE%%@unexec [ -e %D/%%JAVA_HOME%%/jre/lib/ext/mlibwrapper_jai.jar ] || /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/mlibwrapper_jai.jar
+%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/i386/libclib_jiio.so
+@dirrm %%T%%/lib
+@dirrm %%T%%/jar
+@dirrm %%T%%