aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/jogamp-jogl/Makefile131
-rw-r--r--graphics/jogamp-jogl/distinfo6
-rw-r--r--graphics/jogamp-jogl/files/patch-gluegen_make_build.xml15
-rw-r--r--graphics/jogamp-jogl/files/patch-jogl_make_build-common.xml15
-rw-r--r--graphics/jogamp-jogl/pkg-descr10
-rw-r--r--graphics/jogamp-jogl/pkg-plist67
6 files changed, 244 insertions, 0 deletions
diff --git a/graphics/jogamp-jogl/Makefile b/graphics/jogamp-jogl/Makefile
new file mode 100644
index 000000000000..7299ce4d6250
--- /dev/null
+++ b/graphics/jogamp-jogl/Makefile
@@ -0,0 +1,131 @@
+# New ports collection makefile for: jogamp-jogl
+# Date created: 2010-09-18
+# Whom: Tassilo Philipp <tphilipp@potion-studios.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jogamp-jogl
+PORTVERSION= 2.0.20100914
+CATEGORIES= graphics devel java
+MASTER_SITES= http://www.potion-studios.com/ \
+ LOCAL/makc
+DISTFILES= sgothel-gluegen-VALID_BUILDS_01-144-ga61c650.tar.gz \
+ sgothel-jogl-OpenGL_3_3_Integration-8-gdc9191f.tar.gz
+
+MAINTAINER= tphilipp@potion-studios.com
+COMMENT= Java bindings for OpenGL
+
+LIB_DEPENDS= drm.2:${PORTSDIR}/graphics/libdrm
+BUILD_DEPENDS= java:${PORTSDIR}/java/javavmwrapper \
+ ${JAVALIBDIR}/antlr.jar:${PORTSDIR}/devel/antlr
+RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
+
+CONFLICTS= jogl-1.*
+
+MAKE_ENV+= _JAVA_OPTIONS="-Xmx256m"
+NO_WRKSUBDIR= yes
+WRKSRC= ${WRKDIR}
+
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
+ALL_TARGET= all
+
+# This JOGL port features supported for i386 and amd64, only.
+ONLY_FOR_ARCHS= i386 amd64
+
+USE_XORG= x11 xau xdamage xdmcp xext xf86vidmodeproto xfixes xproto xt \
+ xxf86vm
+USE_GL= gl
+USE_ANT= yes
+USE_LDCONFIG= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.6+
+
+BUILD_WRKSRC= ${WRKDIR}/jogl/make
+
+post-extract:
+ ${MV} ${WRKDIR}/sgothel-gluegen-a61c650 ${WRKDIR}/gluegen
+ ${MV} ${WRKDIR}/sgothel-jogl-dc9191f ${WRKDIR}/jogl
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \
+ ${WRKDIR}/gluegen/make/build.xml \
+ ${WRKDIR}/gluegen/make/gluegen.properties
+ @${REINPLACE_CMD} -e 's|%%WRKSRC%%|${WRKDIR}|g' \
+ ${WRKDIR}/gluegen/make/gluegen-properties.xml
+
+do-install:
+ cd ${WRKDIR}/jogl/build/lib && ${INSTALL_DATA} \
+ libgluegen-rt.so \
+ libjogl_desktop.so \
+ libjogl_es1.so \
+ libjogl_es2.so \
+ libjogl_gl2es12.so \
+ libnativewindow_awt.so \
+ libnativewindow_x11.so \
+ libnewt.so \
+ ${PREFIX}/lib
+ cd ${WRKDIR}/jogl/build/jar && ${INSTALL_DATA} \
+ gluegen-rt-cdc.jar \
+ gluegen-rt.jar \
+ jogl.all-noawt.jar \
+ jogl.all.cdc.jar \
+ jogl.all.jar \
+ jogl.awt.jar \
+ jogl.core.cdc.jar \
+ jogl.core.jar \
+ jogl.egl.cdc.jar \
+ jogl.egl.jar \
+ jogl.gl2es12.cdc.jar \
+ jogl.gl2es12.jar \
+ jogl.gldesktop.dbg.jar \
+ jogl.gldesktop.jar \
+ jogl.gles1.cdc.jar \
+ jogl.gles1.dbg.cdc.jar \
+ jogl.gles1.dbg.jar \
+ jogl.gles1.jar \
+ jogl.gles2.cdc.jar \
+ jogl.gles2.dbg.cdc.jar \
+ jogl.gles2.dbg.jar \
+ jogl.gles2.jar \
+ jogl.glu.gldesktop.jar \
+ jogl.glu.mipmap.cdc.jar \
+ jogl.glu.mipmap.jar \
+ jogl.glu.tess.cdc.jar \
+ jogl.glu.tess.jar \
+ jogl.os.x11.cdc.jar \
+ jogl.os.x11.jar \
+ jogl.sdk.jar \
+ jogl.test.jar \
+ jogl.util.awt.jar \
+ jogl.util.cdc.jar \
+ jogl.util.fixedfuncemu.cdc.jar \
+ jogl.util.fixedfuncemu.jar \
+ jogl.util.gldesktop.jar \
+ jogl.util.jar \
+ nativewindow.all-noawt.jar \
+ nativewindow.all.cdc.jar \
+ nativewindow.all.jar \
+ nativewindow.awt.jar \
+ nativewindow.core.cdc.jar \
+ nativewindow.core.jar \
+ nativewindow.os.x11.cdc.jar \
+ nativewindow.os.x11.jar \
+ newt.all-noawt.jar \
+ newt.all.cdc.jar \
+ newt.all.jar \
+ newt.awt.jar \
+ newt.broadcomegl.cdc.jar \
+ newt.broadcomegl.jar \
+ newt.core.cdc.jar \
+ newt.core.jar \
+ newt.intelgdl.cdc.jar \
+ newt.intelgdl.jar \
+ newt.ogl.cdc.jar \
+ newt.ogl.jar \
+ newt.os.x11.cdc.jar \
+ newt.os.x11.jar \
+ ${JAVAJARDIR}
+
+.include <bsd.port.mk>
diff --git a/graphics/jogamp-jogl/distinfo b/graphics/jogamp-jogl/distinfo
new file mode 100644
index 000000000000..6006c20df571
--- /dev/null
+++ b/graphics/jogamp-jogl/distinfo
@@ -0,0 +1,6 @@
+MD5 (sgothel-gluegen-VALID_BUILDS_01-144-ga61c650.tar.gz) = bb0eb001c16f1dfdd60b25bc88e81ffa
+SHA256 (sgothel-gluegen-VALID_BUILDS_01-144-ga61c650.tar.gz) = f80a9067f26d8eb5ad16227d35b5085707570dc459124702a06fea144b3adfba
+SIZE (sgothel-gluegen-VALID_BUILDS_01-144-ga61c650.tar.gz) = 6030238
+MD5 (sgothel-jogl-OpenGL_3_3_Integration-8-gdc9191f.tar.gz) = b50c454ad5a19b2490f068936a372005
+SHA256 (sgothel-jogl-OpenGL_3_3_Integration-8-gdc9191f.tar.gz) = f1df1ebcc71751ec9e32317fddb71283d5626342e446b04cc4d5d6f383bc3e63
+SIZE (sgothel-jogl-OpenGL_3_3_Integration-8-gdc9191f.tar.gz) = 4894626
diff --git a/graphics/jogamp-jogl/files/patch-gluegen_make_build.xml b/graphics/jogamp-jogl/files/patch-gluegen_make_build.xml
new file mode 100644
index 000000000000..1720e64cf6a5
--- /dev/null
+++ b/graphics/jogamp-jogl/files/patch-gluegen_make_build.xml
@@ -0,0 +1,15 @@
+--- gluegen/make/build.xml.orig 2010-09-18 13:33:32.000000000 +0200
++++ gluegen/make/build.xml 2010-09-18 13:33:44.000000000 +0200
+@@ -11,10 +11,10 @@
+ -->
+ <project name="GlueGen" basedir="." default="all">
+
+- <fail message="Please build using Ant 1.8.0 or higher.">
++ <fail message="Please build using Ant 1.7.0 or higher.">
+ <condition>
+ <not>
+- <antversion atleast="1.8.0"/>
++ <antversion atleast="1.7.0"/>
+ </not>
+ </condition>
+ </fail>
diff --git a/graphics/jogamp-jogl/files/patch-jogl_make_build-common.xml b/graphics/jogamp-jogl/files/patch-jogl_make_build-common.xml
new file mode 100644
index 000000000000..787b1654bfd7
--- /dev/null
+++ b/graphics/jogamp-jogl/files/patch-jogl_make_build-common.xml
@@ -0,0 +1,15 @@
+--- jogl/make/build-common.xml.orig 2010-09-12 18:59:12.000000000 +0200
++++ jogl/make/build-common.xml 2010-09-12 18:59:35.000000000 +0200
+@@ -4,10 +4,10 @@
+
+ <description>Common JOGL Stuff</description>
+
+- <fail message="Please build using Ant 1.8.0 or higher.">
++ <fail message="Please build using Ant 1.7.0 or higher.">
+ <condition>
+ <not>
+- <antversion atleast="1.8.0"/>
++ <antversion atleast="1.7.0"/>
+ </not>
+ </condition>
+ </fail>
diff --git a/graphics/jogamp-jogl/pkg-descr b/graphics/jogamp-jogl/pkg-descr
new file mode 100644
index 000000000000..28e7576eed71
--- /dev/null
+++ b/graphics/jogamp-jogl/pkg-descr
@@ -0,0 +1,10 @@
+The JOGL project hosts the development version of the Java (TM) Binding for the
+OpenGL API (JSR-231), and is designed to provide hardware-supported 3D graphics
+to applications written in Java. JOGL provides full access to the APIs in the
+OpenGL 1.3 - 3.0, >= 3.1, ES 1.x and ES 2.x specification as well as nearly all
+vendor extensions. It integrates with the AWT and Swing widget sets, as well
+with custom windowing toolkits using the the NativeWindow API. It is part of a
+suite of open-source technologies initiated by the Game Technology Group at Sun
+Microsystems.
+
+WWW: http://jogamp.org/jogl
diff --git a/graphics/jogamp-jogl/pkg-plist b/graphics/jogamp-jogl/pkg-plist
new file mode 100644
index 000000000000..ce4acdd54ccb
--- /dev/null
+++ b/graphics/jogamp-jogl/pkg-plist
@@ -0,0 +1,67 @@
+lib/libgluegen-rt.so
+lib/libjogl_desktop.so
+lib/libjogl_es1.so
+lib/libjogl_es2.so
+lib/libjogl_gl2es12.so
+lib/libnativewindow_awt.so
+lib/libnativewindow_x11.so
+lib/libnewt.so
+%%JAVAJARDIR%%/gluegen-rt-cdc.jar
+%%JAVAJARDIR%%/gluegen-rt.jar
+%%JAVAJARDIR%%/jogl.all-noawt.jar
+%%JAVAJARDIR%%/jogl.all.cdc.jar
+%%JAVAJARDIR%%/jogl.all.jar
+%%JAVAJARDIR%%/jogl.awt.jar
+%%JAVAJARDIR%%/jogl.core.cdc.jar
+%%JAVAJARDIR%%/jogl.core.jar
+%%JAVAJARDIR%%/jogl.egl.cdc.jar
+%%JAVAJARDIR%%/jogl.egl.jar
+%%JAVAJARDIR%%/jogl.gl2es12.cdc.jar
+%%JAVAJARDIR%%/jogl.gl2es12.jar
+%%JAVAJARDIR%%/jogl.gldesktop.dbg.jar
+%%JAVAJARDIR%%/jogl.gldesktop.jar
+%%JAVAJARDIR%%/jogl.gles1.cdc.jar
+%%JAVAJARDIR%%/jogl.gles1.dbg.cdc.jar
+%%JAVAJARDIR%%/jogl.gles1.dbg.jar
+%%JAVAJARDIR%%/jogl.gles1.jar
+%%JAVAJARDIR%%/jogl.gles2.cdc.jar
+%%JAVAJARDIR%%/jogl.gles2.dbg.cdc.jar
+%%JAVAJARDIR%%/jogl.gles2.dbg.jar
+%%JAVAJARDIR%%/jogl.gles2.jar
+%%JAVAJARDIR%%/jogl.glu.gldesktop.jar
+%%JAVAJARDIR%%/jogl.glu.mipmap.cdc.jar
+%%JAVAJARDIR%%/jogl.glu.mipmap.jar
+%%JAVAJARDIR%%/jogl.glu.tess.cdc.jar
+%%JAVAJARDIR%%/jogl.glu.tess.jar
+%%JAVAJARDIR%%/jogl.os.x11.cdc.jar
+%%JAVAJARDIR%%/jogl.os.x11.jar
+%%JAVAJARDIR%%/jogl.sdk.jar
+%%JAVAJARDIR%%/jogl.test.jar
+%%JAVAJARDIR%%/jogl.util.awt.jar
+%%JAVAJARDIR%%/jogl.util.cdc.jar
+%%JAVAJARDIR%%/jogl.util.fixedfuncemu.cdc.jar
+%%JAVAJARDIR%%/jogl.util.fixedfuncemu.jar
+%%JAVAJARDIR%%/jogl.util.gldesktop.jar
+%%JAVAJARDIR%%/jogl.util.jar
+%%JAVAJARDIR%%/nativewindow.all-noawt.jar
+%%JAVAJARDIR%%/nativewindow.all.cdc.jar
+%%JAVAJARDIR%%/nativewindow.all.jar
+%%JAVAJARDIR%%/nativewindow.awt.jar
+%%JAVAJARDIR%%/nativewindow.core.cdc.jar
+%%JAVAJARDIR%%/nativewindow.core.jar
+%%JAVAJARDIR%%/nativewindow.os.x11.cdc.jar
+%%JAVAJARDIR%%/nativewindow.os.x11.jar
+%%JAVAJARDIR%%/newt.all-noawt.jar
+%%JAVAJARDIR%%/newt.all.cdc.jar
+%%JAVAJARDIR%%/newt.all.jar
+%%JAVAJARDIR%%/newt.awt.jar
+%%JAVAJARDIR%%/newt.broadcomegl.cdc.jar
+%%JAVAJARDIR%%/newt.broadcomegl.jar
+%%JAVAJARDIR%%/newt.core.cdc.jar
+%%JAVAJARDIR%%/newt.core.jar
+%%JAVAJARDIR%%/newt.intelgdl.cdc.jar
+%%JAVAJARDIR%%/newt.intelgdl.jar
+%%JAVAJARDIR%%/newt.ogl.cdc.jar
+%%JAVAJARDIR%%/newt.ogl.jar
+%%JAVAJARDIR%%/newt.os.x11.cdc.jar
+%%JAVAJARDIR%%/newt.os.x11.jar