the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: jogl
Version: 1.1.1
Revision: 2
Type: java
Source: mirror:sourceforge:fink/%n-%v-src.zip
Source-MD5: a5d6b630a17b41227ab41506c826277b
SourceDirectory: %n
# ant-optional is required for the Antlr task
BuildDepends: ant-optional, antlr (>= 2.7.5), fink (>= 0.24.12)
Depends: system-java
PatchFile: %n.patch
PatchFile-MD5: 462414ba46d59c0ec423304cd2083757
PatchScript: sed -e 's|@PREFIX@|%p|g' -e 's|@PACKAGE@|%n|g' < %{PatchFile} | patch -p1
CompileScript: <<
#!/bin/sh -ex
unset CLASSPATH # JOGL doesn't like finding itself on the CLASSPATH
cd make
ant macosx
ant javadoc
# The following line, which generates additional JavaDoc files, has been disabled
# because it takes way too long.
# ant javadoc.dev.macosx
<<
InstallScript: <<
#!/bin/sh -ex
# Copy the JNI library
mkdir -p %i/lib
cp build/obj/libjogl.jnilib %i/lib
# Copy the documentation
mkdir -p %i/share/doc/%n
cp -R doc/* %i/share/doc/%n
<<
PostInstScript: ln -s %p/lib/lib%n.jnilib /Library/Java/Extensions
PostRmScript: rm -f /Library/Java/Extensions/lib%n.jnilib
JarFiles: build/jogl.jar
Homepage: http://jogl.dev.java.net/
Maintainer: Trevor Harmon
Description: OpenGL bindings for Java
DescDetail: <<
The JOGL Project hosts a reference implementation of the Java bindings for
OpenGL API, and is designed to provide hardware-supported 3D graphics to
applications written in Java. It is part of a suite of open-source technologies
initiated by the Game Technology Group at Sun Microsystems. JOGL provides full
access to the APIs in the OpenGL 2.0 specification as well as nearly all vendor
extensions, and integrates with the AWT and Swing widget sets.
<<
DescPackaging: <<
JOGL 1.1.1 does not support Mac OS X on Intel, only PowerPC. The current patch
modifies StructLayout.java to fix this problem. When JOGL 1.1.2 is released,
this modification will no longer be necessary and can be removed.
<<
License: BSD
diff -Nurd jogl.old/make/build.xml jogl/make/build.xml
--- jogl.old/make/build.xml 2005-05-13 16:35:36.000000000 -0400
+++ jogl/make/build.xml 2008-10-23 12:11:50.000000000 -0400
@@ -73,7 +73,7 @@
-
+
@@ -83,7 +83,7 @@
-
+
@@ -802,7 +802,7 @@
-
outfile="${obj}/${output.lib.name}"
optimize="${c.compiler.optimise}"
@@ -843,14 +843,14 @@
-
+ suffix or at least understand the override from bundle to jnilib -->
+
-
+ suffix or at least understand the override from bundle to jnilib -->
+
diff -Nurd jogl.old/make/jogl.properties jogl/make/jogl.properties
--- jogl.old/make/jogl.properties 2005-06-15 18:46:40.000000000 -0400
+++ jogl/make/jogl.properties 2008-10-23 12:11:50.000000000 -0400
@@ -20,7 +20,7 @@
# Linux
# antlr.jar=/home/kbr/antlr-2.7.2/antlr.jar
# Mac OS X
-# antlr.jar=/Users/kbr/antlr-2.7.2/antlr.jar
+antlr.jar=@PREFIX@/share/java/antlr/antlr.jar
# Solaris
# antlr.jar=/export/kbr/ANTLR/antlr-2.7.2/antlr.jar
diff -Nurd jogl.old/src/net/java/games/gluegen/StructLayout.java jogl/src/net/java/games/gluegen/StructLayout.java
--- jogl.old/src/net/java/games/gluegen/StructLayout.java 2005-05-27 14:24:16.000000000 -0400
+++ jogl/src/net/java/games/gluegen/StructLayout.java 2008-10-23 12:12:04.000000000 -0400
@@ -128,6 +128,8 @@
(os.startsWith("sunos") && cpu.equals("sparc")) ||
(os.startsWith("sunos") && cpu.equals("x86")) ||
(os.startsWith("mac os") && cpu.equals("ppc")) ||
+ (os.startsWith("mac os") && cpu.equals("i386")) ||
+ (os.startsWith("mac os") && cpu.equals("x86_64")) ||
(os.startsWith("freebsd") && cpu.equals("i386"))
) {
// FIXME: make struct alignment configurable? May need to change