the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: j3d
Version: 0.9
Revision: 2
Distribution: 10.4, 10.5
Type: java(1.5)
Source: ftp://ftp.j3d.org/pub/code/%n-org-src-%v.tar.gz
Source-MD5: f15b2bfda382a9bce11812ba1a63fd7c
NoSourceDirectory: true
PatchFile: %n.patch
PatchFile-MD5: 1b8baca90c8da78b5fc06eb5b2454994
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
Depends: system-java (>= 1.5), system-java3d, xalan-j, junit, rxtx-comm
BuildDepends: fink (>= 0.24.12), system-java-dev (>= 1.5)
CompileScript: <<
#!/bin/sh -ex
export PROJECT_ROOT=$PWD
cd make
make j3d-jar j3d-javadoc
<<
JarFiles: jars/j3d-org-java3d-all.jar
InstallScript: <<
#!/bin/sh -ex
# Delete all the CVS crap that upstream is too lazy to remove
find . -type d -name CVS -depth -exec rm -rf {} \;
# Configuration files
mkdir -p %i/share/%n/config
cp -R config/* %i/share/%n/config
# Examples
mkdir -p %i/share/%n/examples
cp -R examples/* %i/share/%n/examples
# Java docs
mkdir -p %i/share/doc/%n/javadoc
cp -R docs/* %i/share/doc/%n
<<
DocFiles: src/java/overview.html
Homepage: http://www.j3d.org/
Maintainer: Trevor Harmon
Description: Utility classes for Java 3D
DescDetail: <<
This code is a collection of useful utilities for almost any sort of Java 3D
application. In fact, while this code is Java 3D specific, very little work
needs to be done to use it with any other 3D graphics API, such as OpenGL.
<<
DescPort: <<
The VFX input device is broken because its JNI library is not installed. Also,
the Polhemus and SpaceBall input devices are not installed at all; they are
disabled by default in the upstream package.
<<
License: LGPL
diff -ur j3d.orig/make/Makefile.inc j3d/make/Makefile.inc
--- j3d.orig/make/Makefile.inc 2006-04-16 20:47:48.000000000 -0700
+++ j3d/make/Makefile.inc 2006-10-22 02:05:02.000000000 -0700
@@ -29,12 +29,12 @@
RMDIR = rm -fr
PRINT = @echo
COPY = cp
-COPY_PATH = cp --parents
+COPY_PATH = cp -r
CHMOD = chmod
CD = cd
#JAVAC_FLAGS=-deprecation
#JAVADOC_FLAGS=
-MAKEFLAGS=-s
+#MAKEFLAGS=-s
diff -ur j3d.orig/make/Makefile.jav j3d/make/Makefile.jav
--- j3d.orig/make/Makefile.jav 2006-04-16 20:47:16.000000000 -0700
+++ j3d/make/Makefile.jav 2006-10-22 02:05:02.000000000 -0700
@@ -148,7 +148,7 @@
JAVADOC_OPTIONS = \
-d $(JAVADOC_DIR) \
-sourcepath $(JAVA_SRC_DIR) \
- -classpath $(JAVADOC_CLASSPATH) \
+ -classpath @PREFIX@/share/java/junit/junit.jar:@PREFIX@/share/java/classpathx-comm/comm.jar \
-author \
-use \
-version \
@@ -182,8 +182,8 @@
# Rule 3. Change ".build" tag to "Makefile", thus call the package makefile
# which in turn recalls this makefile with target all (rule 0).
%.build :
- $(PRINT) Building directory $(subst .build,' ',$@)
- @ $(MAKE) -k -f $(subst .build,Makefile,$@) all
+ $(PRINT) Building directory $(subst /.build,'/ ',$@)
+ @ $(MAKE) -k -f $(subst /.build,/Makefile,$@) all
# Rule 4. Call rule 3 for every package
buildall : $(PLIST_BUILD)
@@ -213,7 +213,7 @@
# Rule 3. Change ".build" tag to "Makefile", thus call the package makefile
# which in turn recalls this makefile with target all (rule 10).
%.native :
- $(PRINT) Building native $(subst .build,' ',$@)
+ $(PRINT) Building native $(subst /.build,'/ ',$@)
@ $(MAKE) -k -f $(subst .native,Makefile,$@) jni
# Rule 5. Call rule 2 for every package
diff -ur j3d.orig/make/Makefile.native j3d/make/Makefile.native
--- j3d.orig/make/Makefile.native 2002-11-07 09:54:00.000000000 -0800
+++ j3d/make/Makefile.native 2006-10-22 02:05:02.000000000 -0700
@@ -94,8 +94,8 @@
# Rule 2. Change ".build" tag to "Makefile", thus call the library makefile
# which in turn recalls this makefile with target all (rule 10).
%.build :
- $(PRINT) Building directory $(subst .build,' ',$@)
- $(MAKE) -k -f $(subst .build,Makefile,$@) all
+ $(PRINT) Building directory $(subst /.build,'/ ',$@)
+ $(MAKE) -k -f $(subst /.build,/Makefile,$@) all
# Rule 3. Call rule 2 for every package
buildall : $(LIB_LIST_BUILD)
diff -ur j3d.orig/src/java/Makefile-java3d j3d/src/java/Makefile-java3d
--- j3d.orig/src/java/Makefile-java3d 2006-04-16 21:11:08.000000000 -0700
+++ j3d/src/java/Makefile-java3d 2006-10-22 02:10:47.000000000 -0700
@@ -50,9 +50,9 @@
org.j3d.util.device \
org.j3d.util.interpolator \
org.j3d.util.frustum \
- org.j3d.device.input.spaceball \
+# org.j3d.device.input.spaceball \
org.j3d.device.input.vfx \
- org.j3d.device.input.polhemus \
+# org.j3d.device.input.polhemus \
org.j3d.device.output.elumens \
org.j3d.geom \
org.j3d.geom.hanim \