diff options
author | glewis <glewis@FreeBSD.org> | 2004-02-10 00:22:27 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2004-02-10 00:22:27 +0800 |
commit | dc0cd1cb741553f02eeff8c2486dc76a96d79b24 (patch) | |
tree | 79a4a94de6c6e671ca48d915972c51a148b4508f /java/jmf | |
parent | 9f84b11a50fc639cd7bd8d1ffd1327167566f767 (diff) | |
download | freebsd-ports-gnome-dc0cd1cb741553f02eeff8c2486dc76a96d79b24.tar.gz freebsd-ports-gnome-dc0cd1cb741553f02eeff8c2486dc76a96d79b24.tar.zst freebsd-ports-gnome-dc0cd1cb741553f02eeff8c2486dc76a96d79b24.zip |
. Add a new port, java/jmf:
Java Media Framework API
The Java Media Framework API (JMF) enables audio, video and other
time-based media to be added to Java applications and applets. This
optional package, which can capture, playback, stream and transcode
multiple media formats, extends the multimedia capabilities on the
J2SE platform, and gives multimedia developers a powerful toolkit to
develop scalable, cross-platform technology.
WWW: http://java.sun.com/products/java-media/jmf/
PR: 58524
Submitted by: Anton Yudin <toha@toha.org.ua> (plus some tweaks by me)
Diffstat (limited to 'java/jmf')
-rw-r--r-- | java/jmf/Makefile | 66 | ||||
-rw-r--r-- | java/jmf/distinfo | 1 | ||||
-rw-r--r-- | java/jmf/files/patch-jmfcustomizer | 14 | ||||
-rw-r--r-- | java/jmf/files/patch-jmfinit | 14 | ||||
-rw-r--r-- | java/jmf/files/patch-jmfregistry | 14 | ||||
-rw-r--r-- | java/jmf/files/patch-jmstudio | 14 | ||||
-rw-r--r-- | java/jmf/pkg-descr | 10 | ||||
-rw-r--r-- | java/jmf/pkg-plist | 9 |
8 files changed, 142 insertions, 0 deletions
diff --git a/java/jmf/Makefile b/java/jmf/Makefile new file mode 100644 index 000000000000..ff0003bf30b2 --- /dev/null +++ b/java/jmf/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: Java Media Framework +# Date created: Sat Oct 25 16:05:29 EEST 2003 +# Whom: Anton Yudin <toha@toha.org.ua> +# +# $FreeBSD$ +# + +PORTNAME= jmf +PORTVERSION= 2.1.1e +CATEGORIES= java +MASTER_SITES= #http://java.sun.com/products/java-media/jmf/2.1.1/download.html +DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}-alljava +DISTFILES= ${DISTNAME}.zip + +MAINTAINER= toha@toha.org.ua +COMMENT= Java Media Framework + +USE_JAVA= 1.2+ +USE_ZIP= YES +USE_REINPLACE= YES +NO_BUILD= YES + +PLIST_SUB+= JAVAJARDIR=${JAVAJARDIR} + +WRKSRC= ${WRKDIR}/JMF-${PORTVERSION} + +RESTRICTED= "Redistribution of pre-compiled binaries is not permitted" +NO_CDROM= "Redistribution of pre-compiled binaries is not permitted" +NO_PACKAGE= "Redistribution of pre-compiled binaries is not permitted" + +.if !defined(NOPORTDOCS) +PORTDOCS= * +.endif + +.include <bsd.port.pre.mk> + +# Check for JMF sources +.if !exists(${DISTDIR}/${DISTFILES}) && !defined(PACKAGE_BUILDING) +ECHO_MSG=/usr/bin/printf +IGNORE= :\n\ +Because of licensing restrictions, you must fetch the source distribution\n\ +manually. Please access:\n\ +http://java.sun.com/products/java-media/jmf/2.1.1/download.html\n\ +with a web browser and follow the \"Download JMF ${PORTVERSION}\" link\n\ +Select download format: cross-platform format\n\ +Please place this file in ${DISTDIR}.\n +.endif + +do-configure: + ${RM} ${WRKSRC}/bin/*.orig + for file in `${LS} ${WRKSRC}/bin/jm*`; do \ + ${REINPLACE_CMD} -e "s:%%JAVAJARDIR%%:${JAVAJARDIR}:g" -e "s:%%PREFIX%%:${PREFIX}:g" $${file}; \ + done + ${RM} ${WRKSRC}/bin/*.bak + +do-install: + -${MKDIR} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/jm* ${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${WRKSRC}/lib/jmf.properties \ + ${JAVAJARDIR}/ +.if !defined(NOPORTDOCS) + -${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/ +.endif + +.include <bsd.port.post.mk> diff --git a/java/jmf/distinfo b/java/jmf/distinfo new file mode 100644 index 000000000000..3af28a091661 --- /dev/null +++ b/java/jmf/distinfo @@ -0,0 +1 @@ +MD5 (jmf-2_1_1e-alljava.zip) = 5dafc2469b22d18420ada45972a88ec0 diff --git a/java/jmf/files/patch-jmfcustomizer b/java/jmf/files/patch-jmfcustomizer new file mode 100644 index 000000000000..c34686712b7d --- /dev/null +++ b/java/jmf/files/patch-jmfcustomizer @@ -0,0 +1,14 @@ +--- bin/jmfcustomizer.orig Mon Jan 26 17:10:32 2004 ++++ bin/jmfcustomizer Mon Jan 26 17:27:39 2004 +@@ -64,9 +64,9 @@ + TMPDIR=`dirname $PROGPATH` + JMFHOME=`( cd $TMPDIR/.. && /bin/pwd )`; export JMFHOME + +-CLASSPATH=${JMFHOME}/lib/jmf.jar:${JMFHOME}/lib/sound.jar:${JMFHOME}/lib/customizer.jar:${CLASSPATH}; export CLASSPATH ++CLASSPATH=%%JAVAJARDIR%%/jmf.jar:%%JAVAJARDIR%%/customizer.jar:${CLASSPATH}; export CLASSPATH + +-LD_LIBRARY_PATH=.:/usr/openwin/lib:${JMFHOME}/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH ++LD_LIBRARY_PATH=.:/usr/X11R6/lib:%%PREFIX%%/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH + + # Use this to run with native threads: + # THREADS_FLAG=native; export THREADS_FLAG diff --git a/java/jmf/files/patch-jmfinit b/java/jmf/files/patch-jmfinit new file mode 100644 index 000000000000..b3504ecab84c --- /dev/null +++ b/java/jmf/files/patch-jmfinit @@ -0,0 +1,14 @@ +--- bin/jmfinit.orig Mon Jan 26 17:10:39 2004 ++++ bin/jmfinit Mon Jan 26 17:28:13 2004 +@@ -64,9 +64,9 @@ + TMPDIR=`dirname $PROGPATH` + JMFHOME=`( cd $TMPDIR/.. && /bin/pwd )`; export JMFHOME + +-CLASSPATH=${JMFHOME}/lib/jmf.jar:${JMFHOME}/lib/sound.jar:${CLASSPATH}; export CLASSPATH ++CLASSPATH=%%JAVAJARDIR%%/jmf.jar:${CLASSPATH}; export CLASSPATH + +-LD_LIBRARY_PATH=.:/usr/openwin/lib:${JMFHOME}/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH ++LD_LIBRARY_PATH=.:/usr/X11R6/lib:%%PREFIX%%/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH + + # Use this to run with native threads: + # THREADS_FLAG=native; export THREADS_FLAG diff --git a/java/jmf/files/patch-jmfregistry b/java/jmf/files/patch-jmfregistry new file mode 100644 index 000000000000..18052dcdb3dc --- /dev/null +++ b/java/jmf/files/patch-jmfregistry @@ -0,0 +1,14 @@ +--- bin/jmfregistry.orig Mon Jan 26 17:10:47 2004 ++++ bin/jmfregistry Mon Jan 26 17:28:58 2004 +@@ -64,9 +64,9 @@ + TMPDIR=`dirname $PROGPATH` + JMFHOME=`( cd $TMPDIR/.. && /bin/pwd )`; export JMFHOME + +-CLASSPATH=${JMFHOME}/lib/jmf.jar:${JMFHOME}/lib:${JMFHOME}/lib/sound.jar:${CLASSPATH}; export CLASSPATH ++CLASSPATH=%%JAVAJARDIR%%/jmf.jar:%%JAVAJARDIR%%:${CLASSPATH}; export CLASSPATH + +-LD_LIBRARY_PATH=.:/usr/openwin/lib:${JMFHOME}/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH ++LD_LIBRARY_PATH=.:/usr/X11R6/lib:%%PREFIX%%/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH + + # Use this to run with native threads: + # THREADS_FLAG=native; export THREADS_FLAG diff --git a/java/jmf/files/patch-jmstudio b/java/jmf/files/patch-jmstudio new file mode 100644 index 000000000000..f0a1cb18ea05 --- /dev/null +++ b/java/jmf/files/patch-jmstudio @@ -0,0 +1,14 @@ +--- bin/jmstudio.orig Mon Jan 26 17:10:53 2004 ++++ bin/jmstudio Mon Jan 26 17:15:31 2004 +@@ -64,9 +64,9 @@ + TMPDIR=`dirname $PROGPATH` + JMFHOME=`( cd $TMPDIR/.. && /bin/pwd )`; export JMFHOME + +-CLASSPATH=${JMFHOME}/lib/jmf.jar:${JMFHOME}/lib:${JMFHOME}/lib/sound.jar:${CLASSPATH}; export CLASSPATH ++CLASSPATH=%%JAVAJARDIR%%/jmf.jar:%%JAVAJARDIR%%:${CLASSPATH}; export CLASSPATH + +-LD_LIBRARY_PATH=.:/usr/openwin/lib:${JMFHOME}/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH ++LD_LIBRARY_PATH=.:/usr/X11R6/lib:%%PREFIX%%/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH + + # Use this to run with native threads: + # THREADS_FLAG=native; export THREADS_FLAG diff --git a/java/jmf/pkg-descr b/java/jmf/pkg-descr new file mode 100644 index 000000000000..3ae2247cd9b0 --- /dev/null +++ b/java/jmf/pkg-descr @@ -0,0 +1,10 @@ +Java Media Framework API + +The Java Media Framework API (JMF) enables audio, video and other +time-based media to be added to Java applications and applets. This +optional package, which can capture, playback, stream and transcode +multiple media formats, extends the multimedia capabilities on the +J2SE platform, and gives multimedia developers a powerful toolkit to +develop scalable, cross-platform technology. + +WWW: http://java.sun.com/products/java-media/jmf/ diff --git a/java/jmf/pkg-plist b/java/jmf/pkg-plist new file mode 100644 index 000000000000..f6a8938d1d2f --- /dev/null +++ b/java/jmf/pkg-plist @@ -0,0 +1,9 @@ +bin/jmfcustomizer +bin/jmfinit +bin/jmfregistry +bin/jmstudio +share/java/classes/customizer.jar +share/java/classes/jmf.jar +share/java/classes/jmf.properties +share/java/classes/mediaplayer.jar +share/java/classes/multiplayer.jar |