diff options
author | pawel <pawel@FreeBSD.org> | 2014-03-14 20:25:08 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-03-14 20:25:08 +0800 |
commit | 3f5fb3d980ff7e6d6f846b4a0a05fe76d01d9022 (patch) | |
tree | 995718364371350cdf0f4470a9061ac24b77ca79 /graphics/jogl | |
parent | 09286e63dd83ae55b07310b51fb2a48e6d274887 (diff) | |
download | freebsd-ports-gnome-3f5fb3d980ff7e6d6f846b4a0a05fe76d01d9022.tar.gz freebsd-ports-gnome-3f5fb3d980ff7e6d6f846b4a0a05fe76d01d9022.tar.zst freebsd-ports-gnome-3f5fb3d980ff7e6d6f846b4a0a05fe76d01d9022.zip |
- Fix build when gcc is not in the base [1]
- Update maintainer's email [1]
- Remove javavmwrapper dependency from BUILD,RUN depends
it's pulled in by java runtime anyway so no port bump is needed
- Convert to new options framework
- Add support for staging
- Don't try to remove non-existent dirs when DOCS=off (fixes install)
PR: ports/187386 [1]
Submitted by: maintainer
Diffstat (limited to 'graphics/jogl')
-rw-r--r-- | graphics/jogl/Makefile | 38 | ||||
-rw-r--r-- | graphics/jogl/pkg-plist | 26 |
2 files changed, 36 insertions, 28 deletions
diff --git a/graphics/jogl/Makefile b/graphics/jogl/Makefile index 9739822aa71e..0d5ae1d59e70 100644 --- a/graphics/jogl/Makefile +++ b/graphics/jogl/Makefile @@ -8,13 +8,11 @@ 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 +MAINTAINER= peterj@FreeBSD.org 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 +LIB_DEPENDS= libdrm.so:${PORTSDIR}/graphics/libdrm +BUILD_DEPENDS= ${JAVALIBDIR}/antlr.jar:${PORTSDIR}/devel/antlr CONFLICTS= jogamp-jogl-* @@ -23,9 +21,6 @@ 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 @@ -45,8 +40,17 @@ 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 -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \ ${WRKSRC}/gluegen/make/build.xml @@ -54,18 +58,22 @@ post-patch: -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/jogl/make/build.xml +pre-build: + ${MKDIR} ${BUILD_BINPATH} + ${LN} -sf /usr/bin/cc ${BUILD_BINPATH}/gcc + do-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DATADIR} +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/jogl/doc/userguide/index.html \ - ${DATADIR}/UserGuide.html + ${STAGEDIR}${DATADIR}/UserGuide.html cd ${BUILD_WRKSRC}/../javadoc_public && \ - ${FIND} . -print | ${CPIO} -pdm ${DATADIR} + ${FIND} . -print | ${CPIO} -pdm ${STAGEDIR}${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 + ${WRKSRC}/jogl/build/obj/libjogl_awt.so ${STAGEDIR}${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/gluegen/build/gluegen-rt.jar \ - ${WRKSRC}/jogl/build/jogl.jar ${JAVAJARDIR} + ${WRKSRC}/jogl/build/jogl.jar ${STAGEDIR}${JAVAJARDIR} .include <bsd.port.mk> diff --git a/graphics/jogl/pkg-plist b/graphics/jogl/pkg-plist index 276bad57ff27..39039a4f4f27 100644 --- a/graphics/jogl/pkg-plist +++ b/graphics/jogl/pkg-plist @@ -92,16 +92,16 @@ lib/libjogl_awt.so %%PORTDOCS%%%%DATADIR%%/overview-summary.html %%PORTDOCS%%%%DATADIR%%/help-doc.html %%PORTDOCS%%%%DATADIR%%/stylesheet.css -@dirrm %%DATADIR%%/com/sun/opengl/util/j2d -@dirrm %%DATADIR%%/com/sun/opengl/util/texture/spi -@dirrm %%DATADIR%%/com/sun/opengl/util/texture -@dirrm %%DATADIR%%/com/sun/opengl/util -@dirrm %%DATADIR%%/com/sun/opengl -@dirrm %%DATADIR%%/com/sun -@dirrm %%DATADIR%%/com -@dirrm %%DATADIR%%/javax/media/opengl/glu -@dirrm %%DATADIR%%/javax/media/opengl -@dirrm %%DATADIR%%/javax/media -@dirrm %%DATADIR%%/javax -@dirrm %%DATADIR%%/resources -@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DATADIR%%/com/sun/opengl/util/j2d +%%PORTDOCS%%@dirrm %%DATADIR%%/com/sun/opengl/util/texture/spi +%%PORTDOCS%%@dirrm %%DATADIR%%/com/sun/opengl/util/texture +%%PORTDOCS%%@dirrm %%DATADIR%%/com/sun/opengl/util +%%PORTDOCS%%@dirrm %%DATADIR%%/com/sun/opengl +%%PORTDOCS%%@dirrm %%DATADIR%%/com/sun +%%PORTDOCS%%@dirrm %%DATADIR%%/com +%%PORTDOCS%%@dirrm %%DATADIR%%/javax/media/opengl/glu +%%PORTDOCS%%@dirrm %%DATADIR%%/javax/media/opengl +%%PORTDOCS%%@dirrm %%DATADIR%%/javax/media +%%PORTDOCS%%@dirrm %%DATADIR%%/javax +%%PORTDOCS%%@dirrm %%DATADIR%%/resources +%%PORTDOCS%%@dirrm %%DATADIR%% |