diff options
author | nork <nork@FreeBSD.org> | 2004-01-11 18:48:33 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2004-01-11 18:48:33 +0800 |
commit | 3824be89acb099afaef6ce5035f279ebb386dd8f (patch) | |
tree | 548868f7d287aa8c199a49f121bf2265f96501f9 /java | |
parent | 82959861bb784ff301417b2005affb24f286643c (diff) | |
download | freebsd-ports-graphics-3824be89acb099afaef6ce5035f279ebb386dd8f.tar.gz freebsd-ports-graphics-3824be89acb099afaef6ce5035f279ebb386dd8f.tar.zst freebsd-ports-graphics-3824be89acb099afaef6ce5035f279ebb386dd8f.zip |
Add jai 1.1.2, which is 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.
PR: CBUG-ML/2572
Submitted by: OISHI Masakuni <yamasa@bsdhouse.org>
Diffstat (limited to 'java')
-rw-r--r-- | java/Makefile | 1 | ||||
-rw-r--r-- | java/jai/Makefile | 89 | ||||
-rw-r--r-- | java/jai/distinfo | 1 | ||||
-rw-r--r-- | java/jai/pkg-descr | 5 | ||||
-rw-r--r-- | java/jai/pkg-message-jre | 7 | ||||
-rw-r--r-- | java/jai/pkg-message-libmap | 7 | ||||
-rw-r--r-- | java/jai/pkg-plist | 20 |
7 files changed, 130 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile index abf21f8ed95..530bbe5dcf7 100644 --- a/java/Makefile +++ b/java/Makefile @@ -27,6 +27,7 @@ SUBDIR += j2sdkee13 SUBDIR += jad SUBDIR += jaf + SUBDIR += jai SUBDIR += jakarta-bcel SUBDIR += jakarta-commons-beanutils SUBDIR += jakarta-commons-cli diff --git a/java/jai/Makefile b/java/jai/Makefile new file mode 100644 index 00000000000..ca2342184df --- /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 00000000000..baffe5c6889 --- /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 00000000000..2568c01ca1c --- /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 00000000000..f9c2961a1de --- /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 00000000000..bb7f7e06061 --- /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 00000000000..cad21df672d --- /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%% |