debian/0000755000000000000000000000000012160611635007167 5ustar debian/watch0000644000000000000000000000020712150652755010226 0ustar version=3 opts="uversionmangle=s/_/./g,dversionmangle=s/\+dfsg//" \ https://java3d.java.net/binary-builds.html .*/j3d-([\d_]+)-src.zip debian/libjava3d-java-doc.doc-base0000644000000000000000000000063711143037576014123 0ustar Document: libjava3d-java-doc Title: Programmer API for Java3d Author: Sun Microsystems Abstract: This is the programmer API of Java3d which is a free Java class library which enables the creation of three-dimensional graphics applications and Internet-based 3D applets. Section: Programming Format: HTML Index: /usr/share/doc/libjava3d-java-doc/api/index.html Files: /usr/share/doc/libjava3d-java-doc/api/*.html debian/README.source0000644000000000000000000000030012150652755011346 0ustar Information about java3d ------------------------ All unzipsfx binaries have been removed from the original tarball due to the lack of source. They were not used in the build process anyway. debian/rules0000755000000000000000000000303611674373233010261 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := ant-nodeps vecmath DEB_ANT_BUILDFILE := j3d-core/build.xml DEB_ANT_CLEAN_TARGET := clean DEB_ANT_BUILD_TARGET := echo jar docs DEB_ANT_ARGS := -Dbuild.type=fcs install/libjava3d-java:: set -e ; for jar in j3dcore j3dutils ; do \ install -m 644 -D j3d-core/build/default/opt/lib/ext/$$jar.jar \ debian/libjava3d-java/usr/share/java/$$jar-$(DEB_UPSTREAM_VERSION).jar; \ ln -s $$jar-$(DEB_UPSTREAM_VERSION).jar debian/libjava3d-java/usr/share/java/$$jar.jar ; \ done install/libjava3d-jni:: install -m 644 -D j3d-core/build/default/opt/native/libj3dcore-ogl.so \ debian/libjava3d-jni/usr/lib/jni/libj3dcore-ogl.so install/libjava3d-java-doc:: mkdir -p debian/libjava3d-java-doc/usr/share/doc/libjava3d-java-doc platform=`cd j3d-core; ant echo | grep platform | sed -e 's/.*= //'` ; \ cp -r j3d-core/build/$$platform/javadocs/docs-public \ debian/libjava3d-java-doc/usr/share/doc/libjava3d-java-doc/api CVS_TAG=rel-$(subst .,_,$(subst +dfsg,,$(DEB_UPSTREAM_VERSION)))-fcs get-orig-source:: mkdir -p java3d-$(DEB_UPSTREAM_VERSION) cd java3d-$(DEB_UPSTREAM_VERSION) && cvs -d :pserver:guest@cvs.dev.java.net:/cvs export -r $(CVS_TAG) j3d-core j3d-core-utils tar -zcv --exclude .cvsignore \ --exclude unzipsfx \ -f ../java3d_$(DEB_UPSTREAM_VERSION).orig.tar.gz java3d-$(DEB_UPSTREAM_VERSION) rm -rf java3d-$(DEB_UPSTREAM_VERSION) debian/copyright0000644000000000000000000003216312150652755011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Java 3D Source: http://java3d.java.net Files: j3d-core/* Copyright: 1997-2008, Sun Microsystems, Inc. License: GPL-2 with classpath exception On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-2' file. . Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. . As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. Files: j3d-core/src/native/ogl/panoramiXext.h Copyright: 1991,1997, Digital Equipment Corporation, Maynard, Massachusetts. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . Except as contained in this notice, the name of Digital Equipment Corporation shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Digital Equipment Corporation. Files: j3d-core/src/native/ogl/glext.h j3d-core/src/native/ogl/wglext.h Copyright: 2007, The Khronos Group Inc. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Materials. . THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. Files: j3d-core-utils/* Copyright: 2007, Sun Microsystems, Inc. All rights reserved. License: other Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistribution in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of Sun Microsystems, Inc. or the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. . This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility. Files: j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/BBox.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Basic.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/BottleNeck.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Bridge.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Clean.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Degenerate.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Desperate.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Distance.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/EarClip.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Heap.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/HeapNode.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Left.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/ListNode.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/NoHash.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Numerics.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Orientation.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/PntNode.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Project.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Simple.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Stripifier.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/StripifierStats.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Triangle.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/geometry/Triangulator.java Copyright: 2007, Sun Microsystems, Inc. All rights reserved. License: other Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistribution in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of Sun Microsystems, Inc. or the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. . This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility. Files: j3d-core-utils/src/classes/share/com/sun/j3d/internal/Distance.java Copyright: 2007, Sun Microsystems, Inc. All rights reserved. License: other | LGPL-2.1 On Debian systems the full text of the GNU Lesser General Public License can be found in the `/usr/share/common-licenses/LGPL-2.1' file. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistribution in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of Sun Microsystems, Inc. or the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. . This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility. Files: j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/MainFrame.java j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/JMainFrame.java Copyright: 2007, Sun Microsystems, Inc. All rights reserved. 1996, Jef Poskanzer . All rights reserved. License: other | BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistribution in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of Sun Microsystems, Inc. or the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. . This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility. Files: debian/* Copyright: 2009, Jonny Lamb License: GPLv2 On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-2' file. debian/source/0000755000000000000000000000000011674373233010477 5ustar debian/source/format0000644000000000000000000000001411674373233011705 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012160611605010613 5ustar debian/patches/04_no_maxmemory.patch0000644000000000000000000000252011255372212014652 0ustar Index: java3d-1.5.2+dfsg/j3d-core/src/classes/build.xml =================================================================== --- java3d-1.5.2+dfsg.orig/j3d-core/src/classes/build.xml 2009-08-22 12:12:44.000000000 +0200 +++ java3d-1.5.2+dfsg/j3d-core/src/classes/build.xml 2009-08-22 12:12:53.000000000 +0200 @@ -242,7 +242,6 @@ @@ -283,7 +282,6 @@ debian/patches/03_fix_ia64_ftbfs.patch0000644000000000000000000000521012150652755014743 0ustar Index: java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-ia64.xml =================================================================== --- java3d-1.5.2+dfsg.orig/j3d-core/src/native/ogl/build-linux-ia64.xml 2008-02-28 21:18:00.000000000 +0100 +++ java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-ia64.xml 2009-09-15 11:58:18.000000000 +0200 @@ -22,14 +22,14 @@ - + - + debian/patches/05_pic_i586.patch0000644000000000000000000000424211255372212013472 0ustar Index: java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-i586.xml =================================================================== --- java3d-1.5.2+dfsg.orig/j3d-core/src/native/ogl/build-linux-i586.xml 2009-09-15 12:00:21.000000000 +0200 +++ java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-i586.xml 2009-09-15 12:00:47.000000000 +0200 @@ -25,7 +25,7 @@ - + @@ -38,7 +38,7 @@ - + debian/patches/05_pic_amd64.patch0000644000000000000000000000423511255372212013714 0ustar Index: java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-amd64.xml =================================================================== --- java3d-1.5.2+dfsg.orig/j3d-core/src/native/ogl/build-linux-amd64.xml 2009-09-15 11:59:43.000000000 +0200 +++ java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-amd64.xml 2009-09-15 12:00:03.000000000 +0200 @@ -25,7 +25,7 @@ - + @@ -38,7 +38,7 @@ - + debian/patches/02_fix_generic_ftbfs.patch0000644000000000000000000002076612160611605015616 0ustar Index: java3d-1.5.2+dfsg/j3d-core/build.xml =================================================================== --- java3d-1.5.2+dfsg.orig/j3d-core/build.xml 2008-05-23 20:31:19.000000000 +0000 +++ java3d-1.5.2+dfsg/j3d-core/build.xml 2012-10-13 11:09:55.000000000 +0000 @@ -196,6 +196,15 @@ + + + + + + + + + @@ -232,7 +241,7 @@ + depends="init, setupBuildType, setupSolaris, setupSolarisX86, setupLinux, setupLinuxAmd64, setupLinuxIA64, setupLinuxPPC, setupLinuxGeneric, setupWindows, setupWindowsAmd64, setupMacOSX, setupJogl"> @@ -382,6 +391,13 @@ + + + + + + + Index: java3d-1.5.2+dfsg/j3d-core/src/native/build.xml =================================================================== --- java3d-1.5.2+dfsg.orig/j3d-core/src/native/build.xml 2008-02-28 20:17:58.000000000 +0000 +++ java3d-1.5.2+dfsg/j3d-core/src/native/build.xml 2012-10-13 11:10:00.000000000 +0000 @@ -45,6 +45,13 @@ + + + + + + + @@ -62,7 +69,7 @@ - + @@ -112,6 +119,13 @@ + + + + + + + @@ -128,7 +142,7 @@ - + Index: java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-generic.xml =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-generic.xml 2012-10-13 11:11:17.000000000 +0000 @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + debian/patches/series0000644000000000000000000000023612150652755012043 0ustar 01_fix_powerpc_ftbfs.patch 02_fix_generic_ftbfs.patch 03_fix_ia64_ftbfs.patch 04_no_maxmemory.patch 05_pic_amd64.patch 05_pic_i586.patch 06_java-compat.patch debian/patches/01_fix_powerpc_ftbfs.patch0000644000000000000000000000501311255372212015646 0ustar Index: java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-ppc.xml =================================================================== --- java3d-1.5.2+dfsg.orig/j3d-core/src/native/ogl/build-linux-ppc.xml 2008-02-28 21:18:00.000000000 +0100 +++ java3d-1.5.2+dfsg/j3d-core/src/native/ogl/build-linux-ppc.xml 2009-09-15 11:56:23.000000000 +0200 @@ -23,12 +23,12 @@ - + - + debian/patches/06_java-compat.patch0000644000000000000000000000535312150652755014363 0ustar Description: FTBFS with java7 * Replace use of com.sun.image.codec.jpeg.* with ImageIO. * Extend class-path for javah Author: Niels Thykier Reviewed-by: James Page --- java3d-1.5.2+dfsg.orig/j3d-core-utils/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/ImageComponentState.java +++ java3d-1.5.2+dfsg/j3d-core-utils/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/ImageComponentState.java @@ -61,10 +61,7 @@ import com.sun.j3d.utils.scenegraph.io.r import com.sun.j3d.utils.scenegraph.io.retained.SGIORuntimeException; import java.awt.color.ColorSpace; import java.awt.image.DataBuffer; -import com.sun.image.codec.jpeg.JPEGImageEncoder; -import com.sun.image.codec.jpeg.JPEGImageDecoder; -import com.sun.image.codec.jpeg.JPEGCodec; -import com.sun.image.codec.jpeg.JPEGEncodeParam; +import javax.imageio.ImageIO; public abstract class ImageComponentState extends NodeComponentState { @@ -203,10 +200,9 @@ public abstract class ImageComponentStat private void writeBufferedImageJpegCompression( DataOutput out, BufferedImage image ) throws IOException { ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); - JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( byteStream ); - - encoder.encode( image ); - byteStream.close(); + if (!ImageIO.write(image, "jpeg", byteStream)) { + throw new AssertionError("No JPEG encoder available"); + } byte[] buffer = byteStream.toByteArray(); out.writeInt( buffer.length ); @@ -261,11 +257,15 @@ public abstract class ImageComponentStat byte[] buffer = new byte[ size ]; in.readFully( buffer ); ByteArrayInputStream byteStream = new ByteArrayInputStream( buffer ); - - JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder( byteStream ); - byteStream.close(); - - return decoder.decodeAsBufferedImage(); + try { + BufferedImage img = ImageIO.read(byteStream); + if (img == null) { + throw new AssertionError("No ImageReader available."); + } + return img; + } finally { + byteStream.close(); + } } private void writeColorModel( DataOutput out, ColorModel colorModel ) throws IOException { --- java3d-1.5.2+dfsg.orig/j3d-core/src/native/build.xml +++ java3d-1.5.2+dfsg/j3d-core/src/native/build.xml @@ -361,6 +361,7 @@ + debian/compat0000644000000000000000000000000211674373233010375 0ustar 7 debian/control0000644000000000000000000000437112160611605010574 0ustar Source: java3d Section: java Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Java Maintainers Uploaders: Onkar Shinde , Emmanuel Bourg , Torsten Werner Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant-optional, libvecmath-java, mesa-common-dev, libgl1-mesa-dev, libxext-dev, libxt-dev Standards-Version: 3.9.4 Homepage: http://java3d.dev.java.net Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/java3d/ Vcs-Browser: http://svn.debian.org/viewsvn/pkg-java/trunk/java3d/ Package: libjava3d-java Architecture: all Suggests: libjava3d-java-doc Depends: ${misc:Depends}, libjava3d-jni (>= ${source:Version}), libvecmath-java Description: Java 3D API (java library) The Java 3D API enables the creation of three-dimensional graphics applications and Internet-based 3D applets. It provides high-level constructs for creating and manipulation 3D geometry and building the structures used in rendering that geometry. With this software, you can efficiently define and render very large virtual worlds. . This package contains the java library. Package: libjava3d-jni Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Java3D API (java jni library) The Java 3D API enables the creation of three-dimensional graphics applications and Internet-based 3D applets. It provides high-level constructs for creating and manipulation 3D geometry and building the structures used in rendering that geometry. With this software, you can efficiently define and render very large virtual worlds. . This package contains the java jni library. Package: libjava3d-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Suggests: libjava3d-java Description: Documentation for the Java3D API The Java 3D API enables the creation of three-dimensional graphics applications and Internet-based 3D applets. It provides high-level constructs for creating and manipulation 3D geometry and building the structures used in rendering that geometry. With this software, you can efficiently define and render very large virtual worlds. . This package contains the API documentation. debian/changelog0000644000000000000000000001327512160611635011051 0ustar java3d (1.5.2+dfsg-9ubuntu1) saucy; urgency=low * Resynchronise with Debian. Remaining changes: - 02_fix_generic_ftbfs.patch: Link with gcc -shared, not ld, don't explicitly link with libc. -- Colin Watson Thu, 20 Jun 2013 15:37:14 +0100 java3d (1.5.2+dfsg-9) unstable; urgency=low * Team upload. * Fixed the watch file * Updated Standards-Version to 3.9.4 (no changes) * Removed the deprecated DMUA flag * Removed the obsolete patching instructions in debian/README.source * debian/copyright: Updated to comply with the DEP5 format -- Emmanuel Bourg Sun, 28 Apr 2013 23:35:42 +0200 java3d (1.5.2+dfsg-8ubuntu1) quantal; urgency=low * 02_fix_generic_ftbfs.patch: Link with gcc -shared, not ld, don't explicitly link with libc (Colin Watson, Matthias Klose). Closes: #559767. -- Colin Watson Fri, 12 Oct 2012 17:45:28 +0100 java3d (1.5.2+dfsg-8) unstable; urgency=low * Team upload. * Remove -G flag from ia64 compiler flags. (Closes: #650799) * Replace use of com.sun JPEG library with ImageIO. -- Niels Thykier Sun, 24 Jun 2012 22:02:35 +0200 java3d (1.5.2+dfsg-7) unstable; urgency=low [Miguel Landaeta] * Team upload. * Switch to default-jdk. (Closes: #640937). * Bump Standards-Version to 3.9.2. No changes were required. [tony mancill] * Update Vcs-Svn URL in debian/control. -- Miguel Landaeta Thu, 08 Sep 2011 19:56:44 -0430 java3d (1.5.2+dfsg-6) unstable; urgency=low [ Jonny Lamb ] * Removed myself from Uploaders. [ Torsten Werner ] * Remove Petter from Uploaders. * Switch to debhelper level 7. * Switch to source format 3.0. * Remove Java runtime from Depends. * Update Standards-Version: 3.9.1. -- Torsten Werner Tue, 30 Aug 2011 20:03:52 +0200 java3d (1.5.2+dfsg-5) unstable; urgency=low [ Sylvestre Ledru ] * Remove myself from the package [ Onkar Shinde ] * debian/control - Change build dependency default-jdk to openjdk-6-jdk. This library uses Sun specific APIs. This change will put package in DEPWAIT on certain arch. But DEPWAIT is better than FTBFS. (Closes: #559768) - Change dependency default-jre to openjdk-6-jre. - Remove -XS-Autobuild. Not needed anymore. - Update standards version to 3.8.3. * debian/rules - Change JAVA_HOME to correspond to openjdk. * debian/patches/02_fix_generic_ftbfs.patch - Allow the build to continue on kFreeBSD as well. (Closes: #559766) -- Onkar Shinde Sat, 09 Jan 2010 18:19:12 +0530 java3d (1.5.2+dfsg-4) unstable; urgency=low * Add missing compiler option -fPIC. (hopefully closes: #545840) -- Torsten Werner Tue, 15 Sep 2009 12:01:30 +0200 java3d (1.5.2+dfsg-3) unstable; urgency=low [ Onkar Shinde ] * debian/patches/02_fix_generic_ftbfs.patch - Improve the patch as per my understanding of the build system. (Closes: #541384) * debian/patches/03_fix_ia64_ftbfs.patch - Add fix for FTBFS on ia64. [ Torsten Werner ] * Add myself to Uploaders. * Change patch system to quilt. * Add patch 04_no_maxmemory.patch: - Do not set maxmemory attribute in ant's javadoc task. -- Torsten Werner Sat, 22 Aug 2009 12:14:24 +0200 java3d (1.5.2+dfsg-2) unstable; urgency=low * debian/control - Add myself to uploaders. - Move default-jdk to Build-Depends as there is no easy way to split builds of arch:all and arch:any packages. * debian/rules - Include simple patchsys makefile. - Add echo target for debugging purpose. - Add ant argument to set build type. * debian/patches/01_fix_powerpc_ftbfs.patch - Add fix for FTBFS on powerpc. * debian/patches/02_fix_generic_ftbfs.patch - Add fix for FTBFS on architectures not handled by current build system. * debian/README.source - Add to comply with policy. -- Onkar Shinde Thu, 13 Aug 2009 10:23:33 +0530 java3d (1.5.2+dfsg-1) unstable; urgency=low [ Sylvestre Ledru ] * Change version number scheme to match upstream. * debian/control: Added me to Uploaders. * debian/watch: Added watch file. [ Jonny Lamb ] * debian/rules: + Set JAVA_HOME. (Closes: #518775) + Update DEB_VER. * debian/watch: Added dversionmangle to remove .dfsg from version. * debian/control: Changed libjava3d-java's Section to java. [ Onkar Shinde ] * debian/control - Use default-jdk build dependency since now default-jdk is openjdk. - Remove default-jdk-builddep build dependency since we are not building any -gcj package. - Change runtime dependency to default-jre | java5-runtime as per the JVM target version specified in build.xml. - Change standards version to 3.8.2. No change needed. * debian/rules - Update JAVA_HOME to correspond to default-jdk. - Remove unnecessary reference to ant-launcher jar file. - Add DEB_ANT_BUILDFILE and set it to the build.xml in j3d-core. - Remove DEB_BUILDDIR. - Use cvs export instead of checkout. Doesn't need user interaction. - Use the release tag instead of getting latest files in cvs. Release tag is derived from upstream version. - Change directory name where code is checked out from cvs to the usual - format. * debian/watch - Simplify the expression for zip file name. Use uversionmangle for proper version matching. -- Jonny Lamb Tue, 11 Aug 2009 09:48:38 +0100 java3d (0.0.cvs.20090202.dfsg-1) unstable; urgency=low * Initial Release. * debian/rules: Remove unzipsfx executables from orig.tar.gz. -- Jonny Lamb Tue, 03 Feb 2009 11:39:00 +0000