1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/graphics/jogl/Makefile
Edwin Groothuis 9d90cf369d New port: graphics/jogl - Java bindings for OpenGL
The JOGL project hosts the development version of the Java
	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 2.0 specification as well as nearly all vendor
	extensions, and integrates with the AWT and Swing widget
	sets. It is part of a suite of open-source technologies
	initiated by the Game Technology Group at Sun Microsystems.

	WWW: https://jogl.dev.java.net/

PR:		ports/124414
Submitted by:	Peter Jeremy <peterjeremy@optushome.com.au>
2008-06-11 13:08:32 +00:00

77 lines
2.2 KiB
Makefile

# New ports collection makefile for: jogl
# Date created: 5 December 1994
# Whom: Peter Jeremy <peterjeremy@optushome.com.au>
#
# $FreeBSD$
#
PORTNAME= jogl
PORTVERSION= 1.1.1
CATEGORIES= graphics devel java
MASTER_SITES=http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/
EXTRACT_SUFX= -src.zip
MAINTAINER= peterjeremy@optushome.com.au
COMMENT= Java bindings for OpenGL
LIB_DEPENDS= GL.1:${PORTSDIR}/graphics/libGL \
X11.6:${PORTSDIR}/x11/libX11 \
Xau.6:${PORTSDIR}/x11/libXau \
Xdamage.1:${PORTSDIR}/x11/libXdamage \
Xdmcp.6:${PORTSDIR}/x11/libXdmcp \
Xext.6:${PORTSDIR}/x11/libXext \
Xfixes.3:${PORTSDIR}/x11/libXfixes \
Xxf86vm.1:${PORTSDIR}/x11/libXxf86vm \
drm.2:${PORTSDIR}/graphics/libdrm
BUILD_DEPENDS= java:${PORTSDIR}/java/javavmwrapper \
${JAVALIBDIR}/antlr.jar:${PORTSDIR}/devel/antlr
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
NO_WRKSUBDIR= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
ALL_TARGET= all
.if !defined(NOPORTDOCS)
ALL_TARGET+= javadoc
.endif
# Java currently only supports i386 and amd64. Supporting additional
# architectures will need patches to at least
# gluegen/src/java/com/sun/gluegen/StructLayout.java
# gluegen/src/java/com/sun/gluegen/runtime/CPU.java
# gluegen/make/gluegen-cpptasks.xml
# jogl/make/build.xml
ONLY_FOR_ARCHS= i386 amd64
USE_ZIP= yes
USE_ANT= yes
USE_LDCONFIG= yes
USE_JAVA= yes
JAVA_VERSION= 1.4+
BUILD_WRKSRC= ${WRKSRC}/jogl/make
post-patch:
@${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \
${WRKSRC}/gluegen/make/build.xml
@${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/jogl/make/build.xml
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/jogl/doc/userguide/index.html \
${DATADIR}/UserGuide.html
cd ${BUILD_WRKSRC}/../javadoc_public && \
${FIND} . -print | ${CPIO} -pdm ${DATADIR}
.endif
${INSTALL_DATA} ${WRKSRC}/gluegen/build/obj/libgluegen-rt.so \
${WRKSRC}/jogl/build/obj/libjogl.so \
${WRKSRC}/jogl/build/obj/libjogl_awt.so ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/gluegen/build/gluegen-rt.jar \
${WRKSRC}/jogl/build/jogl.jar ${JAVAJARDIR}
.include <bsd.port.mk>