15dac70c75
Upstream used to distribute protocol headers as separate packages, but has decided to merge those to a common package, named xorgproto. This update tracks that change. * Add a new port, x11/xorgproto, with are protocol headers for xorg. * Hook the new protocol port to the build and to infrastructure in bsd.xorg.mk. * Update all ports with a dependency on any of the old *proto packages to instead depend on xorgproto. Bump portrevision. * Delete the old *proto packages, update MOVED. PR: 230023 Submitted by: zeising Approved by: portmgr (antoine) exp-run by: antoine
98 lines
2.5 KiB
Makefile
98 lines
2.5 KiB
Makefile
# Created by: Peter Jeremy <peterjeremy@optushome.com.au>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jogl
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 7
|
|
CATEGORIES= graphics devel java
|
|
MASTER_SITES= http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/
|
|
EXTRACT_SUFX= -src.zip
|
|
|
|
MAINTAINER= peterj@FreeBSD.org
|
|
COMMENT= Java bindings for OpenGL
|
|
|
|
LIB_DEPENDS= libdrm.so:graphics/libdrm
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/antlr.jar:devel/antlr
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
DOCSDIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
ALL_TARGET= all
|
|
|
|
# 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
|
|
|
|
USES= zip
|
|
USE_XORG= x11 xau xdamage xdmcp xext xfixes xorgproto xt xxf86vm
|
|
USE_GL= gl
|
|
USE_ANT= yes
|
|
USE_LDCONFIG= yes
|
|
USE_LOCALE= en_US.UTF-8
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/jogl/make
|
|
BUILD_BINPATH= ${WRKSRC}/bin
|
|
MAKE_ENV+= PATH="${BUILD_BINPATH}:${PATH}"
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
ALL_TARGET+= javadoc
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${JAVA_PORT_VERSION:M1.6.*}
|
|
PLIST_SUB+= JDK6=""
|
|
PLIST_SUB+= JDK7="@comment "
|
|
.endif
|
|
.if ${JAVA_PORT_VERSION:M1.7.*}
|
|
PLIST_SUB+= JDK6="@comment "
|
|
PLIST_SUB+= JDK7=""
|
|
.endif
|
|
.if ${JAVA_PORT_VERSION:M1.8.*}
|
|
PLIST_SUB+= JDK6="@comment "
|
|
PLIST_SUB+= JDK7="@comment "
|
|
.endif
|
|
|
|
.if ${JAVA_PORT_VERSION:M1.8.*}
|
|
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-build.xml
|
|
.endif
|
|
|
|
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
|
|
|
|
pre-build:
|
|
${MKDIR} ${BUILD_BINPATH}
|
|
${SED} -e 's|%%CC%%|${CC}|' < ${FILESDIR}/gcc.in > \
|
|
${BUILD_BINPATH}/gcc
|
|
${CHMOD} 755 ${BUILD_BINPATH}/gcc
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/gluegen/build/obj/libgluegen-rt.so \
|
|
${WRKSRC}/jogl/build/obj/libjogl.so \
|
|
${WRKSRC}/jogl/build/obj/libjogl_awt.so ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/gluegen/build/gluegen-rt.jar \
|
|
${WRKSRC}/jogl/build/jogl.jar ${STAGEDIR}${JAVAJARDIR}
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/jogl/doc/userguide/index.html \
|
|
${STAGEDIR}${DOCSDIR}/UserGuide.html
|
|
cd ${BUILD_WRKSRC}/../javadoc_public && \
|
|
${FIND} . -print | ${CPIO} -pdm ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|