aboutsummaryrefslogtreecommitdiff
path: root/java/jai
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-01-11 10:48:33 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-01-11 10:48:33 +0000
commit38e6b8061248f2b1c62f8a6873ecc7b38a99d2ac (patch)
treeab2bfb5a608b347fad2c154647df58c84993f775 /java/jai
parent46ca85118af94358a67fc9464d8ac177280f8111 (diff)
downloadports-38e6b8061248f2b1c62f8a6873ecc7b38a99d2ac.tar.gz
ports-38e6b8061248f2b1c62f8a6873ecc7b38a99d2ac.zip
Notes
Diffstat (limited to 'java/jai')
-rw-r--r--java/jai/Makefile89
-rw-r--r--java/jai/distinfo1
-rw-r--r--java/jai/pkg-descr5
-rw-r--r--java/jai/pkg-message-jre7
-rw-r--r--java/jai/pkg-message-libmap7
-rw-r--r--java/jai/pkg-plist20
6 files changed, 129 insertions, 0 deletions
diff --git a/java/jai/Makefile b/java/jai/Makefile
new file mode 100644
index 000000000000..ca2342184dff
--- /dev/null
+++ b/java/jai/Makefile
@@ -0,0 +1,89 @@
+# New ports collection makefile for: JAI
+# Date created: 2004-01-10
+# Whom: OISHI Masakuni <yamasa@bsdhouse.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jai
+PORTVERSION= 1.1.2
+CATEGORIES= java graphics
+MASTER_SITES= #
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}-lib-linux-i586
+
+MAINTAINER= java@FreeBSD.org
+COMMENT= High performance image processing libraries for Java
+
+USE_JAVA= 1.3+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/./_/g}
+NO_BUILD= yes
+ONLY_FOR_ARCHS= i386
+
+RESTRICTED= "Redistribution is not permitted"
+
+DOWNLOAD_URL= http://java.sun.com/products/java-media/jai/downloads/download-${PORTVERSION:S/./_/g}.html
+
+TARGET_DIR= ${JAVASHAREDIR}/${PORTNAME}
+IMAGEIO_DIR= ${JAVASHAREDIR}/jai-imageio
+PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} JAVA_HOME=${JAVA_HOME:S/^${PREFIX}\///} IMAGEIO_DIR=${IMAGEIO_DIR: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 CLASSPATH 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.txt ${TARGET_DIR}
+ @${INSTALL_DATA} ${WRKSRC}/INSTALL-jai.txt ${TARGET_DIR}
+ @${INSTALL_DATA} ${WRKSRC}/LICENSE-jai.txt ${TARGET_DIR}
+ @${INSTALL_DATA} ${WRKSRC}/README-jai.txt ${TARGET_DIR}
+ @${MKDIR} ${TARGET_DIR}/jar
+ @${INSTALL_DATA} ${WRKSRC}/lib/jai_codec.jar ${TARGET_DIR}/jar
+ @${INSTALL_DATA} ${WRKSRC}/lib/jai_core.jar ${TARGET_DIR}/jar
+ @${INSTALL_DATA} ${WRKSRC}/lib/mlibwrapper_jai.jar ${TARGET_DIR}/jar
+ @${MKDIR} ${TARGET_DIR}/lib
+ @${INSTALL_DATA} ${WRKSRC}/lib/libmlib_jai.so ${TARGET_DIR}/lib
+.if !defined(NOINSTALL_IN_JRE)
+ @${LN} -sf ${TARGET_DIR}/jar/jai_codec.jar ${JAVA_HOME}/jre/lib/ext
+ @${LN} -sf ${TARGET_DIR}/jar/jai_core.jar ${JAVA_HOME}/jre/lib/ext
+ @${LN} -sf ${TARGET_DIR}/jar/mlibwrapper_jai.jar ${JAVA_HOME}/jre/lib/ext
+ @${LN} -sf ${TARGET_DIR}/lib/libmlib_jai.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/distinfo b/java/jai/distinfo
new file mode 100644
index 000000000000..baffe5c68896
--- /dev/null
+++ b/java/jai/distinfo
@@ -0,0 +1 @@
+MD5 (jai-1_1_2-lib-linux-i586.tar.gz) = 62d641d17cb5df836e7cd1ddc751546b
diff --git a/java/jai/pkg-descr b/java/jai/pkg-descr
new file mode 100644
index 000000000000..2568c01ca1c2
--- /dev/null
+++ b/java/jai/pkg-descr
@@ -0,0 +1,5 @@
+The Java Advanced Imaging (JAI) API provides a set of object-oriented
+interfaces that support a simple, high-level programming model which lets
+you manipulate images easily.
+
+WWW: http://java.sun.com/products/java-media/jai/
diff --git a/java/jai/pkg-message-jre b/java/jai/pkg-message-jre
new file mode 100644
index 000000000000..f9c2961a1dec
--- /dev/null
+++ b/java/jai/pkg-message-jre
@@ -0,0 +1,7 @@
+The JAI libraries are not installed in JRE, so you have to add
+ %%TARGET_DIR%%/jar/jai_codec.jar
+ %%TARGET_DIR%%/jar/jai_core.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/pkg-message-libmap b/java/jai/pkg-message-libmap
new file mode 100644
index 000000000000..bb7f7e06061f
--- /dev/null
+++ b/java/jai/pkg-message-libmap
@@ -0,0 +1,7 @@
+In order to use the JAI API on FreeBSD native JavaVM,
+describe as follows to your /etc/libmap.conf.
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+[%%LIBDIR%%/libmlib_jai.so]
+libm.so.6 libm.so.2
+libc.so.6 pluginwrapper/jai.so
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/java/jai/pkg-plist b/java/jai/pkg-plist
new file mode 100644
index 000000000000..cad21df672d3
--- /dev/null
+++ b/java/jai/pkg-plist
@@ -0,0 +1,20 @@
+%%T%%/COPYRIGHT-jai.txt
+%%T%%/INSTALL-jai.txt
+%%T%%/LICENSE-jai.txt
+%%T%%/README-jai.txt
+%%T%%/jar/jai_codec.jar
+%%T%%/jar/jai_core.jar
+%%T%%/jar/mlibwrapper_jai.jar
+%%T%%/lib/libmlib_jai.so
+%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/jai_codec.jar %D/%%JAVA_HOME%%/jre/lib/ext
+%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/jai_core.jar %D/%%JAVA_HOME%%/jre/lib/ext
+%%INSTALL_IN_JRE%%@exec /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/libmlib_jai.so %D/%%JAVA_HOME%%/jre/lib/i386
+%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/jai_codec.jar
+%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/jai_core.jar
+%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/mlibwrapper_jai.jar
+%%INSTALL_IN_JRE%%@unexec [ ! -e %D/%%IMAGEIO_DIR%%/jar/mlibwrapper_jai.jar ] || /bin/ln -sf %D/%%IMAGEIO_DIR%%/jar/mlibwrapper_jai.jar %D/%%JAVA_HOME%%/jre/lib/ext
+%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/i386/libmlib_jai.so
+@dirrm %%T%%/lib
+@dirrm %%T%%/jar
+@dirrm %%T%%